bxe.h (297155) | bxe.h (297884) |
---|---|
1/*- 2 * Copyright (c) 2007-2014 QLogic Corporation. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 14 unchanged lines hidden (view full) --- 23 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 24 * THE POSSIBILITY OF SUCH DAMAGE. 25 */ 26 27#ifndef __BXE_H__ 28#define __BXE_H__ 29 30#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2007-2014 QLogic Corporation. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 14 unchanged lines hidden (view full) --- 23 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 24 * THE POSSIBILITY OF SUCH DAMAGE. 25 */ 26 27#ifndef __BXE_H__ 28#define __BXE_H__ 29 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: head/sys/dev/bxe/bxe.h 297155 2016-03-21 18:48:20Z davidcs $"); | 31__FBSDID("$FreeBSD: head/sys/dev/bxe/bxe.h 297884 2016-04-12 22:31:48Z davidcs $"); |
32 33#include <sys/param.h> 34#include <sys/kernel.h> 35#include <sys/systm.h> 36#include <sys/lock.h> 37#include <sys/mutex.h> 38#include <sys/sx.h> 39#include <sys/module.h> --- 1743 unchanged lines hidden (view full) --- 1783 /* priority to cos mapping */ 1784 uint8_t prio_to_cos[BXE_MAX_PRIORITY]; 1785 1786 int panic; 1787 1788 struct cdev *ioctl_dev; 1789 void *grc_dump; 1790 int grcdump_done; | 32 33#include <sys/param.h> 34#include <sys/kernel.h> 35#include <sys/systm.h> 36#include <sys/lock.h> 37#include <sys/mutex.h> 38#include <sys/sx.h> 39#include <sys/module.h> --- 1743 unchanged lines hidden (view full) --- 1783 /* priority to cos mapping */ 1784 uint8_t prio_to_cos[BXE_MAX_PRIORITY]; 1785 1786 int panic; 1787 1788 struct cdev *ioctl_dev; 1789 void *grc_dump; 1790 int grcdump_done; |
1791 void *eeprom; |
|
1791}; /* struct bxe_softc */ 1792 1793/* IOCTL sub-commands for edebug and firmware upgrade */ 1794#define BXE_IOC_RD_NVRAM 1 1795#define BXE_IOC_WR_NVRAM 2 1796#define BXE_IOC_STATS_SHOW_NUM 3 1797#define BXE_IOC_STATS_SHOW_STR 4 1798#define BXE_IOC_STATS_SHOW_CNT 5 --- 305 unchanged lines hidden (view full) --- 2104#define SPEED_100 100 2105#define SPEED_1000 1000 2106#define SPEED_2500 2500 2107#define SPEED_10000 10000 2108 2109#define PCI_PM_D0 1 2110#define PCI_PM_D3hot 2 2111 | 1792}; /* struct bxe_softc */ 1793 1794/* IOCTL sub-commands for edebug and firmware upgrade */ 1795#define BXE_IOC_RD_NVRAM 1 1796#define BXE_IOC_WR_NVRAM 2 1797#define BXE_IOC_STATS_SHOW_NUM 3 1798#define BXE_IOC_STATS_SHOW_STR 4 1799#define BXE_IOC_STATS_SHOW_CNT 5 --- 305 unchanged lines hidden (view full) --- 2105#define SPEED_100 100 2106#define SPEED_1000 1000 2107#define SPEED_2500 2500 2108#define SPEED_10000 10000 2109 2110#define PCI_PM_D0 1 2111#define PCI_PM_D3hot 2 2112 |
2113#ifndef DUPLEX_UNKNOWN 2114#define DUPLEX_UNKNOWN (0xff) 2115#endif 2116 2117#ifndef SPEED_UNKNOWN 2118#define SPEED_UNKNOWN (-1) 2119#endif 2120 2121/* Enable or disable autonegotiation. */ 2122#define AUTONEG_DISABLE 0x00 2123#define AUTONEG_ENABLE 0x01 2124 2125/* Which connector port. */ 2126#define PORT_TP 0x00 2127#define PORT_AUI 0x01 2128#define PORT_MII 0x02 2129#define PORT_FIBRE 0x03 2130#define PORT_BNC 0x04 2131#define PORT_DA 0x05 2132#define PORT_NONE 0xef 2133#define PORT_OTHER 0xff 2134 |
|
2112int bxe_test_bit(int nr, volatile unsigned long * addr); 2113void bxe_set_bit(unsigned int nr, volatile unsigned long * addr); 2114void bxe_clear_bit(int nr, volatile unsigned long * addr); 2115int bxe_test_and_set_bit(int nr, volatile unsigned long * addr); 2116int bxe_test_and_clear_bit(int nr, volatile unsigned long * addr); 2117int bxe_cmpxchg(volatile int *addr, int old, int new); 2118 2119void bxe_reg_wr_ind(struct bxe_softc *sc, uint32_t addr, --- 336 unchanged lines hidden --- | 2135int bxe_test_bit(int nr, volatile unsigned long * addr); 2136void bxe_set_bit(unsigned int nr, volatile unsigned long * addr); 2137void bxe_clear_bit(int nr, volatile unsigned long * addr); 2138int bxe_test_and_set_bit(int nr, volatile unsigned long * addr); 2139int bxe_test_and_clear_bit(int nr, volatile unsigned long * addr); 2140int bxe_cmpxchg(volatile int *addr, int old, int new); 2141 2142void bxe_reg_wr_ind(struct bxe_softc *sc, uint32_t addr, --- 336 unchanged lines hidden --- |