X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fdevices%2Fatapi.h;h=0cc9f269bc78fb93f39d6c55e0b9b9fdbf32791c;hb=f2474c56a820b000ed444cb31c487d67aaf212c5;hp=f202d6db9537302314c350f60cb38c3d25398702;hpb=f97c2c116e958d0e87e7303fc1d00fdf0b148893;p=palacios.releases.git diff --git a/palacios/src/devices/atapi.h b/palacios/src/devices/atapi.h index f202d6d..0cc9f26 100644 --- a/palacios/src/devices/atapi.h +++ b/palacios/src/devices/atapi.h @@ -17,11 +17,15 @@ * redistribute, and modify it as specified in the file "V3VEE_LICENSE". */ +#ifndef __DEVICES_ATAPI_H__ +#define __DEVICES_ATAPI_H__ + #define ATAPI_PACKET_SIZE 12 #include "atapi-types.h" + /* ATAPI sucks... * The OS will write to the cylinder register the number of bytes it wants to read * however the device can change that value @@ -723,3 +727,5 @@ static void atapi_identify_device(struct ide_drive * drive) { /* Disabled until command packet DMA is fixed */ drive_id->dma_ultra = 0x2020; // Ultra_DMA_Mode_5_Selected | Ultra_DMA_Mode_5_Supported; } + +#endif