'\" t .\" Title: superhyway_add_device .\" Author: .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: January 2017 .\" Manual: Busses .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "SUPERHYWAY_ADD_DEVIC" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Busses" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" superhyway_add_device \- Add a SuperHyway module .SH "SYNOPSIS" .HP \w'int\ superhyway_add_device('u .BI "int superhyway_add_device(unsigned\ long\ " "base" ", struct\ superhyway_device\ *\ " "sdev" ", struct\ superhyway_bus\ *\ " "bus" ");" .SH "ARGUMENTS" .PP \fIbase\fR .RS 4 Physical address where module is mapped\&. .RE .PP \fIsdev\fR .RS 4 SuperHyway device to add, or NULL to allocate a new one\&. .RE .PP \fIbus\fR .RS 4 Bus where SuperHyway module resides\&. .RE .SH "DESCRIPTION" .PP This is responsible for adding a new SuperHyway module\&. This sets up a new struct superhyway_device for the module being added if \fIsdev\fR == NULL\&. .PP Devices are initially added in the order that they are scanned (from the top\-down of the memory map), and are assigned an ID based on the order that they are added\&. Any manual addition of a module will thus get the ID after the devices already discovered regardless of where it resides in memory\&. .PP Further work can and should be done in \fBsuperhyway_scan_bus\fR, to be sure that any new modules are properly discovered and subsequently registered\&. .SH "AUTHOR" .PP \fBPaul Mundt\fR <\&lethal@linux-sh.org\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br