LPC port access on x86 module based system

hello,

well i am in bit of a trouble, but before i proceed let me give the hardware details, i am using a x86 module based system, with 2MHz cpu, 512ram. operating on Dos. more over the LPC device in this case is a CPLD Training kit MAX II EPM1270F256c.

ok now the problem statement:

i have my cpld module attached or mounted on the on-board LPC card Socket, of my x86 motherboard. and this cpld is running an application, which actives on data / address from the LPC bus, i.e. if we send some 8 bits to the LPC port the cpld will get that and should access an internal wishbone register and fetch the data from there and make it available back on the lpc port to read. this is what has to be done. so now on my x86 i have to write a C-Code (using QC.2.5 C-compiler) and to achieve the above mention task, now is there any one who can help me with this, at least something,may be to access the LPC port and send the address fetch bits to my cpld.

also i am not so good with this c programming for such hardware, so if possible pls write the code, that would be of great help

best regards