pci_hidd
Index
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.
UBYTE OOP_DoMethod(OOP_Object *obj, struct pHidd_PCIDevice_GetVectorAttribs *Msg);
UBYTE HIDD_PCIDevice_GetVectorAttribs(OOP_Object *obj, ULONG vectorno);
Returns the Hardware IRQ for a given device MSI vector.
obj - Pointer to the device object.
vectorno - Vector to return the IRQ for.
attribs - struct TagItem array of requested attrib details.
Returns the Hardware IRQ on success, for use with AddIntServer.
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_ObtainVectors *Msg);
OOP_Object *HIDD_PCIDevice_ObtainVectors(OOP_Object *obj, const struct TagItem *requirements);
Allocates Hardware IRQ's and assigns them to the device MSI vector configuration.
obj - Pointer to the device object.
requirements - TagList of allocation requirements.
supported Tags-:
tHidd_PCIVector_Min - Minimum number of vectors/irqs to allocate
tHidd_PCIVector_Max - Maximum number of vectors/irqs to allocate
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.
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_ReleaseVectors *Msg);
OOP_Object *HIDD_PCIDevice_ReleaseVectors(OOP_Object *obj);
Releases the APIC IRQ's and clears the PCI devices MSI vector configuration.
obj - Pointer to the device object.
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.
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.
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().
instanceTags - Tags used during driver instance creation.
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]
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.
|
|