[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: 32 to 64 bit driver



 
Hi,
 
 
For me, the major concern is to make the ioctl interface type-safe; i.e., call the function ddi_model_convert_from() to determine if calling application is 32-bit or 64-bit, and, add code to convert ioctl data structures where necessary.  (Using fixed-size data structures in the first place can minimize the conversion effort).
 
Besides that, the bottom 2/3 of the driver should be compliant with the DDI in terms of function call parameters, etc.  Compile the code with ddict and/or lint and/or gcc with full warnings to catch something non-compliant.  Beware of typecasts.
 
Check the developer web site as in "I/O Peripherals Developer's Kit".
 
 
Best of luck,
 
Steve
-----Original Message-----
From: Din [mailto:dinesh@cosystech.com]
Sent: Saturday, September 21, 2002 5:26 AM
To: pci-sig@znyx.com
Subject: 32 to 64 bit driver


Hi all,

Can any one help me to find answer for the following

What are the major changes involved in converting  32 bit  PCI  driver to 64 bit PCI driver in Solaris (assume host and target supports 64 bit)?

TKS in advance
Din


Warm Regards
 
Din