55 lines
1.3 KiB
C
55 lines
1.3 KiB
C
/*
|
|
* 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 02139, 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 };
|
|
|
|
enum driver_type { SCSI_ADAPTERS, IDE_ADAPTERS, NETWORK_DEVICES, USB_CONTROLLERS, ANY_DRIVER_TYPE };
|
|
|
|
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);
|
|
|
|
#ifndef PCI_SLOT
|
|
#define PCI_SLOT(devfn) (((devfn) >> 3) & 0x1f)
|
|
#endif
|
|
|
|
#ifndef PCI_FUNC
|
|
#define PCI_FUNC(devfn) ((devfn) & 0x07)
|
|
#endif
|
|
|
|
/*
|
|
extract from linux/pci_ids.h
|
|
*/
|
|
|
|
#define PCI_BASE_CLASS_STORAGE 0x01
|
|
#define PCI_CLASS_STORAGE_SCSI 0x0100
|
|
#define PCI_CLASS_STORAGE_IDE 0x0101
|
|
#define PCI_CLASS_NETWORK_ETHERNET 0x0200
|
|
#define PCI_CLASS_SERIAL_FIREWIRE 0x0c00
|
|
#define PCI_CLASS_SERIAL_USB 0x0c03
|
|
|
|
#endif
|