isp_library.c (291510) | isp_library.c (291511) |
---|---|
1/*- 2 * Copyright (c) 1997-2009 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 * --- 21 unchanged lines hidden (view full) --- 30 */ 31#ifdef __NetBSD__ 32#include <sys/cdefs.h> 33__KERNEL_RCSID(0, "$NetBSD$"); 34#include <dev/ic/isp_netbsd.h> 35#endif 36#ifdef __FreeBSD__ 37#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1997-2009 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 * --- 21 unchanged lines hidden (view full) --- 30 */ 31#ifdef __NetBSD__ 32#include <sys/cdefs.h> 33__KERNEL_RCSID(0, "$NetBSD$"); 34#include <dev/ic/isp_netbsd.h> 35#endif 36#ifdef __FreeBSD__ 37#include <sys/cdefs.h> |
38__FBSDID("$FreeBSD: stable/10/sys/dev/isp/isp_library.c 291510 2015-11-30 21:37:22Z mav $"); | 38__FBSDID("$FreeBSD: stable/10/sys/dev/isp/isp_library.c 291511 2015-11-30 21:38:05Z mav $"); |
39#include <dev/isp/isp_freebsd.h> 40#endif 41#ifdef __OpenBSD__ 42#include <dev/ic/isp_openbsd.h> 43#endif 44#ifdef __linux__ 45#include "isp_linux.h" 46#endif --- 2105 unchanged lines hidden (view full) --- 2152 ISP_IOZPUT_8(isp, src->rftid_portid[i], &dst->rftid_portid[i]); 2153 } 2154 for (i = 0; i < 8; i++) { 2155 ISP_IOZPUT_32(isp, src->rftid_fc4types[i], &dst->rftid_fc4types[i]); 2156 } 2157} 2158 2159void | 39#include <dev/isp/isp_freebsd.h> 40#endif 41#ifdef __OpenBSD__ 42#include <dev/ic/isp_openbsd.h> 43#endif 44#ifdef __linux__ 45#include "isp_linux.h" 46#endif --- 2105 unchanged lines hidden (view full) --- 2152 ISP_IOZPUT_8(isp, src->rftid_portid[i], &dst->rftid_portid[i]); 2153 } 2154 for (i = 0; i < 8; i++) { 2155 ISP_IOZPUT_32(isp, src->rftid_fc4types[i], &dst->rftid_fc4types[i]); 2156 } 2157} 2158 2159void |
2160isp_put_rff_id(ispsoftc_t *isp, rff_id_t *src, rff_id_t *dst) 2161{ 2162 int i; 2163 2164 isp_put_ct_hdr(isp, &src->rffid_hdr, &dst->rffid_hdr); 2165 ISP_IOZPUT_8(isp, src->rffid_reserved, &dst->rffid_reserved); 2166 for (i = 0; i < 3; i++) 2167 ISP_IOZPUT_8(isp, src->rffid_portid[i], &dst->rffid_portid[i]); 2168 ISP_IOZPUT_16(isp, src->rffid_reserved2, &dst->rffid_reserved2); 2169 ISP_IOZPUT_8(isp, src->rffid_fc4features, &dst->rffid_fc4features); 2170 ISP_IOZPUT_8(isp, src->rffid_fc4type, &dst->rffid_fc4type); 2171} 2172 2173void |
|
2160isp_get_ct_hdr(ispsoftc_t *isp, ct_hdr_t *src, ct_hdr_t *dst) 2161{ 2162 ISP_IOZGET_8(isp, &src->ct_revision, dst->ct_revision); 2163 ISP_IOZGET_8(isp, &src->ct_in_id[0], dst->ct_in_id[0]); 2164 ISP_IOZGET_8(isp, &src->ct_in_id[1], dst->ct_in_id[1]); 2165 ISP_IOZGET_8(isp, &src->ct_in_id[2], dst->ct_in_id[2]); 2166 ISP_IOZGET_8(isp, &src->ct_fcs_type, dst->ct_fcs_type); 2167 ISP_IOZGET_8(isp, &src->ct_fcs_subtype, dst->ct_fcs_subtype); --- 1837 unchanged lines hidden --- | 2174isp_get_ct_hdr(ispsoftc_t *isp, ct_hdr_t *src, ct_hdr_t *dst) 2175{ 2176 ISP_IOZGET_8(isp, &src->ct_revision, dst->ct_revision); 2177 ISP_IOZGET_8(isp, &src->ct_in_id[0], dst->ct_in_id[0]); 2178 ISP_IOZGET_8(isp, &src->ct_in_id[1], dst->ct_in_id[1]); 2179 ISP_IOZGET_8(isp, &src->ct_in_id[2], dst->ct_in_id[2]); 2180 ISP_IOZGET_8(isp, &src->ct_fcs_type, dst->ct_fcs_type); 2181 ISP_IOZGET_8(isp, &src->ct_fcs_subtype, dst->ct_fcs_subtype); --- 1837 unchanged lines hidden --- |