- New PCI ID database entries from 2.1.76.
- IRQ's are shown as hexadecimal numbers on the Ultra.
- Disabled I/O and memory regions are not shown at all (they usually contain
garbage).
-# $Id: Makefile,v 1.1 1997/12/23 10:29:18 mj Exp $
+# $Id: Makefile,v 1.2 1997/12/27 11:57:11 mj Exp $
# Makefile for Linux PCI Utilities
# (c) 1997 Martin Mares <mj@atrey.karlin.mff.cuni.cz>
-OPT=-O2 -m486 -malign-loops=0 -malign-jumps=0 -malign-functions=2 -fno-strength-reduce
-#-fomit-frame-pointer
-#LOPT=-s
-#DEBUG=-ggdb
-#LDEBUG=-lefence
-CFLAGS=$(OPT) $(DEBUG) -Wall -W -Wno-parentheses -Wstrict-prototypes -Wno-unused -Werror
-LDFLAGS=$(LOPT) $(LDEBUG)
+OPT=-O2 -fomit-frame-pointer
+CFLAGS=$(OPT) -Wall -W -Wno-parentheses -Wstrict-prototypes -Wno-unused -Werror
+
+PREFIX=/
all: lspci
clean:
rm -f `find . -name "*~" -or -name "*.[oa]" -or -name "\#*\#" -or -name TAGS -or -name core`
rm -f lspci
+
+install: all
+ install -o root -g root -m 755 -s lspci $(PREFIX)/sbin
+ install -o root -g root -m 644 pci.ids $(PREFIX)/etc
+
+dist: clean
+ sh -c 'X=`pwd` ; X=`basename $$X` ; cd .. ; tar czvvf /tmp/$$X.tar.gz $$X'
This is an experimental version of the Linux PCI Utilities package.
Maintained by Martin Mares <mj@atrey.karlin.mff.cuni.cz>
-
-pci.ids should be copied to /etc if you want textual PCI ID's.
/*
- * $Id: lspci.c,v 1.2 1997/12/23 17:12:02 mj Exp $
+ * $Id: lspci.c,v 1.3 1997/12/27 11:57:12 mj Exp $
*
* Linux PCI Utilities -- List All PCI Devices
*
-t\tShow bus tree\n\
";
+/* Format strings used for IRQ numbers */
+
+#ifdef __sparc_v9__
+#define IRQ_FORMAT "%08x"
+#else
+#define IRQ_FORMAT "%d"
+#endif
+
/* Our view of the PCI bus */
struct device {
else
putchar('\t');
if (flg & PCI_BASE_ADDRESS_SPACE_IO)
- printf("I/O ports at %04lx%s\n",
- pos & PCI_BASE_ADDRESS_IO_MASK,
- (cmd & PCI_COMMAND_IO) ? "" : " [disabled]");
- else
+ {
+ if (cmd & PCI_COMMAND_IO)
+ printf("I/O ports at %04lx\n", pos & PCI_BASE_ADDRESS_IO_MASK);
+ }
+ else if (cmd & PCI_COMMAND_MEMORY)
{
int t = flg & PCI_BASE_ADDRESS_MEM_TYPE_MASK;
printf("Memory at ");
else
printf("????????");
}
- printf("%08lx (%s, %sprefetchable)%s\n",
+ printf("%08lx (%s, %sprefetchable)\n",
pos & PCI_BASE_ADDRESS_MEM_MASK,
(t == PCI_BASE_ADDRESS_MEM_TYPE_32) ? "32-bit" :
(t == PCI_BASE_ADDRESS_MEM_TYPE_64) ? "64-bit" :
(t == PCI_BASE_ADDRESS_MEM_TYPE_1M) ? "low-1M 32-bit" : "???",
- (flg & PCI_BASE_ADDRESS_MEM_PREFETCH) ? "" : "non-",
- (cmd & PCI_COMMAND_MEMORY) ? "" : " [disabled]");
+ (flg & PCI_BASE_ADDRESS_MEM_PREFETCH) ? "" : "non-");
}
}
}
putchar('\n');
}
if (int_pin)
- printf("\tInterrupt: pin %c routed to IRQ %d\n", 'A' + int_pin - 1, irq);
+ printf("\tInterrupt: pin %c routed to IRQ " IRQ_FORMAT "\n", 'A' + int_pin - 1, irq);
}
else
{
printf(", latency %d", latency);
if (int_pin)
if (d->kernel_irq)
- printf(", IRQ %d", irq);
+ printf(", IRQ " IRQ_FORMAT, irq);
else
printf(", IRQ ?");
putchar('\n');
# Maintained by Martin Mares <mj@atrey.karlin.mff.cuni.cz>
# If you have any new entries, send them to the maintainer.
#
-# $Id: pci.ids,v 1.1 1997/12/23 10:29:18 mj Exp $
+# $Id: pci.ids,v 1.2 1997/12/27 11:57:13 mj Exp $
#
# Vendors and devices. Please keep sorted.
000c 53c895
000d 53c885
000f 53c875
- 008f 53c876
+ 008f 53c875J
1002 ATI
4158 68800AX
4354 215CT222
4358 210888CX
4742 Mach64 GB
+ 4744 Mach64 GD (Rage Pro)
4750 Mach64 GP (Rage Pro)
4754 Mach64 GT (Rage II)
4755 Mach64 GT (Rage II)
1023 Trident
9420 TG 9420
9440 TG 9440
- 9660 TG 9660
+ 9660 TG 9660 / Cyber9385
9750 Image 975
1025 Acer Incorporated
1435 M1435
1077 Q Logic
1020 ISP1020
1022 ISP1022
+1078 Cyrix
+ 0000 5510
+ 0001 PCI Master
+ 0002 5520
+ 0100 5530 Kahlua Legacy
+ 0101 5530 Kahlua SMI
+ 0102 5530 Kahlua IDE
+ 0103 5530 Kahlua Audio
+ 0104 5530 Kahlua Video
107d Leadtek Research
0000 S3 805
1080 Contaq
0000 CA91C042 Universe
10e8 AMCC
8043 Myrinet PCI (M2-PCI-32)
- 807d S5933
+ 807d S5933 PCI44
+ 809c S5933 Traquair HEPC3
10ea Intergraphics
1680 IGA-1680
1682 IGA-1682
0001 MV-1000
1163 Rendition
0001 Verite 1000
+ 2000 Verite 2100
1179 Toshiba
0601 Laptop
1180 Ricoh
0001 Voodoo
1236 Sigma Designs
6401 REALmagic64/GX
+124d Stallion
+ 0000 EasyConnection 8/32
+ 0002 EasyConnection 8/64
+ 0003 EasyIO
1255 Optibase
1110 MPEG Forge
1210 MPEG Fusion
8902 PLATO/PX (graphics)
8a01 ViRGE/DX or /GX
8a10 ViRGE/GX2
+ 8c01 ViRGE/MX
+ 8c02 ViRGE/MX+
+ 8c03 ViRGE/MX+MV
8086 Intel
0482 82375EB
0483 82424ZX Saturn
--- /dev/null
+Begin3
+Title: Linux PCI Utilities
+Version: 0.9
+Entered-date: 971227
+Description: This package contains various utilities for inspecting and
+ setting of devices connected to the PCI bus. Requires
+ kernel version 2.1.77 or newer (supporting the /proc/bus/pci
+ interface).
+Keywords: kernel, pci, proc, lspci
+Author: mj@atrey.karlin.mff.cuni.cz (Martin Mares)
+Maintained-by: mj@atrey.karlin.mff.cuni.cz (Martin Mares)
+Primary-site: atrey.karlin.mff.cuni.cz pub/local/mj/pciutils-0.9.tar.gz
+Alternate-site: sunsite.unc.edu pub/Linux/system/???
+Copying-policy: GPL
+End