diff options
author | Finn Thain | 2018-01-13 17:37:13 -0500 |
---|---|---|
committer | Geert Uytterhoeven | 2018-01-16 16:47:29 +0100 |
commit | 2f7dd07ecadac6bdc3d55c217d65efa2834ba1cb (patch) | |
tree | bd55d141cdf80fc39cb3aedb87f0621c9c1a51a1 /drivers/pcmcia | |
parent | 883b8cb31a8546b9921c98b255d5f7779d1bc9f6 (diff) |
nubus: Rework /proc/bus/nubus/s/ implementation
The /proc/bus/nubus/s/ directory tree for any slot s is missing a lot
of information. The struct file_operations methods have long been left
unimplemented (hence the familiar compile-time warning, "Need to set
some I/O handlers here").
Slot resources have a complex structure which varies depending on board
function. The logic for interpreting these ROM data structures is found
in nubus.c. Let's not duplicate that logic in proc.c.
Create the /proc/bus/nubus/s/ inodes while scanning slot s. During
descent through slot resource subdirectories, call the new
nubus_proc_add_foo() functions to create the procfs inodes.
Also add a new function, nubus_seq_write_rsrc_mem(), to write the
contents of a particular slot resource to a given seq_file. This is
used by the procfs file_operations methods, to finally give userspace
access to slot ROM information, such as the available video modes.
Tested-by: Stan Johnson <userm57@yahoo.com>
Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'drivers/pcmcia')
0 files changed, 0 insertions, 0 deletions