if_fxp.c (145359) | if_fxp.c (145368) |
---|---|
1/*- 2 * Copyright (c) 1995, David Greenman 3 * Copyright (c) 2001 Jonathan Lemon <jlemon@freebsd.org> 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 14 unchanged lines hidden (view full) --- 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * 28 */ 29 30#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1995, David Greenman 3 * Copyright (c) 2001 Jonathan Lemon <jlemon@freebsd.org> 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 14 unchanged lines hidden (view full) --- 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * 28 */ 29 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: head/sys/dev/fxp/if_fxp.c 145359 2005-04-21 13:27:38Z mux $"); | 31__FBSDID("$FreeBSD: head/sys/dev/fxp/if_fxp.c 145368 2005-04-21 19:34:57Z mux $"); |
32 33/* 34 * Intel EtherExpress Pro/100B PCI Fast Ethernet driver 35 */ 36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/endian.h> --- 2577 unchanged lines hidden (view full) --- 2617} 2618 2619static uint32_t fxp_ucode_d101a[] = D101_A_RCVBUNDLE_UCODE; 2620static uint32_t fxp_ucode_d101b0[] = D101_B0_RCVBUNDLE_UCODE; 2621static uint32_t fxp_ucode_d101ma[] = D101M_B_RCVBUNDLE_UCODE; 2622static uint32_t fxp_ucode_d101s[] = D101S_RCVBUNDLE_UCODE; 2623static uint32_t fxp_ucode_d102[] = D102_B_RCVBUNDLE_UCODE; 2624static uint32_t fxp_ucode_d102c[] = D102_C_RCVBUNDLE_UCODE; | 32 33/* 34 * Intel EtherExpress Pro/100B PCI Fast Ethernet driver 35 */ 36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/endian.h> --- 2577 unchanged lines hidden (view full) --- 2617} 2618 2619static uint32_t fxp_ucode_d101a[] = D101_A_RCVBUNDLE_UCODE; 2620static uint32_t fxp_ucode_d101b0[] = D101_B0_RCVBUNDLE_UCODE; 2621static uint32_t fxp_ucode_d101ma[] = D101M_B_RCVBUNDLE_UCODE; 2622static uint32_t fxp_ucode_d101s[] = D101S_RCVBUNDLE_UCODE; 2623static uint32_t fxp_ucode_d102[] = D102_B_RCVBUNDLE_UCODE; 2624static uint32_t fxp_ucode_d102c[] = D102_C_RCVBUNDLE_UCODE; |
2625static uint32_t fxp_ucode_d102e[] = D102_E_RCVBUNDLE_UCODE; |
|
2625 2626#define UCODE(x) x, sizeof(x)/sizeof(uint32_t) 2627 2628struct ucode { 2629 uint32_t revision; 2630 uint32_t *ucode; 2631 int length; 2632 u_short int_delay_offset; --- 4 unchanged lines hidden (view full) --- 2637 { FXP_REV_82559_A0, UCODE(fxp_ucode_d101ma), 2638 D101M_CPUSAVER_DWORD, D101M_CPUSAVER_BUNDLE_MAX_DWORD }, 2639 { FXP_REV_82559S_A, UCODE(fxp_ucode_d101s), 2640 D101S_CPUSAVER_DWORD, D101S_CPUSAVER_BUNDLE_MAX_DWORD }, 2641 { FXP_REV_82550, UCODE(fxp_ucode_d102), 2642 D102_B_CPUSAVER_DWORD, D102_B_CPUSAVER_BUNDLE_MAX_DWORD }, 2643 { FXP_REV_82550_C, UCODE(fxp_ucode_d102c), 2644 D102_C_CPUSAVER_DWORD, D102_C_CPUSAVER_BUNDLE_MAX_DWORD }, | 2626 2627#define UCODE(x) x, sizeof(x)/sizeof(uint32_t) 2628 2629struct ucode { 2630 uint32_t revision; 2631 uint32_t *ucode; 2632 int length; 2633 u_short int_delay_offset; --- 4 unchanged lines hidden (view full) --- 2638 { FXP_REV_82559_A0, UCODE(fxp_ucode_d101ma), 2639 D101M_CPUSAVER_DWORD, D101M_CPUSAVER_BUNDLE_MAX_DWORD }, 2640 { FXP_REV_82559S_A, UCODE(fxp_ucode_d101s), 2641 D101S_CPUSAVER_DWORD, D101S_CPUSAVER_BUNDLE_MAX_DWORD }, 2642 { FXP_REV_82550, UCODE(fxp_ucode_d102), 2643 D102_B_CPUSAVER_DWORD, D102_B_CPUSAVER_BUNDLE_MAX_DWORD }, 2644 { FXP_REV_82550_C, UCODE(fxp_ucode_d102c), 2645 D102_C_CPUSAVER_DWORD, D102_C_CPUSAVER_BUNDLE_MAX_DWORD }, |
2646 { FXP_REV_82551, UCODE(fxp_ucode_d102e), 2647 D102_E_CPUSAVER_DWORD, D102_E_CPUSAVER_BUNDLE_MAX_DWORD }, |
|
2645 { 0, NULL, 0, 0, 0 } 2646}; 2647 2648static void 2649fxp_load_ucode(struct fxp_softc *sc) 2650{ 2651 struct ucode *uc; 2652 struct fxp_cb_ucode *cbp; --- 66 unchanged lines hidden --- | 2648 { 0, NULL, 0, 0, 0 } 2649}; 2650 2651static void 2652fxp_load_ucode(struct fxp_softc *sc) 2653{ 2654 struct ucode *uc; 2655 struct fxp_cb_ucode *cbp; --- 66 unchanged lines hidden --- |