Re: writing/finding pci bar0
Tim Roberts wrote:
The low-order bit of the BAR registers say whether the address is in memory
space (0) or I/O port space (1). Parallel ports use I/O ports. That's why
you're able to tickle it from user mode (using outpb, right?). If it was a
memory address, you'd need to use a kernel driver.
If the device uses memory rather than I/O space, you can open /dev/mem
and mmap it.
GH
.
Relevant Pages
- Re: IRQL Issues
... I/O Port 0x00000000-0x00000CF7 Direct memory access controller ... I/O Port 0x000003C0-0x000003DF ULi AGP v3.0 Controller ... Memory Address 0xD0000000-0xDFFFFFFF ULi AGP v3.0 Controller ... Memory Address 0xD0000000-0xDFFFFFFF NVIDIA GeForce 6600 GT ... (microsoft.public.windowsxp.help_and_support) - Re: IRQL Issues
... I/O Port 0x00000000-0x00000CF7 Direct memory access controller ... I/O Port 0x000003C0-0x000003DF ULi AGP v3.0 Controller ... Memory Address 0xD0000000-0xDFFFFFFF ULi AGP v3.0 Controller ... Memory Address 0xD0000000-0xDFFFFFFF NVIDIA GeForce 6600 GT ... (microsoft.public.windowsxp.help_and_support) - Re: IRQL Issues
... I/O Port 0x00000000-0x00000CF7 Direct memory access controller ... I/O Port 0x000003C0-0x000003DF ULi AGP v3.0 Controller ... Memory Address 0xD0000000-0xDFFFFFFF ULi AGP v3.0 Controller ... Memory Address 0xD0000000-0xDFFFFFFF NVIDIA GeForce 6600 GT ... (microsoft.public.windowsxp.help_and_support) - Re: is NULL-checking redundant in accessor-functions?
... >> The standard says so. ... What happens if you run this code in an environment without any memory ... Can depend on what was last written to that I/O port. ... control structures, possibly causing damage to input files, if your OS ... (comp.lang.c) - Re: Clarification on IO Operations
... They have an I/O address just as memory locations have an address. ... Someone decides how to decode the I/O port address in the hardware design. ... the case of the IBM PC, it was IBM that set the standard that everyone ... Some boards use a configuration memory ... (comp.os.linux.development.system) |
|