Hi,
I write device driver for PCI board. I have kernel 2.2.12-20.
1)
I found that IRQ 10 is assigned to my board. Is it possible
to force that a board uses IRQ eg.25 by writting it to
configuration register?
Only for tests of my device driver I would like to use IRQ
that is not shared with any other device.
2)
I read the following adresses from Base Address0 ...4 registers:
0xb800, 0xcc000, 0xce000, 0xb400, 0xb000
I reserved ports(check_region, request_region):
b000-b00f : bbk
b400-b40f : bbk
b800-b83f : bbk
(from /proc/ioports)
I mapped(ioremap) adresses: 0xcc000 and 0xce000
to kernel addresses: 0xc00cc000, 0xc00ce000
Then:
unsigned int reg_val = 0x107;
pcibios_write_config_word (bus, function, PCI_COMMAND, reg_val);
When I access ports from the range b800-b83f system crashes, the
same happens when I access adresses: 0xc00cc000, 0xc00ce000
System crashes at once or with delay.
Are my addresses illegal? or did I reserve wrong ports?
Could anyone help?
Could you make CC to me because I am not on the emailing list?
Thank you,
Maciek
-
Linux SMP list: FIRST see FAQ at http://www.irisa.fr/prive/dmentre/smp-howto/
To Unsubscribe: send "unsubscribe linux-smp" to [EMAIL PROTECTED]