DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Porting drivers to DDI 8

DDI 7 functions obsoleted in DDI 8

The following DDI 7 functions are not supported in DDI 8:


bp_mapin
replaced by the buf_breakup(D3) routine that is called by the biostart(D2) entry point routine.

bp_mapout
not required by drivers.

cm_getbrdkey, cm_getnbrd
similar information available through the config(D2) entry point routine.

cm_getversion
not required by drivers.

drv_gethardware
parameters accessed by this function are not visible to DDI 8 drivers. Some subfunctions may be available through the system interface, which is less portable than the DDI interface; see ``System interface''.

dtimeout
use itimeout(D3) instead.

etoimajor, getemajor, geteminor, getmajor, getminor, itoemajor, makedevice
dev_t is not visible to DDI 8 drivers. Instead, drivers can access device instance information through the resource manager key and the channel number. See ``Device instance'', ``Device number'', ``Resource manager database'', and ``Channel number''.

getnextpg

physiock
replaced by the uiobuf(D3) function.

physmap
replaced by the devmem_mapin(D3) function.

physmap_free
replaced by the devmem_mapout(D3) function.

drv_getparm with the LBOLT parameter
is still legal for DDI 8, but SCO recommends replacing these calls with calls to the TICKS(D3) family of macros. See ``lbolt''.

phystoppid
replaced by the devmem_ppid(D3) function.

pptophys
rewrite the driver to use the physreq(D4) structure rather than directly accessing physical addresses.

vtop
paddr_t is not visible to DDI 8 drivers; see ``Large memory support (DDI 8)''. Use the msgscgth(D3str) function to set up scatter/gather operations for STREAMS and MDI drivers; use the kmem_alloc_phys(D3) function to set up scatter/gather operations for other types of drivers.

© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005