Hello all,
I had done with pcmcia win98 device driver, and i need to switch it’s default 8- bit common memory access to 16 bit access…
so i am using a OVERRIDE in the inf file…but still the inf seems to have no effect in change of the 16 bit access, also the resource size also doesn’t change…the device manager displays the memory resource described in the EEPROM of the pcmcia card…
I am using the under given code snippet…i got this from the 98 ddk “OVERRIDING LOGICAL CONFIGURATION”…but it seems not working…
can anybody let me know where things are going wrong…thanx…
shiv
[DeviceList]
%DESCRIPTION%=DriverInstall,*WCO1209
;------------------------------------------------------------------------------
; Windows 98 Sections
;------------------------------------------------------------------------------
[DriverInstall]
AddReg=DriverAddReg
CopyFiles=DriverCopyFiles,AutoLaunch98CopyFiles
LogConfig=BusOverride0
;***********Override to make PCMCIA 16 bit Memory access*************
[[BusOverride0]
HKR,Override,0000,HEX, \
;
00,04,00,00, \ ; CONFIGMG_VERSION
00,00,00,00, \ ; PRIORITY
;
; Memory Resource Descriptor
;
34,00,00,00, \ ; Total length of Memory Descriptor
01,00,00,00, \ ; ResType_Mem = 0x00000001
01,00, \ ; MD_Count;
14,00, \ ; MD_Type; // MType_Range = 0x0014
00,00,00,00, \ ; MD_Alloc_Base;
00,00,00,00, \ ; MD_Alloc_End;
00,00, \ ; MD_Flags;
00,00, \ ; MD_Reserved;
00,F0,FF,FF, \ ; MR_Align; // Mask for base alignment
00,10,00,00, \ ; MR_nBytes; // Count of bytes
00,00,00,00, \ ; MR_Min; // Min Address
FF,FF,FF,FF, \ ; MR_Max; // Max Address
00,00, \ ; MR_Flags; // Flags
00,00, \ ; MR_Reserved;
08,00,00,00, \ ; PCCARD flags, 0x02 = attribute mem, or
; 0x08 = 16-bit common mem
00,10,00,00, \ ; Memory card address
;
; IRQ Resource Descriptor
;
14,00,00,00, \ ; Total length of IRQ Resource Descriptor
04,00,00,00, \ ; ResType_IRQ = 0x00000004
00,00, \ ; IRQD_Flags;
00,00, \ ; IRQD_Alloc_Num; // Allocated IRQ number
FF,FF, \ ; IRQD_Req_Mask; // Mask of possible IRQs
00,00, \ ; IRQD_Reserved;
20,00,00,00, \ ; PCCARD flags, 0x20 = Level mode int’s
;
; REQUEST_CONFIG_PKT Descriptor
;
19,00,00,00, \ ; Length of REQUEST_CONFIG_PKT Descriptor
7C,89,00,00, \ ; ResType_Ignored_Bit+PCCARD_DEVICE_ID= 0x897C
00,00, \ ; Socket;
02,00, \ ; Attributes;
32, \ ; Vcc;
00, \ ; Vpp1;
00, \ ; Vpp2;
02, \ ; IntType;
00,02,00,00, \ ; ConfigBase;
00, \ ; Status;
00, \ ; Pin;
00, \ ; Copy;
01, \ ; ConfigIndex;
0F, \ ; Present;
;
00,00,00,00 ; TERMINATOR
;********************************************************************