Dimitris Lampridis writes: > Hi Lothar (again), > > I'm missing the ohci-pci-regs.h file. Why is that? > If i get it right it ought to be ohci.h renamed and with the read/write > functions also declared. But I don't have the file and although your > patch adds the line ... #include "ohci-pci-regs.h" ... it never creates > the file itself. So, what's the story with this? > Oops. Sorry, I missed that one. Here it is. I also updated the files on the website.
/* * drivers/usb/host/ohci-pci-regs.h * * COPYRIGHT (C) by L. Wassmann <[EMAIL PROTECTED]> * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Macros for OHCI register access to facilitate OHCI emulation * on non-OHCI compliant hardware * */ #define ohci_read_reg(hc,n) ohci_readl(&(hc)->regs->n) #define ohci_write_reg(hc,n,v) writel(v, &(hc)->regs->n) #define ohci_read_revision(hc) ohci_read_reg(hc, revision) #define ohci_read_control(hc) ohci_read_reg(hc, control) #define ohci_read_cmdstatus(hc) ohci_read_reg(hc, cmdstatus) #define ohci_read_intrstatus(hc) ohci_read_reg(hc, intrstatus) #define ohci_read_intrenable(hc) ohci_read_reg(hc, intrenable) #define ohci_read_intrdisable(hc) ohci_read_reg(hc, intrdisable) #define ohci_read_periodcurrent(hc) ohci_read_reg(hc, ed_periodcurrent) #define ohci_read_controlhead(hc) ohci_read_reg(hc, ed_controlhead) #define ohci_read_controlcurrent(hc) ohci_read_reg(hc, ed_controlcurrent) #define ohci_read_bulkhead(hc) ohci_read_reg(hc, ed_bulkhead) #define ohci_read_bulkcurrent(hc) ohci_read_reg(hc, ed_bulkcurrent) #define ohci_read_donehead(hc) ohci_read_reg(hc, donehead) #define ohci_read_fminterval(hc) ohci_read_reg(hc, fminterval) #define ohci_read_fmremaining(hc) ohci_read_reg(hc, fmremaining) #define ohci_read_fmnumber(hc) ohci_read_reg(hc, fmnumber) #define ohci_read_periodicstart(hc) ohci_read_reg(hc, periodicstart) #define ohci_read_lsthresh(hc) ohci_read_reg(hc, lsthresh) #define ohci_write_control(hc,v) ohci_write_reg(hc, control, v) #define ohci_write_cmdstatus(hc,v) ohci_write_reg(hc, cmdstatus, v) #define ohci_write_intrstatus(hc,v) ohci_write_reg(hc, intrstatus, v) #define ohci_write_intrenable(hc,v) ohci_write_reg(hc, intrenable, v) #define ohci_write_intrdisable(hc,v) ohci_write_reg(hc, intrdisable, v) #define ohci_write_periodcurrent(hc,v) ohci_write_reg(hc, ed_periodcurrent, v) #define ohci_write_controlhead(hc,v) ohci_write_reg(hc, ed_controlhead, v) #define ohci_write_controlcurrent(hc,v) ohci_write_reg(hc, ed_controlcurrent, v) #define ohci_write_bulkhead(hc,v) ohci_write_reg(hc, ed_bulkhead, v) #define ohci_write_bulkcurrent(hc,v) ohci_write_reg(hc, ed_bulkcurrent, v) #define ohci_write_fminterval(hc,v) ohci_write_reg(hc, fminterval, v) #define ohci_write_fmremaining(hc,v) ohci_write_reg(hc, fmremaining, v) #define ohci_write_fmnumber(hc,v) ohci_write_reg(hc, fmnumber, v) #define ohci_write_periodicstart(hc,v) ohci_write_reg(hc, periodicstart, v) #define ohci_write_lsthresh(hc,v) ohci_write_reg(hc, lsthresh, v)
Lothar Wassmann