PERFORCE change 94439 for review
John-Mark Gurney
jmg at FreeBSD.org
Sun Apr 2 04:33:52 UTC 2006
http://perforce.freebsd.org/chv.cgi?CH=94439
Change 94439 by jmg at 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);
}
More information about the p4-projects
mailing list