PC104 IO card device driver

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

 



Hai friends

 I am writing a character device driver for Diamond
Systems IR104 digital IO card. The Platform is Arcom
Viper board(PC104 compatible). This card has got Pc104
bus(i.e. ISA compatible). Viper is Xscale, little
endian. 

Specification for Pc104 interface given in Viper
specification is:
0x3D000000 ? 0x3FFFFFFF Reserved
0x3C000000 ? 0x3CFFFFFF PC/104 memory space (16MB)
0x30000400 ? 0x3BFFFFFF Reserved
0x30000000 ? 0x300003FF PC/104 I/O space (1kB)

I configured IR104 IO card(jumper configuration) so
that it's 8 registers will take address 0x300 to 0x307
in IO space.

During driver development i took two approaches one:
i added IO space base address and register address ,
and did inb() and oub().
then i did ioremap() on added result, and did inb()
and oub()

in second method:
same procedure with IO memory base


Both giving errors when i do Read or write. It is
giving some memory paging related errors, i think
there is a need for disabling  paging in this. how to
do this.
Please help me. Give me a solution

Nobin Mathew


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Sports - Sign up for Fantasy Baseball. 
http://baseball.fantasysports.yahoo.com/

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux