The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/dev/qlxgb/qla_glbl.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*
    2  * Copyright (c) 2010-2011 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.
   11  *  2. Redistributions in binary form must reproduce the above copyright
   12  *     notice, this list of conditions and the following disclaimer in the
   13  *     documentation and/or other materials provided with the distribution.
   14  *
   15  *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
   16  *  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   17  *  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   18  *  ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
   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: releng/9.0/sys/dev/qlxgb/qla_glbl.h 227064 2011-11-03 21:20:22Z bz $
   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_
   36 
   37 /*
   38  * from qla_isr.c
   39  */
   40 extern void qla_isr(void *arg);
   41 extern void qla_rcv(void *context, int pending);
   42 
   43 /*
   44  * from qla_os.c
   45  */
   46 extern uint32_t std_replenish;
   47 extern uint32_t jumbo_replenish;
   48 extern uint32_t rcv_pkt_thres;
   49 extern uint32_t rcv_pkt_thres_d;
   50 extern uint32_t snd_pkt_thres;
   51 extern uint32_t free_pkt_thres;
   52 
   53 extern int qla_alloc_dmabuf(qla_host_t *ha, qla_dma_t *dma_buf);
   54 extern void qla_free_dmabuf(qla_host_t *ha, qla_dma_t *dma_buf);
   55 extern void qla_start(struct ifnet *ifp);
   56 extern int qla_get_mbuf(qla_host_t *ha, qla_rx_buf_t *rxb, struct mbuf *nmp,
   57                 uint32_t jumbo);
   58 
   59 
   60 /*
   61  * from qla_flash.c
   62  */
   63 extern int qla_flash_rd32_words(qla_host_t *ha, uint32_t addr,
   64                 uint32_t *val, uint32_t num);
   65 extern int qla_flash_rd32(qla_host_t *ha, uint32_t addr, uint32_t *val);
   66 
   67 /*
   68  * from qla_hw.c
   69  */
   70 extern int qla_get_msix_count(qla_host_t *ha);
   71 extern int qla_alloc_dma(qla_host_t *ha);
   72 extern void qla_free_dma(qla_host_t *ha);
   73 extern void qla_hw_add_sysctls(qla_host_t *ha);
   74 extern int qla_hw_send(qla_host_t *ha, bus_dma_segment_t *segs, int nsegs,
   75                 uint32_t *tx_idx, struct mbuf *mp);
   76 extern int qla_init_hw_if(qla_host_t *ha);
   77 extern void qla_get_hw_caps(qla_host_t *ha);
   78 extern void qla_hw_set_multi(qla_host_t *ha, uint8_t *mta, uint32_t mcnt,
   79         uint32_t add_multi);
   80 extern void qla_del_hw_if(qla_host_t *ha);
   81 extern void qla_set_promisc(qla_host_t *ha);
   82 extern void qla_set_allmulti(qla_host_t *ha);
   83 extern void qla_reset_promisc_allmulti(qla_host_t *ha);
   84 extern void qla_config_ipv4_addr(qla_host_t *ha, uint32_t ipv4_addr);
   85 extern int qla_hw_tx_compl(qla_host_t *ha);
   86 extern void qla_update_link_state(qla_host_t *ha);
   87 extern void qla_hw_tx_done(qla_host_t *ha);
   88 extern int qla_config_lro(qla_host_t *ha);
   89 extern void qla_free_lro(qla_host_t *ha);
   90 extern int qla_set_max_mtu(qla_host_t *ha, uint32_t mtu, uint16_t cntxt_id);
   91 extern void qla_hw_stop_rcv(qla_host_t *ha);
   92 
   93 /*
   94  * from qla_misc.c
   95  */
   96 extern int qla_init_hw(qla_host_t *ha);
   97 extern int qla_rdwr_indreg32(qla_host_t *ha, uint32_t addr, uint32_t *val,
   98                 uint32_t rd);
   99 extern int qla_rd_flash32(qla_host_t *ha, uint32_t addr, uint32_t *data);
  100 
  101 /*
  102  * from qla_ioctl.c
  103  */
  104 extern int qla_make_cdev(qla_host_t *ha);
  105 extern void qla_del_cdev(qla_host_t *ha);
  106 extern 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_ */

Cache object: 876de594810fd947ab51c9bcba50d949


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.