
TPMC500-SW-42 - VxWorks Device Driver
Page 8 of 19
3.2 tp500DevCreate()
NAME
tp500DevCreate() -
adds a TPMC500 device to the system and initializes device hardware.
SYNOPSIS
STATUS tp500DevCreate
(
char
*name,
/* name of the device to create
*/
int
glbModNo, /*
TPMC500
module
number
*/
unsigned long
type
/* device type [TPMC500_nn]
*/
)
DESCRIPTION
This routine is called to add a device to the system that will be serviced by the TPMC500 driver. This
function must be called before performing any I/O request to this driver.
PARAMETER
The name of the device is selected by the string, which is deployed by this routine in the parameter
name
.
The argument
glbModNo
specifies the index of the TPMC500 that should be set up. For the first
found TPMC500
glbModNo
must be set to 0, for the second to 1, and so on.
The argument
type
specifies the module type mounted to the address. There are predefined symbols
for this argument in
tpmc500.h
. Allowed values are
TPMC500_10
,
TPMC500_11
,
TPMC500_12
,
TPMC500_13
,
TPMC500_20
,
TPMC500_21
,
TPMC500_22
and
TPMC500_23
.