isp_sbus.c (289930) | isp_sbus.c (291188) |
---|---|
1/*- 2 * Copyright (c) 1997-2006 by Matthew Jacob 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * SUCH DAMAGE. 25 */ 26/* 27 * SBus specific probe and attach routines for Qlogic ISP SCSI adapters. 28 * FreeBSD Version. 29 */ 30 31#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1997-2006 by Matthew Jacob 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 24 * SUCH DAMAGE. 25 */ 26/* 27 * SBus specific probe and attach routines for Qlogic ISP SCSI adapters. 28 * FreeBSD Version. 29 */ 30 31#include <sys/cdefs.h> |
32__FBSDID("$FreeBSD: head/sys/dev/isp/isp_sbus.c 289930 2015-10-25 10:49:05Z mav $"); | 32__FBSDID("$FreeBSD: head/sys/dev/isp/isp_sbus.c 291188 2015-11-23 10:06:19Z mav $"); |
33 34#include <sys/param.h> 35#include <sys/systm.h> 36#include <sys/linker.h> 37#include <sys/firmware.h> 38#include <sys/bus.h> 39#include <sys/kernel.h> 40#include <sys/module.h> --- 157 unchanged lines hidden (view full) --- 198 isp->isp_mdvec = &sbs->sbus_mdvec; 199 isp->isp_bustype = ISP_BT_SBUS; 200 isp->isp_type = ISP_HA_SCSI_UNKNOWN; 201 isp->isp_param = &sbs->sbus_param; 202 isp->isp_osinfo.pc.ptr = &sbs->sbus_spi; 203 isp->isp_revision = 0; /* XXX */ 204 isp->isp_dev = dev; 205 isp->isp_nchan = 1; | 33 34#include <sys/param.h> 35#include <sys/systm.h> 36#include <sys/linker.h> 37#include <sys/firmware.h> 38#include <sys/bus.h> 39#include <sys/kernel.h> 40#include <sys/module.h> --- 157 unchanged lines hidden (view full) --- 198 isp->isp_mdvec = &sbs->sbus_mdvec; 199 isp->isp_bustype = ISP_BT_SBUS; 200 isp->isp_type = ISP_HA_SCSI_UNKNOWN; 201 isp->isp_param = &sbs->sbus_param; 202 isp->isp_osinfo.pc.ptr = &sbs->sbus_spi; 203 isp->isp_revision = 0; /* XXX */ 204 isp->isp_dev = dev; 205 isp->isp_nchan = 1; |
206 ISP_SET_PC(isp, 0, def_role, role); | 206 if (IS_FC(isp)) 207 ISP_FC_PC(isp, 0)->def_role = role; |
207 208 /* 209 * Get the clock frequency and convert it from HZ to MHz, 210 * rounding up. This defaults to 25MHz if there isn't a 211 * device specific one in the OFW device tree. 212 */ 213 sbs->sbus_mdvec.dv_clock = (sbus_get_clockfreq(dev) + 500000)/1000000; 214 --- 499 unchanged lines hidden --- | 208 209 /* 210 * Get the clock frequency and convert it from HZ to MHz, 211 * rounding up. This defaults to 25MHz if there isn't a 212 * device specific one in the OFW device tree. 213 */ 214 sbs->sbus_mdvec.dv_clock = (sbus_get_clockfreq(dev) + 500000)/1000000; 215 --- 499 unchanged lines hidden --- |