2004-01-20 21:32:43 +03:00
/*
* Guillaume Cottenceau ( gc @ mandrakesoft . com )
*
* Copyright 2000 MandrakeSoft
*
* This software may be freely redistributed under the terms of the GNU
* public license .
*
* You should have received a copy of the GNU General Public License
* along with this program ; if not , write to the Free Software
* Foundation , Inc . , 675 Mass Ave , Cambridge , MA 0213 9 , USA .
*
*/
/*
* Portions from Erik Troan ( ewt @ redhat . com )
*
* Copyright 1996 Red Hat Software
*
*/
# ifndef _PROBING_H_
# define _PROBING_H_
enum media_type { CDROM , DISK , FLOPPY , TAPE , UNKNOWN_MEDIA } ;
2005-02-15 23:33:05 +03:00
enum driver_type { SCSI_ADAPTERS , IDE_ADAPTERS , NETWORK_DEVICES , USB_CONTROLLERS , ANY_DRIVER_TYPE } ;
2004-01-20 21:32:43 +03:00
void get_medias ( enum media_type media , char * * * names , char * * * models ) ;
char * * get_net_devices ( void ) ;
void net_discovered_interface ( char * intf_name ) ;
char * get_net_intf_description ( char * intf_name ) ;
void prepare_intf_descr ( const char * intf_descr ) ;
2004-11-22 16:47:29 +03:00
# ifndef PCI_SLOT
# define PCI_SLOT(devfn) (((devfn) >> 3) & 0x1f)
# endif
# ifndef PCI_FUNC
# define PCI_FUNC(devfn) ((devfn) & 0x07)
# endif
2004-01-20 21:32:43 +03:00
2004-12-15 23:43:02 +03:00
/*
extract from linux / pci_ids . h
*/
2005-02-15 23:33:05 +03:00
# define PCI_BASE_CLASS_STORAGE 0x01
2004-12-15 23:43:02 +03:00
# define PCI_CLASS_STORAGE_SCSI 0x0100
2005-02-15 23:33:05 +03:00
# define PCI_CLASS_STORAGE_IDE 0x0101
2004-12-15 23:43:02 +03:00
# define PCI_CLASS_NETWORK_ETHERNET 0x0200
# define PCI_CLASS_SERIAL_FIREWIRE 0x0c00
# define PCI_CLASS_SERIAL_USB 0x0c03
2004-01-20 21:32:43 +03:00
# endif