X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fdevices%2Fcdrom.h;h=ea4d9c5b24b0a13662715ce697a4760c6971f0d1;hb=c535b3199977444c3aa2c44b852cc82ce659c5ff;hp=5f5979a385371e566335f7fdb3005b72678312f7;hpb=6593ee3c311ec87304c7bed52a9e6034338679fb;p=palacios.git diff --git a/palacios/include/devices/cdrom.h b/palacios/include/devices/cdrom.h index 5f5979a..ea4d9c5 100644 --- a/palacios/include/devices/cdrom.h +++ b/palacios/include/devices/cdrom.h @@ -18,8 +18,8 @@ * redistribute, and modify it as specified in the file "V3VEE_LICENSE". */ -#ifndef __DEVICES_CDROM_H_ -#define __DEVICES_CDROM_H_ +#ifndef __DEVICES_CDROM_H__ +#define __DEVICES_CDROM_H__ #ifdef __V3VEE__ @@ -33,37 +33,37 @@ struct cdrom_ops { - /* - * Load CD-ROM. Returns false if CD is not ready. - */ - rd_bool (*insert_cdrom)(void * private_data); - - /* - * Logically eject the CD. - */ - void (*eject_cdrom)(void * private_data); + /* + * Load CD-ROM. Returns false if CD is not ready. + */ + rd_bool (*insert_cdrom)(void * private_data); + + /* + * Logically eject the CD. + */ + void (*eject_cdrom)(void * private_data); - /* - * Read CD TOC. Returns false if start track is out of bounds. - */ - rd_bool (*read_toc)(void * private_data, uchar_t * buf, int * length, rd_bool msf, int start_track); + /* + * Read CD TOC. Returns false if start track is out of bounds. + */ + rd_bool (*read_toc)(void * private_data, uchar_t * buf, int * length, rd_bool msf, int start_track); - /* - * Return CD-ROM capacity (in 2048 byte frames) - */ - uint32_t (*capacity)(void * private_data); + /* + * Return CD-ROM capacity (in 2048 byte frames) + */ + uint32_t (*capacity)(void * private_data); - /* - * Read a single block from the CD - */ - void (*read_block)(void * private_data, uchar_t * buf, int lba); + /* + * Read a single block from the CD + */ + void (*read_block)(void * private_data, uchar_t * buf, int lba); - /* - * Start (spin up) the CD. - */ - int (*start_cdrom)(void * private_data); + /* + * Start (spin up) the CD. + */ + int (*start_cdrom)(void * private_data); - void (*set_LBA)(void * private_data, uchar_t lba); + void (*set_LBA)(void * private_data, uchar_t lba); };