Lines Matching +full:proc +full:- +full:id

1 // SPDX-License-Identifier: GPL-2.0
2 /* drivers/nubus/proc.c: Proc FS interface for NuBus.
4 By David Huggins-Daines <dhd@debian.org>
6 Much code and many ideas from drivers/pci/proc.c:
11 structure in /proc analogous to the structure of the NuBus ROM
16 resources are empty files, since every resource ID requires a special
17 case (e.g. if the resource ID implies a directory or block, then its
33 * /proc/bus/nubus/devices stuff
43 fres->board->slot, fres->category, fres->type, in nubus_devices_proc_show()
44 fres->dr_sw, fres->dr_hw, fres->board->slot_addr); in nubus_devices_proc_show()
51 * /proc/bus/nubus/x/ stuff
60 snprintf(name, sizeof(name), "%x", board->slot); in nubus_proc_add_board()
64 /* The PDE private data for any directory under /proc/bus/nubus/x/
73 int lanes = board->lanes; in nubus_proc_add_rsrc_dir()
77 snprintf(name, sizeof(name), "%x", ent->type); in nubus_proc_add_rsrc_dir()
82 /* The PDE private data for a file under /proc/bus/nubus/x/ is a pointer to
103 pded->res_ptr = ptr; in nubus_proc_alloc_pde_data()
104 pded->res_size = size; in nubus_proc_alloc_pde_data()
110 struct inode *inode = m->private; in nubus_proc_rsrc_show()
117 if (pded->res_size > m->size) in nubus_proc_rsrc_show()
118 return -EFBIG; in nubus_proc_rsrc_show()
120 if (pded->res_size) { in nubus_proc_rsrc_show()
128 ent.base = pded->res_ptr; in nubus_proc_rsrc_show()
130 nubus_seq_write_rsrc_mem(m, &ent, pded->res_size); in nubus_proc_rsrc_show()
132 unsigned int data = (unsigned int)pded->res_ptr; in nubus_proc_rsrc_show()
163 snprintf(name, sizeof(name), "%x", ent->type); in nubus_proc_add_rsrc_mem()
177 unsigned char *data = (unsigned char *)ent->data; in nubus_proc_add_rsrc()
182 snprintf(name, sizeof(name), "%x", ent->type); in nubus_proc_add_rsrc()
190 * /proc/nubus stuff