summaryrefslogtreecommitdiffstats
path: root/cli.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2012-11-13 19:05:18 +0100
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2012-11-13 19:05:18 +0100
commit4d411e0dd94cea2b71e6c526399ef96cdf3cb364 (patch)
tree2a54177f794120ae9b3c8df446f560c5f7325b45 /cli.c
parent4a39fdf798b4f8f6dadc7109f04587dced12b5a9 (diff)
downloadipecamera-4d411e0dd94cea2b71e6c526399ef96cdf3cb364.tar.gz
ipecamera-4d411e0dd94cea2b71e6c526399ef96cdf3cb364.tar.bz2
ipecamera-4d411e0dd94cea2b71e6c526399ef96cdf3cb364.tar.xz
ipecamera-4d411e0dd94cea2b71e6c526399ef96cdf3cb364.zip
Provide information on device location (bus,device,function)
Diffstat (limited to 'cli.c')
-rw-r--r--cli.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cli.c b/cli.c
index 4bff445..42bea5e 100644
--- a/cli.c
+++ b/cli.c
@@ -507,7 +507,8 @@ void List(pcilib_t *handle, pcilib_model_description_t *model_info, const char *
void Info(pcilib_t *handle, pcilib_model_description_t *model_info) {
const pcilib_board_info_t *board_info = pcilib_get_board_info(handle);
- printf("Vendor: %x, Device: %x, Interrupt Pin: %i, Interrupt Line: %i\n", board_info->vendor_id, board_info->device_id, board_info->interrupt_pin, board_info->interrupt_line);
+ printf("Vendor: %x, Device: %x, Bus: %x, Slot: %x, Function: %x\n", board_info->vendor_id, board_info->device_id, board_info->bus, board_info->slot, board_info->func);
+ printf(" Interrupt - Pin: %i, Line: %i\n", board_info->interrupt_pin, board_info->interrupt_line);
List(handle, model_info, (char*)-1, 0);
}