Subject: apm prob
To: None <port-i386@netbsd.org>
From: Patrick Welche <prlw1@newn.cam.ac.uk>
List: port-i386
Date: 09/23/2001 19:47:48
I took a little look at my apm "Input/Output error" - how can you get a
device recognized? It seems that is an error defined in apmvar.h which
suggests it is returned by the ?bios? I added a couple of apm_perror()s
which show up "unrecognized device ID"...

Cheers,

Patrick

Intel 82371AB Power Management Controller (PIIX4) (miscellaneous bridge, revision 0x03) at pci0 dev 7 function 3 not configured
apm: bioscall return: 102 504d 3 0 c0880202<IEN> 0 0
apm0 at mainbus0: bioscall return: c0880102 c0ad504d ffff0003 c0350000 c0880202<IEN> c0350000 0
apm0: bioscall return: c0880304 c0ad0000 ffff0000 c0350000 c0880247<IEN,ZF,PF,CY> c0350000 0
apm0: bioscall return: c088f000 5d4b fffff000 c0350040 c0880282<IEN,NF> ffffffff ffff
apm0: data segment oversized: [400,103ff); resized to [400,1000)
apm0: code32len=ffff, datalen=c00
apm0: mapping bios data area 400 @ 0xcbae4400
apm0: detail 30102 32b:f0000/0xc08e3000/ffff 16b:f0000/0xc08e3000/ffff data 400/0xc07f3400/c00 ep 5d4b (30:0xc08e8d4b) 0xc083fa90
apm0: WARNING: preposterous time in file system
apmcall@182: driver_version/0xe (line=957) in: bx=0 cx=0x102  => out: ax=0x102 
Power Management spec V1.2
APM before apmcall(): unknown error code (0xf000)
apmcall@182: get_caps/0x10 (line=916) in: bx=0  => out: bx=0x1 cx=0x2a 
APM after apmcall(): unrecognized device ID (0x910)
APM APMDEBUG is defined: unrecognized device ID (0x910)
apm: 1 batteries, global suspend, rtimer suspend, internal standby
apmcall@182: engage_power_mgt/0xf (line=826) in: bx=0x1 cx=0x1  => 
apmcall@182: get_power_status/0xa (line=1003) in: bx=0x1  => out: bx=0x103 cx=0x964 dx=0xffff si=0xc00 
apm0: battery life expectancy: 100%
apm0: A/C state: on
apm0: battery charge state: high charging

apmopen: pid 198 flag 3 mode 2000
APM apm_power_info1: 238 62 6 199 3 4294967295: unknown error code (0x0)
APM apm_minver=2: unknown error code (0x0)
APM before apmcall(): unknown error code (0x0)
apmcall@213: get_caps/0x10 (line=916) in: bx=0  => out: bx=0x1 cx=0x2a 
APM after apmcall(): unrecognized device ID (0x910)
APM APMDEBUG is defined: unrecognized device ID (0x910)
apm: 1 batteries, global suspend, rtimer suspend, internal standby
APM apm_power_info2: 238 62 6 199 3 4294967295: unrecognized device ID (0x910)
APM batteryid -1 > APM_NBATTERIES 1: unrecognized device ID (0x910)
not fetch power status: Input/output error

WARNING: can't reserve area for I/O APIC.