buffer I/O error, trying to use SimpleTech compact flash via
pcmcia
Lloyd Carothers
lloyd at passcal.nmt.edu
Thu Jun 24 16:24:53 EDT 2004
On Thu, 2004-06-24 at 12:28, Russell King wrote:
> Could you grab the cbdump.c program from pcmcia.arm.linux.org.uk, and
> dump out:
>
> - cardctl status
Socket 0:
3.3V 16-bit PC Card
function 0: [ready], [bat dead], [bat low]
> - cardctl config
Socket 0:
Vcc 3.3V Vpp1 0.0V Vpp2 0.0V
interface type is "memory and I/O"
irq 3 [exclusive] [level]
function 0:
config base 0x0200
option 0x41 status 0x00 pin 0x00 copy 0x00
io 0x0100-0x010f [auto]
> - cbdump
02:00.0 CardBus bridge: Gammagraphx, Inc.: Unknown device 0000
-- generic cardbus config registers
Vendor ID [00] : 0x1180
Device ID [02] : 0x0476
PCI command [04] : 0x0007
Base address [10] : 0x50000000
Memory Base 0 [1c] : 0x10400000
Memory Limit 0 [20] : 0x107ff000
Memory Base 1 [24] : 0x10800000
Memory Limit 1 [28] : 0x10bff000
IO Base 0 [2c] : 0x00004000
IO Limit 0 [30] : 0x000040fc
IO Base 1 [34] : 0x00004400
IO Limit 1 [38] : 0x000044fc
Bridge control [3e] : 0x0580
Subsystem vendor ID [40] : 0x1014
Subsystem device ID [42] : 0x0185
Legacy mode base [44] : 0x0001
-- cardbus registers
CB_SOCKET_EVENT [00] : 0x00000000
CB_SOCKET_MASK [04] : 0x00000006
CB_SOCKET_STATE [08] : 0x30000819
CB_SOCKET_FORCE [0c] : 0x00000000
CB_SOCKET_CONTROL [10] : 0x00000430
CB_SOCKET_POWER [20] : 0x00000000
-- exca registers
I365_IDENT [00] : 0x83
I365_STATUS [01] : 0x6f
I365_POWER [02] : 0xd0
I365_INTCTL [03] : 0x63
I365_CSC [04] : 0x00
I365_CSCINT [05] : 0x08
I365_ADDRWIN [06] : 0x41
I365_IOCTL [07] : 0x02
I365_GENCTL [16] : 0x0000
I365_GBLCTL [1e] : 0x0000
I365_IO0_START [08] : 0x0100
I365_IO0_STOP [0a] : 0x010f
I365_IO1_START [0c] : 0x0000
I365_IO1_STOP [0e] : 0x0001
I365_MEM0_START [10] : 0x0000
I365_MEM0_STOP [12] : 0x8000
I365_MEM0_OFF [14] : 0x4000
I365_MEM0_PAGE [40] : 0xa0
I365_MEM1_START [18] : 0x0000
I365_MEM1_STOP [1a] : 0x0000
I365_MEM1_OFF [1c] : 0x0000
I365_MEM1_PAGE [41] : 0x00
I365_MEM2_START [20] : 0x0000
I365_MEM2_STOP [22] : 0x0000
I365_MEM2_OFF [24] : 0x0000
I365_MEM2_PAGE [42] : 0x00
I365_MEM3_START [28] : 0x0000
I365_MEM3_STOP [2a] : 0x0000
I365_MEM3_OFF [2c] : 0x0000
I365_MEM3_PAGE [43] : 0x00
I365_MEM4_START [30] : 0x0000
I365_MEM4_STOP [32] : 0x0000
I365_MEM4_OFF [34] : 0x0000
I365_MEM4_PAGE [44] : 0x00
02:00.1 CardBus bridge: Gammagraphx, Inc.: Unknown device 0000
-- generic cardbus config registers
Vendor ID [00] : 0x1180
Device ID [02] : 0x0476
PCI command [04] : 0x0007
Base address [10] : 0x50100000
Memory Base 0 [1c] : 0x10c00000
Memory Limit 0 [20] : 0x10fff000
Memory Base 1 [24] : 0x11000000
Memory Limit 1 [28] : 0x113ff000
IO Base 0 [2c] : 0x00004800
IO Limit 0 [30] : 0x000048fc
IO Base 1 [34] : 0x00004c00
IO Limit 1 [38] : 0x00004cfc
Bridge control [3e] : 0x0580
Subsystem vendor ID [40] : 0x1014
Subsystem device ID [42] : 0x0185
Legacy mode base [44] : 0x0001
-- cardbus registers
CB_SOCKET_EVENT [00] : 0x00000000
CB_SOCKET_MASK [04] : 0x00000006
CB_SOCKET_STATE [08] : 0x30000006
CB_SOCKET_FORCE [0c] : 0x00000000
CB_SOCKET_CONTROL [10] : 0x00000400
CB_SOCKET_POWER [20] : 0x00000000
-- exca registers
I365_IDENT [00] : 0x83
I365_STATUS [01] : 0x33
I365_POWER [02] : 0x40
I365_INTCTL [03] : 0x40
I365_CSC [04] : 0x00
I365_CSCINT [05] : 0x08
I365_ADDRWIN [06] : 0x00
I365_IOCTL [07] : 0x00
I365_GENCTL [16] : 0x0000
I365_GBLCTL [1e] : 0x0000
I365_IO0_START [08] : 0x0000
I365_IO0_STOP [0a] : 0x0001
I365_IO1_START [0c] : 0x0000
I365_IO1_STOP [0e] : 0x0001
I365_MEM0_START [10] : 0x0000
I365_MEM0_STOP [12] : 0x0000
I365_MEM0_OFF [14] : 0x0000
I365_MEM0_PAGE [40] : 0x00
I365_MEM1_START [18] : 0x0000
I365_MEM1_STOP [1a] : 0x0000
I365_MEM1_OFF [1c] : 0x0000
I365_MEM1_PAGE [41] : 0x00
I365_MEM2_START [20] : 0x0000
I365_MEM2_STOP [22] : 0x0000
I365_MEM2_OFF [24] : 0x0000
I365_MEM2_PAGE [42] : 0x00
I365_MEM3_START [28] : 0x0000
I365_MEM3_STOP [2a] : 0x0000
I365_MEM3_OFF [2c] : 0x0000
I365_MEM3_PAGE [43] : 0x00
I365_MEM4_START [30] : 0x0000
I365_MEM4_STOP [32] : 0x0000
I365_MEM4_OFF [34] : 0x0000
I365_MEM4_PAGE [44] : 0x00
> Thanks.
thank you
More information about the linux-pcmcia
mailing list