12-6 Chapter 12: Cash Drawer Interface
Hardware/Firmware Interfaces
Insomepreviouslysupportedmodels,nopreliminaryinteractionwith
thehardwarewasrequiredtodeterminetheportaddress(s)usedfor
communicationwiththecashdrawer;thesedatawereinsteadobtained
fromtheregistry.Forthe7402,theportaddressissetdynamicallyby
theBIOSandhencethehardwaremustbe
queriedtoobtainthis
information.Thisdictatestheneedforthegenerationofa
configurationcycleasdescribedpreviously.
Configurationmechanismoneutilizestwo32bitI/Oportslocatedat
addresses0x0CF8and0x0CFC.Thesetwoportsare:
• 32‐bitconfigurationaddressport‐occupyingI/Oaddresses0x0CF8
through0x0CFB.
•
32‐bitconfigurationdataport‐occupyingI/Oaddresses0x0CFC
through0x0CFF.
AccessingaPCIfunction’sconfigurationportisatwostepprocess:
• Writethetargetbusnumber,physicaldevicenumber,function
numberanddoublewordnumbertotheconfigurationaddressport
• PerformanI/Oreadfromorawriteto
theconfigurationdataport.
TheICH4ConfigurationAddressRegistershouldbedefinedas
follows:
• ConfigurationSpaceMappingenabled
• Busnumber0
• Devicenumber31
• Functionnumber0
• GPIObaseregisteroffsetaddress0x58