X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fdevices%2Fcdrom.h;fp=palacios%2Finclude%2Fdevices%2Fcdrom.h;h=fb49ad9c1e4c6f44ee554def4efed5b063de7233;hb=7617d3cee4bd93b90558206b1bb1681c07f0396a;hp=4546f4fafa1023f1a6aaacbd7c53dd0a344a0c1b;hpb=856dabe4e139e3b42e2956f85e562aa922d66f2e;p=palacios.git diff --git a/palacios/include/devices/cdrom.h b/palacios/include/devices/cdrom.h index 4546f4f..fb49ad9 100644 --- a/palacios/include/devices/cdrom.h +++ b/palacios/include/devices/cdrom.h @@ -7,17 +7,12 @@ #ifndef __DEVICES_CDROM_H_ #define __DEVICES_CDROM_H_ -#include +#include +#include +#include + -typedef unsigned int rd_bool; -typedef uchar_t Bit8u; -typedef ushort_t Bit16u; -typedef uint_t Bit32u; -typedef ullong_t Bit64u; -#define uint8 Bit8u -#define uint16 Bit16u -#define uint32 Bit32u struct cdrom_interface; @@ -38,17 +33,17 @@ struct cdrom_ops { /* * Read CD TOC. Returns false if start track is out of bounds. */ - rd_bool (*read_toc)(struct cdrom_interface *cdrom, uint8* buf, int* length, rd_bool msf, int start_track); + rd_bool (*read_toc)(struct cdrom_interface * cdrom, uint8_t * buf, int* length, rd_bool msf, int start_track); /* * Return CD-ROM capacity (in 2048 byte frames) */ - uint32 (*capacity)(struct cdrom_interface *cdrom); + uint32_t (*capacity)(struct cdrom_interface *cdrom); /* * Read a single block from the CD */ - void (*read_block)(struct cdrom_interface *cdrom, uint8* buf, int lba); + void (*read_block)(struct cdrom_interface *cdrom, uint8_t* buf, int lba); /* * Start (spin up) the CD.