SUPERHYWAY_ADD_DEVICE

Section: (9)
Updated: 09 October 2005
Index Return to Main Contents

 

NAME

superhyway_add_device - Add a SuperHyway module  

SYNOPSIS

"SYNOPSIS"

int superhyway_add_device (unsigned int mod_id, unsigned long base, unsigned long long vcr);  

ARGUMENTS

mod_id
Module ID (taken from MODULE.VCR.MOD_ID).
base
Physical address where module is mapped.
vcr
VCR value.
 

DESCRIPTION

This is responsible for adding a new SuperHyway module. This sets up a new struct superhyway_device for the module being added. Each one of mod_id, base, and vcr are registered with the new device for further use elsewhere.

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.

Further work can and should be done in superhyway_scan_bus, to be sure that any new modules are properly discovered and subsequently registered.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 00:02:53 GMT, October 09, 2005