qla_glbl.h (227064) | qla_glbl.h (250340) |
---|---|
1/* | 1/* |
2 * Copyright (c) 2010-2011 Qlogic Corporation | 2 * Copyright (c) 2011-2013 Qlogic Corporation |
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 * 9 * 1. Redistributions of source code must retain the above copyright 10 * notice, this list of conditions and the following disclaimer. --- 8 unchanged lines hidden (view full) --- 19 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 20 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 21 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 24 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 25 * POSSIBILITY OF SUCH DAMAGE. 26 * | 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 * 9 * 1. Redistributions of source code must retain the above copyright 10 * notice, this list of conditions and the following disclaimer. --- 8 unchanged lines hidden (view full) --- 19 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 20 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 21 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 23 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 24 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 25 * POSSIBILITY OF SUCH DAMAGE. 26 * |
27 * $FreeBSD: head/sys/dev/qlxgb/qla_glbl.h 227064 2011-11-03 21:20:22Z bz $ | 27 * $FreeBSD: head/sys/dev/qlxgb/qla_glbl.h 250340 2013-05-07 22:58:42Z davidcs $ |
28 */ 29/* 30 * File: qla_glbl.h 31 * Author : David C Somayajulu, Qlogic Corporation, Aliso Viejo, CA 92656. 32 * Content: Contains prototypes of the exported functions from each file. 33 */ 34#ifndef _QLA_GLBL_H_ 35#define _QLA_GLBL_H_ --- 15 unchanged lines hidden (view full) --- 51extern uint32_t free_pkt_thres; 52 53extern int qla_alloc_dmabuf(qla_host_t *ha, qla_dma_t *dma_buf); 54extern void qla_free_dmabuf(qla_host_t *ha, qla_dma_t *dma_buf); 55extern void qla_start(struct ifnet *ifp); 56extern int qla_get_mbuf(qla_host_t *ha, qla_rx_buf_t *rxb, struct mbuf *nmp, 57 uint32_t jumbo); 58 | 28 */ 29/* 30 * File: qla_glbl.h 31 * Author : David C Somayajulu, Qlogic Corporation, Aliso Viejo, CA 92656. 32 * Content: Contains prototypes of the exported functions from each file. 33 */ 34#ifndef _QLA_GLBL_H_ 35#define _QLA_GLBL_H_ --- 15 unchanged lines hidden (view full) --- 51extern uint32_t free_pkt_thres; 52 53extern int qla_alloc_dmabuf(qla_host_t *ha, qla_dma_t *dma_buf); 54extern void qla_free_dmabuf(qla_host_t *ha, qla_dma_t *dma_buf); 55extern void qla_start(struct ifnet *ifp); 56extern int qla_get_mbuf(qla_host_t *ha, qla_rx_buf_t *rxb, struct mbuf *nmp, 57 uint32_t jumbo); 58 |
59 | |
60/* | 59/* |
61 * from qla_flash.c 62 */ 63extern int qla_flash_rd32_words(qla_host_t *ha, uint32_t addr, 64 uint32_t *val, uint32_t num); 65extern int qla_flash_rd32(qla_host_t *ha, uint32_t addr, uint32_t *val); 66 67/* | |
68 * from qla_hw.c 69 */ 70extern int qla_get_msix_count(qla_host_t *ha); 71extern int qla_alloc_dma(qla_host_t *ha); 72extern void qla_free_dma(qla_host_t *ha); 73extern void qla_hw_add_sysctls(qla_host_t *ha); 74extern int qla_hw_send(qla_host_t *ha, bus_dma_segment_t *segs, int nsegs, 75 uint32_t *tx_idx, struct mbuf *mp); --- 16 unchanged lines hidden (view full) --- 92 93/* 94 * from qla_misc.c 95 */ 96extern int qla_init_hw(qla_host_t *ha); 97extern int qla_rdwr_indreg32(qla_host_t *ha, uint32_t addr, uint32_t *val, 98 uint32_t rd); 99extern int qla_rd_flash32(qla_host_t *ha, uint32_t addr, uint32_t *data); | 60 * from qla_hw.c 61 */ 62extern int qla_get_msix_count(qla_host_t *ha); 63extern int qla_alloc_dma(qla_host_t *ha); 64extern void qla_free_dma(qla_host_t *ha); 65extern void qla_hw_add_sysctls(qla_host_t *ha); 66extern int qla_hw_send(qla_host_t *ha, bus_dma_segment_t *segs, int nsegs, 67 uint32_t *tx_idx, struct mbuf *mp); --- 16 unchanged lines hidden (view full) --- 84 85/* 86 * from qla_misc.c 87 */ 88extern int qla_init_hw(qla_host_t *ha); 89extern int qla_rdwr_indreg32(qla_host_t *ha, uint32_t addr, uint32_t *val, 90 uint32_t rd); 91extern int qla_rd_flash32(qla_host_t *ha, uint32_t addr, uint32_t *data); |
92extern int qla_flash_rd32_words(qla_host_t *ha, uint32_t addr, 93 uint32_t *val, uint32_t num); 94extern int qla_flash_rd32(qla_host_t *ha, uint32_t addr, uint32_t *val); 95extern int qla_fw_update(qla_host_t *ha, void *fdata, uint32_t off, 96 uint32_t size); 97extern int qla_erase_flash(qla_host_t *ha, uint32_t off, uint32_t size); 98extern int qla_wr_flash_buffer(qla_host_t *ha, uint32_t off, uint32_t size, 99 void *buf, uint32_t pattern); |
|
100 101/* 102 * from qla_ioctl.c 103 */ 104extern int qla_make_cdev(qla_host_t *ha); 105extern void qla_del_cdev(qla_host_t *ha); 106extern int qla_eioctl(struct cdev *dev, u_long cmd, caddr_t data, int fflag, 107 struct thread *td); 108 109#endif /* #ifndef_QLA_GLBL_H_ */ | 100 101/* 102 * from qla_ioctl.c 103 */ 104extern int qla_make_cdev(qla_host_t *ha); 105extern void qla_del_cdev(qla_host_t *ha); 106extern int qla_eioctl(struct cdev *dev, u_long cmd, caddr_t data, int fflag, 107 struct thread *td); 108 109#endif /* #ifndef_QLA_GLBL_H_ */ |