| 34 | OSDefineMetaClassAndStructors(Xbox360ControllerClass, IOHIDDevice) |
| 35 | |
| 36 | static Xbox360Peripheral* GetOwner(IOService *us) |
| 37 | { |
| 38 | IOService *prov = us->getProvider(); |
| 39 | |
| 40 | if (prov == NULL) |
| 41 | return NULL; |
| 42 | return OSDynamicCast(Xbox360Peripheral, prov); |
| 43 | } |
| 44 | |
| 45 | static IOUSBDevice* GetOwnerProvider(const IOService *us) |
| 46 | { |
no outgoing calls
no test coverage detected