hptiop.c (226350) | hptiop.c (227912) |
---|---|
1/* 2 * HighPoint RR3xxx/4xxx RAID Driver for FreeBSD 3 * Copyright (C) 2007-2008 HighPoint Technologies, Inc. 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 --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/* 2 * HighPoint RR3xxx/4xxx RAID Driver for FreeBSD 3 * Copyright (C) 2007-2008 HighPoint Technologies, Inc. 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 --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/dev/hptiop/hptiop.c 226350 2011-10-13 20:06:19Z marius $"); | 28__FBSDID("$FreeBSD: head/sys/dev/hptiop/hptiop.c 227912 2011-11-23 21:43:51Z marius $"); |
29 30#include <sys/param.h> 31#include <sys/types.h> 32#include <sys/cons.h> 33#if (__FreeBSD_version >= 500000) 34#include <sys/time.h> 35#include <sys/systm.h> 36#else --- 1771 unchanged lines hidden (view full) --- 1808 break; 1809 1810 case XPT_GET_TRAN_SETTINGS: 1811 case XPT_SET_TRAN_SETTINGS: 1812 ccb->ccb_h.status = CAM_FUNC_NOTAVAIL; 1813 break; 1814 1815 case XPT_CALC_GEOMETRY: | 29 30#include <sys/param.h> 31#include <sys/types.h> 32#include <sys/cons.h> 33#if (__FreeBSD_version >= 500000) 34#include <sys/time.h> 35#include <sys/systm.h> 36#else --- 1771 unchanged lines hidden (view full) --- 1808 break; 1809 1810 case XPT_GET_TRAN_SETTINGS: 1811 case XPT_SET_TRAN_SETTINGS: 1812 ccb->ccb_h.status = CAM_FUNC_NOTAVAIL; 1813 break; 1814 1815 case XPT_CALC_GEOMETRY: |
1816#if __FreeBSD_version >= 500000 1817 cam_calc_geometry(&ccb->ccg, 1); 1818#else |
|
1816 ccb->ccg.heads = 255; 1817 ccb->ccg.secs_per_track = 63; 1818 ccb->ccg.cylinders = ccb->ccg.volume_size / 1819 (ccb->ccg.heads * ccb->ccg.secs_per_track); 1820 ccb->ccb_h.status = CAM_REQ_CMP; | 1819 ccb->ccg.heads = 255; 1820 ccb->ccg.secs_per_track = 63; 1821 ccb->ccg.cylinders = ccb->ccg.volume_size / 1822 (ccb->ccg.heads * ccb->ccg.secs_per_track); 1823 ccb->ccb_h.status = CAM_REQ_CMP; |
1824#endif |
|
1821 break; 1822 1823 case XPT_PATH_INQ: 1824 { 1825 struct ccb_pathinq *cpi = &ccb->cpi; 1826 1827 cpi->version_num = 1; 1828 cpi->hba_inquiry = PI_SDTR_ABLE; --- 381 unchanged lines hidden --- | 1825 break; 1826 1827 case XPT_PATH_INQ: 1828 { 1829 struct ccb_pathinq *cpi = &ccb->cpi; 1830 1831 cpi->version_num = 1; 1832 cpi->hba_inquiry = PI_SDTR_ABLE; --- 381 unchanged lines hidden --- |