aboutsummaryrefslogtreecommitdiff
path: root/pci.h
blob: 635443ffa7a30120043b4420c9020b81762a4972 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef __PCI_H__
#define __PCI_H__

typedef struct _PCIDevice	PCIDevice;

struct _PCIDevice {
	gchar *name;
	gchar *category;
	
	gint  irq;
	guint io_addr;
	guint io_addr_end;
	
	gulong memory;

	gint bus;
	gint device;
	gint function;

	gint latency;
	gint freq;
	
	gboolean bus_master;
	
	PCIDevice *next;
};

void hi_show_pci_info(MainWindow *mainwindow, PCIDevice *device);
PCIDevice *hi_scan_pci(void);

#endif