Date: Sat, 18 Dec 2010 14:24:24 +0000 (UTC) From: Tijl Coosemans <tijl@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/dev/hifn hifn7751.c Message-ID: <201012181424.oBIEOe3p098940@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
tijl 2010-12-18 14:24:24 UTC FreeBSD src repository Modified files: sys/dev/hifn hifn7751.c Log: SVN rev 216519 on 2010-12-18 14:24:24Z by tijl No need to zero the softc. It's allocated with M_ZERO. Use pci_enable_busmaster instead of setting PCIM_CMD_BUSMASTEREN directly. There's no need to set PCIM_CMD_MEMEN. The bit is set when a SYS_RES_MEMORY resource is activated. Remove redundant pci_* function calls from suspend/resume methods. The bus driver already saves and restores the PCI configuration. Write 1 byte instead of 4 when setting the HIFN_TRDY_TIMEOUT register. It is only 1 byte according to the specification. Reviewed by: jhb Approved by: kib (mentor) Revision Changes Path 1.44 +3 -27 src/sys/dev/hifn/hifn7751.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201012181424.oBIEOe3p098940>