Skip to contentSkip to conversation

PCI: add draft lspci command

RFC Superseded Antony Pavlov 1 participant 1 message Aug 11, 2011

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

RFC 4/5 PCI: add draft lspci command

---
 commands/Kconfig  |    8 ++++++++
 commands/Makefile |    1 +
 commands/lspci.c  |   53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 62 insertions(+), 0 deletions(-)
 create mode 100644 commands/lspci.c
commands/Kconfig +8 -0
index e922260..5c270a9 100644
@@ -442,6 +442,14 @@ config CMD_USB
 	help
 	  The usb command allows to rescan for USB devices.
 
+config CMD_LSPCI
+	bool
+	depends on PCI
+	prompt "lspci command"
+	default y
+	help
+	  The lspci command allows to list all PCI devices.
+
 endmenu
 
 endif
commands/Makefile +1 -0
index 7c88b48..d862ea5 100644
@@ -58,3 +58,4 @@ obj-$(CONFIG_CMD_LED)		+= led.o
 obj-$(CONFIG_CMD_LED_TRIGGER)	+= trigger.o
 obj-$(CONFIG_CMD_USB)		+= usb.o
 obj-$(CONFIG_CMD_TIME)		+= time.o
+obj-$(CONFIG_CMD_LSPCI)		+= lspci.o
commands/lspci.c new file +53 -0

53 lines not on this page · raw message

Signature · 7 lines
1.7.5.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox