diff options
Diffstat (limited to 'src/include/gpxe')
| -rw-r--r-- | src/include/gpxe/isapnp.h | 7 | ||||
| -rw-r--r-- | src/include/gpxe/netdevice.h | 11 |
2 files changed, 12 insertions, 6 deletions
diff --git a/src/include/gpxe/isapnp.h b/src/include/gpxe/isapnp.h index 72ce0a6fe..07797a993 100644 --- a/src/include/gpxe/isapnp.h +++ b/src/include/gpxe/isapnp.h @@ -49,7 +49,8 @@ /* Port addresses */ #define ISAPNP_ADDRESS 0x279 #define ISAPNP_WRITE_DATA 0xa79 -#define ISAPNP_READ_PORT_MIN 0x213 /* ISAPnP spec says 0x203, but +#define ISAPNP_READ_PORT_MIN 0x203 +#define ISAPNP_READ_PORT_START 0x213 /* ISAPnP spec says 0x203, but * Linux ISAPnP starts at * 0x213 with no explanatory * comment. 0x203 probably @@ -63,6 +64,10 @@ * any value less than 16. */ +/* Card select numbers */ +#define ISAPNP_CSN_MIN 0x01 +#define ISAPNP_CSN_MAX 0x0f + /* Registers */ #define ISAPNP_READPORT 0x00 #define ISAPNP_SERIALISOLATION 0x01 diff --git a/src/include/gpxe/netdevice.h b/src/include/gpxe/netdevice.h index c0df7c967..0bc5311ca 100644 --- a/src/include/gpxe/netdevice.h +++ b/src/include/gpxe/netdevice.h @@ -289,8 +289,9 @@ netdev_put ( struct net_device *netdev ) { } extern int netdev_tx ( struct net_device *netdev, struct io_buffer *iobuf ); -void netdev_tx_complete ( struct net_device *netdev, struct io_buffer *iobuf ); -void netdev_tx_complete_next ( struct net_device *netdev ); +extern void netdev_tx_complete ( struct net_device *netdev, + struct io_buffer *iobuf ); +extern void netdev_tx_complete_next ( struct net_device *netdev ); extern void netdev_rx ( struct net_device *netdev, struct io_buffer *iobuf ); extern int netdev_poll ( struct net_device *netdev, unsigned int rx_quota ); extern struct io_buffer * netdev_rx_dequeue ( struct net_device *netdev ); @@ -299,9 +300,9 @@ extern int register_netdev ( struct net_device *netdev ); extern int netdev_open ( struct net_device *netdev ); extern void netdev_close ( struct net_device *netdev ); extern void unregister_netdev ( struct net_device *netdev ); -struct net_device * find_netdev ( const char *name ); -struct net_device * find_pci_netdev ( unsigned int busdevfn ); - +extern struct net_device * find_netdev ( const char *name ); +extern struct net_device * find_netdev_by_location ( unsigned int bus_type, + unsigned int location ); extern int net_tx ( struct io_buffer *iobuf, struct net_device *netdev, struct net_protocol *net_protocol, const void *ll_dest ); extern int net_rx ( struct io_buffer *iobuf, struct net_device *netdev, |
