From owner-p4-projects@FreeBSD.ORG Tue Apr 19 17:42:57 2011 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id B0CD2106574A; Tue, 19 Apr 2011 17:42:57 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BAEE9106566C for ; Tue, 19 Apr 2011 17:42:56 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from skunkworks.freebsd.org (skunkworks.freebsd.org [IPv6:2001:4f8:fff6::2d]) by mx1.freebsd.org (Postfix) with ESMTP id A6B7D8FC12 for ; Tue, 19 Apr 2011 17:42:56 +0000 (UTC) Received: from skunkworks.freebsd.org (localhost [127.0.0.1]) by skunkworks.freebsd.org (8.14.4/8.14.4) with ESMTP id p3JHguow016437 for ; Tue, 19 Apr 2011 17:42:56 GMT (envelope-from jhb@freebsd.org) Received: (from perforce@localhost) by skunkworks.freebsd.org (8.14.4/8.14.4/Submit) id p3JHguid016434 for perforce@freebsd.org; Tue, 19 Apr 2011 17:42:56 GMT (envelope-from jhb@freebsd.org) Date: Tue, 19 Apr 2011 17:42:56 GMT Message-Id: <201104191742.p3JHguid016434@skunkworks.freebsd.org> X-Authentication-Warning: skunkworks.freebsd.org: perforce set sender to jhb@freebsd.org using -f From: John Baldwin To: Perforce Change Reviews Precedence: bulk Cc: Subject: PERFORCE change 191792 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Apr 2011 17:42:57 -0000 http://p4web.freebsd.org/@@191792?ac=10 Change 191792 by jhb@jhb_jhbbsd on 2011/04/19 17:42:47 Cleanups. Affected files ... .. //depot/projects/pci/sys/dev/cardbus/cardbus.c#2 edit .. //depot/projects/pci/sys/dev/cardbus/cardbus_cis.c#3 edit Differences ... ==== //depot/projects/pci/sys/dev/cardbus/cardbus.c#2 (text+ko) ==== @@ -317,7 +317,6 @@ /* Bus interface */ DEVMETHOD(bus_read_ivar, cardbus_read_ivar), - DEVMETHOD(bus_write_ivar, pci_write_ivar), DEVMETHOD(bus_driver_added, cardbus_driver_added), /* Card Interface */ ==== //depot/projects/pci/sys/dev/cardbus/cardbus_cis.c#3 (text+ko) ==== @@ -324,7 +324,7 @@ * hint when the cardbus bridge is a child of pci0 (the main * bus). The PC Card spec seems to indicate that this should * only be done on x86 based machines, which suggests that on - * non-x86 machines the adddresses can be anywhere. Since the + * non-x86 machines the addresses can be anywhere. Since the * hardware can do it on non-x86 machines, it should be able * to do it on x86 machines too. Therefore, we can and should * ignore this hint. Furthermore, the PC Card spec recommends @@ -470,7 +470,7 @@ } /* allocate the memory space to read CIS */ - res = bus_alloc_resource(child, SYS_RES_MEMORY, rid, 0, ~0, 1, + res = bus_alloc_resource_any(child, SYS_RES_MEMORY, rid, rman_make_alignment_flags(4096) | RF_ACTIVE); if (res == NULL) { device_printf(cbdev, "Unable to allocate resource "