summaryrefslogtreecommitdiffstats
path: root/driver
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2011-02-13 15:33:26 +0100
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2011-02-13 15:33:26 +0100
commit813c7abf04ab9f7f9c30059b258612e18dec5ce7 (patch)
tree8d12e3b27b5b8237d6c5a3744ffb26ba43339421 /driver
parentde7eafc05f1a830af3f722671d02a31bfc1b1f9c (diff)
downloadipecamera-813c7abf04ab9f7f9c30059b258612e18dec5ce7.tar.gz
ipecamera-813c7abf04ab9f7f9c30059b258612e18dec5ce7.tar.bz2
ipecamera-813c7abf04ab9f7f9c30059b258612e18dec5ce7.tar.xz
ipecamera-813c7abf04ab9f7f9c30059b258612e18dec5ce7.zip
Print a bit more details
Diffstat (limited to 'driver')
-rw-r--r--driver/ioctl.c1
-rw-r--r--driver/pciDriver.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/driver/ioctl.c b/driver/ioctl.c
index 59d9245..6240d31 100644
--- a/driver/ioctl.c
+++ b/driver/ioctl.c
@@ -160,6 +160,7 @@ static int ioctl_pci_info(pcidriver_privdata_t *privdata, unsigned long arg)
for (bar = 0; bar < 6; bar++) {
pci_info.bar_start[bar] = pci_resource_start(privdata->pdev, bar);
pci_info.bar_length[bar] = pci_resource_len(privdata->pdev, bar);
+ pci_info.bar_flags[bar] = pci_resource_flags(privdata->pdev, bar);
}
WRITE_TO_USER(pci_board_info, pci_info);
diff --git a/driver/pciDriver.h b/driver/pciDriver.h
index 9abf3ab..ed04d65 100644
--- a/driver/pciDriver.h
+++ b/driver/pciDriver.h
@@ -142,6 +142,7 @@ typedef struct {
unsigned int irq;
unsigned long bar_start[6];
unsigned long bar_length[6];
+ unsigned long bar_flags[6];
} pci_board_info;