Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Dec 2009 19:42:27 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r201275 - head/sys/dev/mpt
Message-ID:  <200912301942.nBUJgRq3068878@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Wed Dec 30 19:42:27 2009
New Revision: 201275
URL: http://svn.freebsd.org/changeset/base/201275

Log:
  Use a constant instead of a magic number for the flag that enables decoding
  of a device ROM.

Modified:
  head/sys/dev/mpt/mpt_pci.c

Modified: head/sys/dev/mpt/mpt_pci.c
==============================================================================
--- head/sys/dev/mpt/mpt_pci.c	Wed Dec 30 19:38:57 2009	(r201274)
+++ head/sys/dev/mpt/mpt_pci.c	Wed Dec 30 19:42:27 2009	(r201275)
@@ -485,7 +485,7 @@ mpt_pci_attach(device_t dev)
 	 * Make sure we've disabled the ROM.
 	 */
 	data = pci_read_config(dev, PCIR_BIOS, 4);
-	data &= ~1;
+	data &= ~PCIM_BIOS_ENABLE;
 	pci_write_config(dev, PCIR_BIOS, data, 4);
 
 	/*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912301942.nBUJgRq3068878>