1SUPERHYWAY_ADD_DEVIC(9)             Busses             SUPERHYWAY_ADD_DEVIC(9)
2
3
4

NAME

6       superhyway_add_device - Add a SuperHyway module
7

SYNOPSIS

9       int superhyway_add_device(unsigned long base,
10                                 struct superhyway_device * sdev,
11                                 struct superhyway_bus * bus);
12

ARGUMENTS

14       base
15           Physical address where module is mapped.
16
17       sdev
18           SuperHyway device to add, or NULL to allocate a new one.
19
20       bus
21           Bus where SuperHyway module resides.
22

DESCRIPTION

24       This is responsible for adding a new SuperHyway module. This sets up a
25       new struct superhyway_device for the module being added if sdev ==
26       NULL.
27
28       Devices are initially added in the order that they are scanned (from
29       the top-down of the memory map), and are assigned an ID based on the
30       order that they are added. Any manual addition of a module will thus
31       get the ID after the devices already discovered regardless of where it
32       resides in memory.
33
34       Further work can and should be done in superhyway_scan_bus, to be sure
35       that any new modules are properly discovered and subsequently
36       registered.
37

AUTHOR

39       Paul Mundt <lethal@linux-sh.org>
40           Author.
41
43Kernel Hackers Manual 2.6.         June 2019           SUPERHYWAY_ADD_DEVIC(9)
Impressum