/**
* \file common_capability.c
* Platform independent PCI capability related routines.
- *
+ *
* In addition to including the interface glue for \c pci_device_get_agp_info,
* this file also contains a generic implementation of that function.
*
* Once more than just the AGP capability is supported, the body of each of
* the cases in the capability processing loop should probably be broken out
* into its own function.
- *
+ *
* \todo
* Once more than just the AGP capability is supported, some care will need
* to be taken in partial failure cases. If, say, the first capability is
if ( (status & 0x0010) == 0 ) {
return ENOSYS;
}
-
+
err = pci_device_cfg_read_u8( dev, & cap_offset, 52 );
if ( err ) {
return err;
if ( err ) {
return err;
}
-
+
switch ( cap_id ) {
case 2: {
struct pci_agp_info * agp_info;
if ( dev == NULL ) {
return NULL;
}
-
+
if ( dev_priv->agp == NULL ) {
(void) (*pci_sys->methods->fill_capabilities)( dev );
}