isp_library.c (290798) | isp_library.c (291498) |
---|---|
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 290798 2015-11-13 19:57:59Z mav $"); | 38__FBSDID("$FreeBSD: stable/10/sys/dev/isp/isp_library.c 291498 2015-11-30 21:28:53Z 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 --- 1594 unchanged lines hidden (view full) --- 1641 for (i = 0; i < 8; i++) { 1642 ISP_IOXGET_8(isp, &src->pdb_portname[i], dst->pdb_portname[i]); 1643 } 1644 for (i = 0; i < 24; i++) { 1645 ISP_IOXGET_8(isp, &src->pdb_reserved1[i], dst->pdb_reserved1[i]); 1646 } 1647} 1648 | 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 --- 1594 unchanged lines hidden (view full) --- 1641 for (i = 0; i < 8; i++) { 1642 ISP_IOXGET_8(isp, &src->pdb_portname[i], dst->pdb_portname[i]); 1643 } 1644 for (i = 0; i < 24; i++) { 1645 ISP_IOXGET_8(isp, &src->pdb_reserved1[i], dst->pdb_reserved1[i]); 1646 } 1647} 1648 |
1649void 1650isp_get_pnhle_21xx(ispsoftc_t *isp, isp_pnhle_21xx_t *src, isp_pnhle_21xx_t *dst) 1651{ 1652 1653 ISP_IOXGET_16(isp, &src->pnhle_port_id_lo, dst->pnhle_port_id_lo); 1654 ISP_IOXGET_16(isp, &src->pnhle_port_id_hi_handle, dst->pnhle_port_id_hi_handle); 1655} 1656 1657void 1658isp_get_pnhle_23xx(ispsoftc_t *isp, isp_pnhle_23xx_t *src, isp_pnhle_23xx_t *dst) 1659{ 1660 1661 ISP_IOXGET_16(isp, &src->pnhle_port_id_lo, dst->pnhle_port_id_lo); 1662 ISP_IOXGET_16(isp, &src->pnhle_port_id_hi, dst->pnhle_port_id_hi); 1663 ISP_IOXGET_16(isp, &src->pnhle_handle, dst->pnhle_handle); 1664} 1665 1666void 1667isp_get_pnhle_24xx(ispsoftc_t *isp, isp_pnhle_24xx_t *src, isp_pnhle_24xx_t *dst) 1668{ 1669 1670 ISP_IOXGET_16(isp, &src->pnhle_port_id_lo, dst->pnhle_port_id_lo); 1671 ISP_IOXGET_16(isp, &src->pnhle_port_id_hi, dst->pnhle_port_id_hi); 1672 ISP_IOXGET_16(isp, &src->pnhle_handle, dst->pnhle_handle); 1673 ISP_IOXGET_16(isp, &src->pnhle_reserved, dst->pnhle_reserved); 1674} 1675 1676void 1677isp_get_pnnle(ispsoftc_t *isp, isp_pnnle_t *src, isp_pnnle_t *dst) 1678{ 1679 int i; 1680 1681 for (i = 0; i < 8; i++) 1682 ISP_IOXGET_8(isp, &src->pnnle_name[i], dst->pnnle_name[i]); 1683 ISP_IOXGET_16(isp, &src->pnnle_handle, dst->pnnle_handle); 1684 ISP_IOXGET_16(isp, &src->pnnle_reserved, dst->pnnle_reserved); 1685} 1686 |
|
1649/* 1650 * PLOGI/LOGO IOCB canonicalization 1651 */ 1652 1653void 1654isp_get_plogx(ispsoftc_t *isp, isp_plogx_t *src, isp_plogx_t *dst) 1655{ 1656 int i; --- 2322 unchanged lines hidden --- | 1687/* 1688 * PLOGI/LOGO IOCB canonicalization 1689 */ 1690 1691void 1692isp_get_plogx(ispsoftc_t *isp, isp_plogx_t *src, isp_plogx_t *dst) 1693{ 1694 int i; --- 2322 unchanged lines hidden --- |