#include <IOKit/ndrvsupport/IOMacOSTypes.h>

IOKit/ndrvsupport/IOMacOSTypes.h Kernel.framework

includes: IOKit/IOTypes.h
48 typedefs · 12 structs · 10 enums · 8 macros

enum(anonymous)

underlying type unsigned int
noErr0

typedefByte

typedef unsigned char Byte

typedefSignedByte

typedef signed char SignedByte

typedefUniChar

typedef UInt16 UniChar

typedefPtr

typedef char *Ptr

typedefHandle

typedef Ptr *Handle

typedefFixed

typedef UInt32 Fixed

typedefFixedPtr

typedef Fixed *FixedPtr

typedefFract

typedef UInt32 Fract

typedefFractPtr

typedef Fract *FractPtr

typedefOSErr

typedef short OSErr

typedefFourCharCode

typedef unsigned int FourCharCode

typedefOSType

typedef FourCharCode OSType

typedefResType

typedef FourCharCode ResType

typedefOSTypePtr

typedef OSType *OSTypePtr

typedefResTypePtr

typedef ResType *ResTypePtr

structRect

size 8, align 2
shorttop
shortleft
shortbottom
shortright

typedefRect

typedef struct Rect Rect

typedefRectPtr

typedef Rect *RectPtr

enum(anonymous)

underlying type unsigned int
kVariableLengthArray1

structNumVersion

Numeric version part of 'vers' resource
size 4, align 1
UInt8majorRev1st part of version number in BCD
UInt8minorAndBugRev2nd & 3rd part of version number share a byte
UInt8stagestage code: dev, alpha, beta, final
UInt8nonRelRevrevision level of non-released version

typedefNumVersion

typedef struct NumVersion NumVersion

typedefKernelID

typedef struct OpaqueRef *KernelID

typedefBytePtr

typedef UInt8 *BytePtr

typedefByteCount

typedef IOByteCount ByteCount

typedefItemCount

typedef IOItemCount ItemCount

typedefLogicalAddress

typedef void *LogicalAddress

typedefPBVersion

typedef UInt32 PBVersion

typedefDuration

typedef SInt32 Duration

macrokInvalidID

#define kInvalidID 0

enum(anonymous)

underlying type unsigned int
kNilOptions0

typedefStr31

typedef unsigned char Str31[32]

macrokPropertyName

#define kPropertyName "name"

macrokPropertyCompatible

#define kPropertyCompatible "compatible"

macrokPropertyDriverPtr

#define kPropertyDriverPtr "driver-ptr"

macrokPropertyDriverDesc

#define kPropertyDriverDesc "driver-description"

macrokPropertyReg

#define kPropertyReg "reg"

macrokPropertyAAPLAddress

#define kPropertyAAPLAddress "AAPL,address"

macrokPropertyMatching

#define kPropertyMatching "matching"

structDriverType

######################################################### Descriptor for Drivers and NDRVs ######################################################### Driver Typing Information Used to Match Drivers With Devices
size 36, align 1
Str31nameInfoStrDriver Name/Info String
NumVersionversionDriver Version Number

typedefDriverType

typedef struct DriverType DriverType

typedefDriverTypePtr

typedef DriverType * DriverTypePtr

typedefRuntimeOptions

OS Runtime Information Used to Setup and Maintain a Driver's Runtime Environment
typedef IOOptionBits RuntimeOptions

enum(anonymous)

underlying type unsigned int
kDriverIsLoadedUponDiscovery1auto-load driver when discovered
kDriverIsOpenedUponLoad2auto-open driver when loaded
kDriverIsUnderExpertControl4I/O expert handles loads/opens
kDriverIsConcurrent8supports concurrent requests
kDriverQueuesIOPB16device manager doesn't queue IOPB
kDriverIsLoadedAtBoot32Driver is loaded at the boot time
kDriverIsForVirtualDevice64Driver is for a virtual Device
kDriverSupportDMSuspendAndResume128Driver supports Device Manager Suspend and Resume command

structDriverOSRuntime

size 68, align 4
RuntimeOptionsdriverRuntimeOptions for OS Runtime
Str31driverNameDriver's name to the OS
UInt32[8]driverDescReservedReserved area

typedefDriverOSRuntime

typedef struct DriverOSRuntime DriverOSRuntime

typedefDriverOSRuntimePtr

typedef DriverOSRuntime * DriverOSRuntimePtr

typedefServiceCount

OS Service Information Used To Declare What APIs a Driver Supports
typedef UInt32 ServiceCount

structDriverServiceInfo

size 12, align 4
OSTypeserviceCategoryService Category Name
OSTypeserviceTypeType within Category
NumVersionserviceVersionVersion of service

typedefDriverServiceInfo

typedef struct DriverServiceInfo DriverServiceInfo

typedefDriverServiceInfoPtr

typedef DriverServiceInfo * DriverServiceInfoPtr

structDriverOSService

