Accessing I/O ports in Linux

From: Robert E. Wiersbe (rwiersbe_at_comcast.net)
Date: 08/28/03


Date: Thu, 28 Aug 2003 16:08:54 -0500

I need to access the GPIO (general purpose I/O) port on the motherboard
I'm using (Radisys BG845G). I'm running Red Hat 9.0. I need to be able
to read/write this port from inside a C program. The address offsets are
0x62 and 0x66, but I don't know the base address.

Can someone give me an idea of how to find the base address, and then
access these ports using C?

Thanks!

Bob Wiersbe



Relevant Pages

  • panic: APIC: Previous IPI is stuck
    ... pcibus 0 on motherboard ... <Parallel port bus> on ppc0 ... GEOM_MIRROR: Device mirror0: provider da0 detected. ... Disk da1 attached to usr2. ...
    (freebsd-stable)
  • Newest Stack-180 CP/M system with motherboard option and networking
    ... CPU and includes 1 meg of ram and one serial port for terminal I/O The ... GIDE board has two IDE ports called Primary and Secondary which allow ... It is a ATX type motherboard that these ... and another IDE interface. ...
    (comp.os.cpm)
  • 5.3-RELEASE: SMP: system clock has died
    ... I have an ASUS P2B-DS motherboard with dual P2 400MHz CPU's. ... <Parallel port bus> on ppc0 ... unknown: can't assign resources ...
    (freebsd-stable)
  • Re: VIA IDE controller not detected on RELENG_6
    ... indicates strongly that what you have is an Asus motherboard with an VIA ... your system then the PATA controller should be recognized correctly. ... atapci0: port ... 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfc00-0xfc0f at device 15.1 on pci0 ...
    (freebsd-stable)
  • fatal trap 12 in kernel mode
    ... motherboard, and i hope that's not my problem. ... can't assign resources (port) ... page fault while in kernel mode ... Automatic reboot in 15 seconds - press a key on the console to abort ...
    (freebsd-questions)