diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2000-12-16 16:13:34 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2000-12-16 16:13:34 +0000 |
commit | 3bf40616e233d127ecc0c1f90edd740d23a361ca (patch) | |
tree | 123688226f45977d93c97ab68635dfd492a5f54d /perl-install/c | |
parent | e76ac94274b3c3e3bb809f9a73718a56e652631b (diff) | |
download | drakx-backup-do-not-use-3bf40616e233d127ecc0c1f90edd740d23a361ca.tar drakx-backup-do-not-use-3bf40616e233d127ecc0c1f90edd740d23a361ca.tar.gz drakx-backup-do-not-use-3bf40616e233d127ecc0c1f90edd740d23a361ca.tar.bz2 drakx-backup-do-not-use-3bf40616e233d127ecc0c1f90edd740d23a361ca.tar.xz drakx-backup-do-not-use-3bf40616e233d127ecc0c1f90edd740d23a361ca.zip |
use ldetect-lst
Diffstat (limited to 'perl-install/c')
-rw-r--r-- | perl-install/c/stuff.xs.pm | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/perl-install/c/stuff.xs.pm b/perl-install/c/stuff.xs.pm index 37c32296e..4eab2b172 100644 --- a/perl-install/c/stuff.xs.pm +++ b/perl-install/c/stuff.xs.pm @@ -205,18 +205,34 @@ void pci_probe(probe_type) int probe_type PPCODE: - struct pci_entries entries = pci_probe(probe_type); + struct pciusb_entries entries = pci_probe(probe_type); char buf[2048]; int i; EXTEND(SP, entries.nb); for (i = 0; i < entries.nb; i++) { - struct pci_entry e = entries.entries[i]; + struct pciusb_entry e = entries.entries[i]; snprintf(buf, sizeof(buf), "%04x\t%04x\t%04x\t%04x\t%s\t%s\t%s", e.vendor, e.device, e.subvendor, e.subdevice, pci_class2text(e.class), e.module ? e.module : "unknown", e.text); PUSHs(sv_2mortal(newSVpv(buf, 0))); } - pci_free(entries); + pciusb_free(entries); + +void +usb_probe() + PPCODE: + struct pciusb_entries entries = usb_probe(); + char buf[2048]; + int i; + + EXTEND(SP, entries.nb); + for (i = 0; i < entries.nb; i++) { + struct pciusb_entry e = entries.entries[i]; + snprintf(buf, sizeof(buf), "%04x\t%04x\t%s\t%s", + e.vendor, e.device, e.module ? e.module : "unknown", e.text); + PUSHs(sv_2mortal(newSVpv(buf, 0))); + } + pciusb_free(entries); char* crypt_md5(pw, salt) |