size 16, align 4
ServiceCountnServicesNumber of Services Supported
DriverServiceInfo[1]serviceThe List of Services (at least one)

typedefDriverOSService

typedef struct DriverOSService DriverOSService

typedefDriverOSServicePtr

typedef DriverOSService * DriverOSServicePtr

enum(anonymous)

underlying type unsigned int
kServiceCategoryDisplay1684632432Display Manager
kServiceCategoryOpenTransport1869898094Open Transport
kServiceCategoryBlockStorage1651273579Block Storage
kServiceCategoryNdrvDriver1852076662Generic Native Driver
kServiceCategoryScsiSIM1935897449SCSI
kServiceCategoryFileManager1718185061File Manager
kServiceCategoryIDE1768187181ide
kServiceCategoryADB1633968685adb
kServiceCategoryPCI1885563181pci bus
kServiceCategoryDFM1684434221Nu Bus DFM
kServiceCategoryMotherBoard1836212836mother Board
kServiceCategoryKeyboard1803117156Keyboard
kServiceCategoryPointing1886349684Pointing
kServiceCategoryRTC1920230189RTC
kServiceCategoryNVRAM1852989805NVRAM
kServiceCategorySound1936682596Sound (1/3/96 MCS)
kServiceCategoryPowerMgt1885826420Power Management
kServiceCategoryGeneric1734700658Generic Service Category to receive general Events

enum(anonymous)

Ndrv ServiceCategory Types
underlying type unsigned int
kNdrvTypeIsGeneric1734700658generic
kNdrvTypeIsVideo1986618479video
kNdrvTypeIsBlockStorage1651273579block storage
kNdrvTypeIsNetworking1852142711networking
kNdrvTypeIsSerial1936028268serial
kNdrvTypeIsParallel1885434476parallel
kNdrvTypeIsSound1936682596sound
kNdrvTypeIsBusBridge1651663975

typedefDriverDescVersion

typedef UInt32 DriverDescVersion

enum(anonymous)

The Driver Description
underlying type unsigned int
kInitialDriverDescriptor0
kVersionOneDriverDescriptor1

enum(anonymous)

underlying type unsigned int
kTheDescriptionSignature1836344682
kDriverDescriptionSignature1885627763

structDriverDescription

size 128, align 4
OSTypedriverDescSignatureSignature field of this structure
DriverDescVersiondriverDescVersionVersion of this data structure
DriverTypedriverTypeType of Driver
DriverOSRuntimedriverOSRuntimeInfoOS Runtime Requirements of Driver
DriverOSServicedriverServicesApple Service API Membership

typedefDriverDescription

typedef struct DriverDescription DriverDescription

typedefDriverDescriptionPtr

typedef DriverDescription * DriverDescriptionPtr

structRGBColor

size 6, align 2
unsigned shortredmagnitude of red component
unsigned shortgreenmagnitude of green component
unsigned shortbluemagnitude of blue component

typedefRGBColor

typedef struct RGBColor RGBColor

typedefRGBColorPtr

typedef RGBColor *RGBColorPtr

typedefRGBColorHdl

typedef RGBColorPtr *RGBColorHdl

structColorSpec

size 8, align 2
shortvalueindex or other value
RGBColorrgbtrue color

typedefColorSpec

typedef struct ColorSpec ColorSpec

typedefColorSpecPtr

typedef ColorSpec *ColorSpecPtr

structGammaTbl

size 14, align 2
shortgVersiongamma version number
shortgTypegamma data type
shortgFormulaSizeFormula data size
shortgChanCntnumber of channels of data
shortgDataCntnumber of values/channel
shortgDataWidthbits/corrected value (data packed to next larger byte size)
short[1]gFormulaDatadata for formulas followed by gamma values

typedefGammaTbl

typedef struct GammaTbl GammaTbl

typedefGammaTblPtr

typedef GammaTbl *GammaTblPtr

structRegEntryID

size 32, align 8
void *[4]opaque

typedefRegEntryID

typedef struct RegEntryID RegEntryID

typedefRegEntryIDPtr

typedef RegEntryID * RegEntryIDPtr

structIONDRVControlParameters

size 64, align 8
UInt8[26]__reservedA
UInt16code
void *params
UInt8[18]__reservedB

enum(anonymous)

underlying type unsigned int
kIONDRVOpenCommand128
kIONDRVCloseCommand129
kIONDRVReadCommand130
kIONDRVWriteCommand131
kIONDRVControlCommand132
kIONDRVStatusCommand133
kIONDRVKillIOCommand134
kIONDRVInitializeCommand135init driver and device
kIONDRVFinalizeCommand136shutdown driver and device
kIONDRVReplaceCommand137replace an old driver
kIONDRVSupersededCommand138prepare to be replaced by a new driver

enum(anonymous)

underlying type unsigned int
kIONDRVSynchronousIOCommandKind1
kIONDRVAsynchronousIOCommandKind2
kIONDRVImmediateIOCommandKind4