7 #include <linux/module.h>
8 #include <linux/errno.h>
9 #include <linux/kernel.h>
12 #include <linux/pci.h>
18 #define scx200_cb_probe(base) (inw((base) + SCx200_CBA) == (base))
42 .id_table = scx200_tbl,
43 .probe = scx200_probe,
48 static void __devinit scx200_init_shadow(
void)
53 for (bank = 0; bank < 2; ++bank)
64 pr_info(
"GPIO base 0x%x\n", base);
67 "NatSemi SCx200 GPIO")) {
68 pr_err(
"can't allocate I/O for GPIOs\n");
84 pr_warn(
"Configuration Block not found\n");
103 new_config = (config &
mask) | bits;
111 static int __init scx200_init(
void)
113 pr_info(
"NatSemi SCx200 Driver\n");
114 return pci_register_driver(&scx200_pci_driver);
117 static void __exit scx200_cleanup(
void)