From owner-svn-src-head@FreeBSD.ORG Wed Dec 30 19:42:27 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C1CF31065670; Wed, 30 Dec 2009 19:42:27 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id B0EA68FC1C; Wed, 30 Dec 2009 19:42:27 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id nBUJgRdw068880; Wed, 30 Dec 2009 19:42:27 GMT (envelope-from jhb@svn.freebsd.org) Received: (from jhb@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id nBUJgRq3068878; Wed, 30 Dec 2009 19:42:27 GMT (envelope-from jhb@svn.freebsd.org) Message-Id: <200912301942.nBUJgRq3068878@svn.freebsd.org> From: John Baldwin Date: Wed, 30 Dec 2009 19:42:27 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r201275 - head/sys/dev/mpt X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Dec 2009 19:42:27 -0000 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); /*