aboutsummaryrefslogtreecommitdiff
path: root/clients/net-snk/include/pci.h
diff options
context:
space:
mode:
Diffstat (limited to 'clients/net-snk/include/pci.h')
-rw-r--r--clients/net-snk/include/pci.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/clients/net-snk/include/pci.h b/clients/net-snk/include/pci.h
new file mode 100644
index 0000000..4c2c18b
--- /dev/null
+++ b/clients/net-snk/include/pci.h
@@ -0,0 +1,26 @@
+/******************************************************************************
+ * Copyright (c) 2004, 2007 IBM Corporation
+ * All rights reserved.
+ * This program and the accompanying materials
+ * are made available under the terms of the BSD License
+ * which accompanies this distribution, and is available at
+ * http://www.opensource.org/licenses/bsd-license.php
+ *
+ * Contributors:
+ * IBM Corporation - initial implementation
+ *****************************************************************************/
+
+
+#ifndef _PCI_H
+#define _PCI_H
+#include <netdriver_int.h>
+#include <of.h>
+
+int pci_calc_bar_size (long long puid, int bus, int devfn, int bar);
+int pci_get_bar_start (long long puid, int bus, int devfn, int bar);
+void pci_set_bar_start (long long puid, int bus, int devfn, int bar, int value);
+int pci_bus_scan_puid(long long puid, int class_to_check,
+ pci_config_t *pci_devices, int max_devs);
+long long get_next_phb (phandle_t *phb);
+
+#endif