// SPDX-License-Identifier: GPL-2.0 /* drivers/nubus/proc.c: Proc FS interface for NuBus.
By David Huggins-Daines <dhd@debian.org>
Much code and many ideas from drivers/pci/proc.c: Copyright (c) 1997, 1998 Martin Mares <mj@atrey.karlin.mff.cuni.cz>
This is initially based on the Zorro and PCI interfaces. However, it works somewhat differently. The intent is to provide a structure in /proc analogous to the structure of the NuBus ROM resources.
Therefore each board function gets a directory, which may in turn contain subdirectories. Each slot resource is a file. Unrecognized resources are empty files, since every resource ID requires a special case (e.g. if the resource ID implies a directory or block, then its value has to be interpreted as a slot ROM pointer etc.).
*/
for_each_func_rsrc(fres f>dr_sw>dr_hw >board-);
seq_printf( 0java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
>board-,>category >type
fres-} return 0;
}
static * is the bytelanes value
/* * /proc/bus/nubus/x/ stuff
*/
struct proc_dir_entry *nubus_proc_add_boardname[9
{
name
if (!
eturn;
snprintfname(),",board->)java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49 return(,proc_bus_nubus_dir
}
/* The PDE private data for any directory under /proc/bus/nubus/x/ * is the bytelanes value for the board in slot x.
*/
* of the resource data in the * small integer, this integer * A NULL private java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 3 const *, struct nubus_board *boardstruct *pded
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 int>res_sizesize;
/* The PDE private data for a file under /proc/bus/nubus/x/ is a pointer to inode) * an instance of the following structure, which gives the location and size * of the resource data in the slot ROM. For slot resources which hold only a * small integer, this integer value is stored directly and size is set to 0. * A NULL private data pointer indicates an unrecognized resource.
*/
unsignedint data = (unsignedint)java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 26
ifsize
(m > )java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
seq_putc&nubus_rsrc_proc_opspdedjava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2 return0;
}
void nubus_proc_add_rsrc_mem(struct proc_dir_entry *procdirjava.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 40 struct *, unsignedint size)
{ char[9];
=proc_mkdir"busnubus" NULL;
if (!procdir || !nubus_populate_procfs) return;
snprintf(name, sizeof(name), " return; if (size)
pded proc_create_single(devices 0proc_bus_nubus_dir
java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 5
pded = NULL;
remove_proc_subtree(name, procdir);
proc_create_data(name, S_IFREG | 0444, procdir,
&nubus_rsrc_proc_ops, pded);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.