moHidd_PCIDriver_AddInterrupt | moHidd_PCIDriver_RemoveInterrupt |
OOP_Object *OOP_DoMethod(OOP_Object *obj, struct pHidd_PCIDriver_AddInterrupt *Msg); OOP_Object *HIDD_PCIDriver_AddInterrupt(OOP_Object *obj, OOP_Object *device, struct Interrupt *interrupt);
Add interrupt handler for the specified device. This method is present in order to provide abstraction for different PCI implementations. Default implementation of this method assumes 1:1 mapping between system interrupts and PCI interrupts. However, on some machines this is not true (an example is Amiga(tm) bridgeboards). In this case you will have to provide alternate implementation of this method.
obj - Pointer to your driver object. device - A pointer to the device object. interrupt - Interrupt structure to add.
TRUE it succesful or FALSE on failure.
OOP_Object *OOP_DoMethod(OOP_Object *obj, struct pHidd_PCIDriver_RemoveInterrupt *Msg); OOP_Object *HIDD_PCIDriver_RemoveInterrupt(OOP_Object *obj, OOP_Object *device, struct Interrupt *interrupt);
Remove interrupt handler from the specified device. This method is present in order to provide abstraction for different PCI implementations. Default implementation of this method assumes 1:1 mapping between system interrupts and PCI interrupts. However, on some machines this is not true (an example is Amiga(tm) bridgeboards). In this case you will have to provide alternate implementation of this method.
obj - Pointer to your driver object. device - A pointer to the device object. interrupt - Interrupt structure to remove.
None.
aoHidd_PCIDevice_Owner | moHidd_PCIDevice_AddInterrupt | moHidd_PCIDevice_Obtain | moHidd_PCIDevice_Release |
moHidd_PCIDevice_RemoveInterrupt |
[..G], APTR
Returns name of current device's owner or NULL if the device is not owned by anyone.
This attribute is provided for diagnostics utilities like PCITool. There is no need to check current owner before attempting to own the device. moHidd_PCIDevice_Obtain method performs this check and owns the device atomically.
OOP_Object *OOP_DoMethod(OOP_Object *obj, struct pHidd_PCIDevice_AddInterrupt *Msg); OOP_Object *HIDD_PCIDriver_AddInterrupt(OOP_Object *obj, OOP_Object *device, struct Interrupt *interrupt);
Add interrupt handler for the device.
obj - Pointer to device object. interrupt - Interrupt structure to add.
TRUE it successful or FALSE on failure.
OOP_Object *OOP_DoMethod(OOP_Object *obj, struct pHidd_PCIDevice_Obtain *Msg); OOP_Object *HIDD_PCIDevice_Obtain(OOP_Object *obj, CONST_STRPTR owner);
Lock the device for exclusive use.
obj - Pointer to the device object. owner - A string identifying the owner.
NULL on success or string identifying current owner.
OOP_Object *OOP_DoMethod(OOP_Object *obj, struct pHidd_PCIDevice_Release *Msg); OOP_Object *HIDD_PCIDevice_Release(OOP_Object *obj);
Release ownership of the device.
obj - Pointer to the device object.
None.
You should call this function only on devices owned by you. Doing this on someone else's devices will not do any good things.
OOP_Object *OOP_DoMethod(OOP_Object *obj, struct pHidd_PCIDevice_RemoveInterrupt *Msg); OOP_Object *HIDD_PCIDevice_RemoveInterrupt(OOP_Object *obj, OOP_Object *device, struct Interrupt *interrupt);
Remove interrupt handler from the device.
obj - Pointer to the device object. interrupt - Interrupt structure to remove.
None.
moHidd_PCI_AddHardwareDriver | moHidd_PCI_EnumDevices | moHidd_PCI_RemHardwareDriver |
OOP_Object *OOP_DoMethod(OOP_Object *obj, struct pHidd_PCI_AddHardwareDriver *Msg); OOP_Object *HIDD_PCI_AddHardwareDriver(OOP_Object *obj, OOP_Class *driverClass);
Creates a bus driver object and registers it in the system. Since V4 this interface is obsolete and deprecated. Use moHW_AddDriver method in order to install the driver.
obj - A PCI subsystem object. driverClass - A pointer to OOP class of the driver. In order to create an object of some previously registered public class, use oop.library/OOP_FindClass().
None.
void OOP_DoMethod(OOP_Object *obj, struct pHidd_PCI_EnumDrivers *Msg); void HIDD_PCI_EnumDevices(OOP_Object *obj, struct Hook *callback, const struct TagItem *requirements);
This method calls the callback hook for every PCI device in the system that meets requirements specified (or every device if tags=NULL). It iterates not only through one PCI bus, but instead through all buses managed by all drivers present in the system.
obj - A PCI subsystem object. callback - A user-supplied hook which will be called for every device. requirements - A TagList specifying search parameters. The hook will be called with the following parameters: AROS_UFHA(struct Hook *, hook , A0) - A pointer to hook structure itself AROS_UFHA(OOP_Object * , deviceObject, A2) - A PCI device object AROS_UFHA(APTR , unused , A1) - Not used The following tags are accepted as search parameters: tHidd_PCI_VendorID - vendor ID tHidd_PCI_ProductID - product ID tHidd_PCI_RevisionID - revision ID tHidd_PCI_Interface - PCI interface ID tHidd_PCI_Class - PCI class ID tHidd_PCI_SubClass - PCI subclass ID tHidd_PCI_SubsystemVendorID - subsystem vendor ID tHidd_PCI_SubsystemID - subsystem ID tHidd_PCI_Driver - a pointer to bus driver object [V4]
None.
void OOP_DoMethod(OOP_Object *obj, struct pHidd_PCI_RemHardwareDriver *Msg); void HIDD_PCI_RemHardwareDriver(OOP_Object *obj, OOP_Class *driverClass);
Unregisters and disposes bus driver objects of the given class. Since V4 this interface is obsolete and deprecated. Use moHW_RemoveDriver method in order to remove drivers.
obj - A PCI subsystem object. driverClass - A pointer to a driver class.
None