20 #include <linux/types.h>
21 #include <linux/kernel.h>
22 #include <linux/nubus.h>
26 #include <linux/module.h>
28 #include <asm/uaccess.h>
29 #include <asm/byteorder.h>
32 nubus_devices_proc_show(
struct seq_file *
m,
void *
v)
56 .open = nubus_devices_proc_open,
64 static void nubus_proc_subdir(
struct nubus_dev* dev,
84 static void nubus_proc_populate(
struct nubus_dev* dev,
104 printk(
KERN_ERR "NuBus root directory node %x:%x has no subdir!\n",
108 nubus_proc_subdir(dev, e, &dir);
121 "NULL pointer in nubus_proc_attach_device, shoot the programmer!\n");
127 "NULL pointer in nubus_proc_attach_device, shoot the programmer!\n");
128 printk(
"dev = %p, dev->board = %p\n", dev, dev->
board);
140 nubus_proc_populate(dev, e, &root);
174 proc_create(
"devices", 0, proc_bus_nubus_dir, &nubus_devices_proc_fops);