diff options
author | Marius Strobl <marius@FreeBSD.org> | 2010-04-27 18:05:33 +0000 |
---|---|---|
committer | Marius Strobl <marius@FreeBSD.org> | 2010-04-27 18:05:33 +0000 |
commit | 699346fc8b4dc86322dae1f9dcacade4560b3e2e (patch) | |
tree | 34313cd5d32a96aa01a29e82cba4bf5a91a1fe15 /sys/dev/sym/sym_hipd.c | |
parent | 637bfa488b897727534ae4ac65851cb4334cce72 (diff) | |
download | src-699346fc8b4dc86322dae1f9dcacade4560b3e2e.tar.gz src-699346fc8b4dc86322dae1f9dcacade4560b3e2e.zip |
Notes
Diffstat (limited to 'sys/dev/sym/sym_hipd.c')
-rw-r--r-- | sys/dev/sym/sym_hipd.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/sys/dev/sym/sym_hipd.c b/sys/dev/sym/sym_hipd.c index a43c816c65fe..5050a5f9a9bf 100644 --- a/sys/dev/sym/sym_hipd.c +++ b/sys/dev/sym/sym_hipd.c @@ -87,6 +87,12 @@ __FBSDID("$FreeBSD$"); #include <machine/bus.h> #include <machine/resource.h> + +#ifdef __sparc64__ +#include <dev/ofw/openfirm.h> +#include <machine/ofw_machdep.h> +#endif + #include <sys/rman.h> #include <cam/cam.h> @@ -98,10 +104,6 @@ __FBSDID("$FreeBSD$"); #include <cam/scsi/scsi_all.h> #include <cam/scsi/scsi_message.h> -#include <vm/vm.h> -#include <vm/vm_param.h> -#include <vm/pmap.h> - /* Short and quite clear integer types */ typedef int8_t s8; typedef int16_t s16; @@ -2682,6 +2684,9 @@ static int sym_prepare_setting(hcb_p np, struct sym_nvram *nvram) */ np->myaddr = 255; sym_nvram_setup_host (np, nvram); +#ifdef __sparc64__ + np->myaddr = OF_getscsinitid(np->device); +#endif /* * Get SCSI addr of host adapter (set by bios?). |