DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
SCO OpenServer

Sdevreg(D4osdi)


Sdevreg -- SCSI peripheral device registration structure

Synopsis

   #include <sys/types.h>
   #include <devreg.h>

Usage

Sdevreg is passed to the Sdevregister(D3osdi) function with information for registering a SCSI peripheral device.
   struct Sdevreg {
   	struct	Sdevreg	*forw;
   	struct 	Sdevreg *back;	
   

struct scsi_dev_cfg *cfg; int (*init)(); int (*init2)(); int reg_type; }

Structure members

The structure members are defined as:

forw and back
Forward and backward pointers used internally. Drivers should set these to 0.

cfg
Pointer to the scsi_dev_cfg(D4osdi) configuration array.

init
Passes the address of the peripheral driver's init(D2osdi) entry point routine that runs before the default host adapter has been chosen and initialized.

init2
Passes the address of the peripheral driver's init2(D2osdi) entry point routine that is called after the default host adapter has been chosen and initialized, but before interrupts are enabled.

reg_type
Defines the type of peripheral device controlled:

SCSI_DEV_DISK
for direct access (disk).

SCSI_DEV_PRNTR
for a printer.

SCSI_DEV_PROCR
for a processor.

SCSI_DEV_RODA
for a CD-ROM drive.

SCSI_DEV_TAPE
for sequential access (tape).

SCSI_DEV_WORM
for a Write-Once, Read-Many (WORM) drive.

References

Sdevregister(D3osdi)
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 5 HDK - June 2005