Date: Sun, 2 Apr 2006 04:33:48 GMT From: John-Mark Gurney <jmg@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 94439 for review Message-ID: <200604020433.k324XmtM098977@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=94439 Change 94439 by jmg@jmg_carbon-60 on 2006/04/02 04:33:20 put cell_t back to unsigned long, and make hv_pci.c use a uint32_t... Affected files ... .. //depot/projects/kmacy_sun4v/src/sys/dev/ofw/openfirm.h#7 edit .. //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/hv_pci.c#2 edit Differences ... ==== //depot/projects/kmacy_sun4v/src/sys/dev/ofw/openfirm.h#7 (text+ko) ==== @@ -64,7 +64,7 @@ * Prototypes for Open Firmware Interface Routines */ -typedef uint32_t cell_t; +typedef unsigned long cell_t; typedef unsigned int ihandle_t; typedef unsigned int phandle_t; ==== //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/hv_pci.c#2 (text+ko) ==== @@ -120,7 +120,7 @@ { struct hvpci_softc *sc; phandle_t node; - cell_t cell; + uint32_t cell; node = ofw_bus_get_node(dev); if (node == -1) @@ -129,7 +129,7 @@ sc = device_get_softc(dev); if (OF_getprop(node, "reg", &cell, sizeof cell) == -1) panic("%s: OF_getprop failed.", __func__); - sc->hs_devhandle = p1275_cell2uint(cell) & 0xfffffff; + sc->hs_devhandle = cell & 0xfffffff; return (0); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604020433.k324XmtM098977>