How to go about .....

Device drivers writingneed some links and tutorialsfor writing device drivers for x86 amd64 platformgeeks havin info......... plz reply
[163 byte] By [Red_Hornet] at [2007-11-26 6:54:58]
# 1

I assume you have had a look at the Device Driver tutorial at http://docs.sun.com/app/docs/doc/817-5789 ?

I would start by writing a dummy driver that loads and unloads.

Then maybe add character entry points, and read and write some kernel memory (see kmem_alloc/free and uiomove)

Then look at adding block entry points - look at physio, strategy.

Then it's a case of what device do you want to control, and looking at mapping device registers and doing dma.

The Solaris driver framework is designed to be architecture independant. So in principle Intel/Amd drivers are no different to SPARC. Just remember for AMD when compiling to use:

cc -c -D_KERNEL -xarch=amd64 -xmodel=kernel

otherwise you'll get relocation errors on the console when you try loading.

Can give some more specific questions?

Cheers,

Ralph

ralphyt at 2007-7-6 15:27:05 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 2

You have really brought some enthusiasm in me to develop

I am a fast learner i think...

now i have these PDF copies with me

Device Driver Tutorial_817-5789.pdf

Device Driver Tutorial_819-3159.pdf

Writing Device Drivers_802-5900.pdf

Writing Device Drivers_816-4854.pdf

Writing Device Drivers_819-3196.pdf

Just guide me into it

I want you to be in touch with me,,,

Hope others will join to help me later

is there any other material that will help me a lot ?

Like i want to get into

Drivers for Network Devices

Thanks anyway for replying

:)

Red_Hornet at 2007-7-6 15:27:05 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 3
Visit http://www.bolthole.com/solaris/drivers for lots of good information and example drivers.Good luck,Dave
littelld at 2007-7-6 15:27:05 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...