Deleted Added
full compact
efx_mcdi.c (291677) efx_mcdi.c (291928)
1/*-
2 * Copyright (c) 2008-2015 Solarflare Communications Inc.
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 are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright notice,

--- 15 unchanged lines hidden (view full) ---

24 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 *
26 * The views and conclusions contained in the software and documentation are
27 * those of the authors and should not be interpreted as representing official
28 * policies, either expressed or implied, of the FreeBSD Project.
29 */
30
31#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2008-2015 Solarflare Communications Inc.
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 are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright notice,

--- 15 unchanged lines hidden (view full) ---

24 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 *
26 * The views and conclusions contained in the software and documentation are
27 * those of the authors and should not be interpreted as representing official
28 * policies, either expressed or implied, of the FreeBSD Project.
29 */
30
31#include <sys/cdefs.h>
32__FBSDID("$FreeBSD: head/sys/dev/sfxge/common/efx_mcdi.c 291677 2015-12-03 07:13:13Z arybchik $");
32__FBSDID("$FreeBSD: head/sys/dev/sfxge/common/efx_mcdi.c 291928 2015-12-07 07:22:21Z arybchik $");
33
34#include "efsys.h"
35#include "efx.h"
36#include "efx_types.h"
37#include "efx_regs.h"
38#include "efx_regs_mcdi.h"
39#include "efx_impl.h"
40

--- 6 unchanged lines hidden (view full) ---

47 siena_mcdi_init, /* emco_init */
48 siena_mcdi_request_copyin, /* emco_request_copyin */
49 siena_mcdi_request_poll, /* emco_request_poll */
50 siena_mcdi_request_copyout, /* emco_request_copyout */
51 siena_mcdi_poll_reboot, /* emco_poll_reboot */
52 siena_mcdi_fini, /* emco_fini */
53 siena_mcdi_fw_update_supported, /* emco_fw_update_supported */
54 siena_mcdi_macaddr_change_supported,
33
34#include "efsys.h"
35#include "efx.h"
36#include "efx_types.h"
37#include "efx_regs.h"
38#include "efx_regs_mcdi.h"
39#include "efx_impl.h"
40

--- 6 unchanged lines hidden (view full) ---

47 siena_mcdi_init, /* emco_init */
48 siena_mcdi_request_copyin, /* emco_request_copyin */
49 siena_mcdi_request_poll, /* emco_request_poll */
50 siena_mcdi_request_copyout, /* emco_request_copyout */
51 siena_mcdi_poll_reboot, /* emco_poll_reboot */
52 siena_mcdi_fini, /* emco_fini */
53 siena_mcdi_fw_update_supported, /* emco_fw_update_supported */
54 siena_mcdi_macaddr_change_supported,
55 /* emco_macaddr_change_supported */
55 /* emco_macaddr_change_supported */
56 siena_mcdi_link_control_supported,
56 siena_mcdi_link_control_supported,
57 /* emco_link_control_supported */
57 /* emco_link_control_supported */
58};
59
60#endif /* EFSYS_OPT_SIENA */
61
62#if EFSYS_OPT_HUNTINGTON
63
64static efx_mcdi_ops_t __efx_mcdi_hunt_ops = {
65 hunt_mcdi_init, /* emco_init */
66 hunt_mcdi_request_copyin, /* emco_request_copyin */
67 hunt_mcdi_request_poll, /* emco_request_poll */
68 hunt_mcdi_request_copyout, /* emco_request_copyout */
69 hunt_mcdi_poll_reboot, /* emco_poll_reboot */
70 hunt_mcdi_fini, /* emco_fini */
71 hunt_mcdi_fw_update_supported, /* emco_fw_update_supported */
72 hunt_mcdi_macaddr_change_supported,
58};
59
60#endif /* EFSYS_OPT_SIENA */
61
62#if EFSYS_OPT_HUNTINGTON
63
64static efx_mcdi_ops_t __efx_mcdi_hunt_ops = {
65 hunt_mcdi_init, /* emco_init */
66 hunt_mcdi_request_copyin, /* emco_request_copyin */
67 hunt_mcdi_request_poll, /* emco_request_poll */
68 hunt_mcdi_request_copyout, /* emco_request_copyout */
69 hunt_mcdi_poll_reboot, /* emco_poll_reboot */
70 hunt_mcdi_fini, /* emco_fini */
71 hunt_mcdi_fw_update_supported, /* emco_fw_update_supported */
72 hunt_mcdi_macaddr_change_supported,
73 /* emco_macaddr_change_supported */
73 /* emco_macaddr_change_supported */
74 hunt_mcdi_link_control_supported,
74 hunt_mcdi_link_control_supported,
75 /* emco_link_control_supported */
75 /* emco_link_control_supported */
76};
77
78#endif /* EFSYS_OPT_HUNTINGTON */
79
80
81
82 __checkReturn efx_rc_t
83efx_mcdi_init(

--- 1604 unchanged lines hidden ---
76};
77
78#endif /* EFSYS_OPT_HUNTINGTON */
79
80
81
82 __checkReturn efx_rc_t
83efx_mcdi_init(

--- 1604 unchanged lines hidden ---