Thanks.
> why unnamed union in other header file does not show that error?
Presumably because other unnamed unions only introduce unnamed structs.
I.e. the other way to fix it could be removing _LBA and _MSF type names and
marking the corresponding structs as anonymous.
--
Best regards,
Alex
@@ -975,24 +1122,22 @@ typedef union _CDB {
UCHAR CMSF:1;
UCHAR ExpectedSectorType:3;
UCHAR Lun:3;
-struct _LBA {
- UCHAR StartingBlockAddress[4];
- UCHAR PlayLength[4];
-};
-struct _MSF {
- UCHAR Reserved1;
- UCHAR StartingM;
- UCHAR StartingS;
-
Hi,
In include/ddk/scsi.h:
typedef union _CDB {
...
struct _GET_CONFIGURATION {
UCHAR OperationCode;
UCHAR RequestType:1;
UCHAR Reserved1:7;
UCHAR StartingFeature[2];
UCHAR Reserved2[3];
UCHAR AllocationLength[2];
UCHAR Control;
} GET_CONFIGURATION;
...
} CDB, *PCD