vsc7326.c (ef5d6356e2ace045fd388c1b6effb2253642b5c4) vsc7326.c (766607570becbd26cab6d66a544dd8d0d964df5a)
1// SPDX-License-Identifier: GPL-2.0
2/* $Date: 2006/04/28 19:20:06 $ $RCSfile: vsc7326.c,v $ $Revision: 1.19 $ */
3
4/* Driver for Vitesse VSC7326 (Schaumburg) MAC */
5
6#include "gmac.h"
7#include "elmer0.h"
8#include "vsc7326_reg.h"

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

374}
375
376static int mac_intr_clear(struct cmac *mac)
377{
378 return 0;
379}
380
381/* Expect MAC address to be in network byte order. */
1// SPDX-License-Identifier: GPL-2.0
2/* $Date: 2006/04/28 19:20:06 $ $RCSfile: vsc7326.c,v $ $Revision: 1.19 $ */
3
4/* Driver for Vitesse VSC7326 (Schaumburg) MAC */
5
6#include "gmac.h"
7#include "elmer0.h"
8#include "vsc7326_reg.h"

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

374}
375
376static int mac_intr_clear(struct cmac *mac)
377{
378 return 0;
379}
380
381/* Expect MAC address to be in network byte order. */
382static int mac_set_address(struct cmac* mac, u8 addr[6])
382static int mac_set_address(struct cmac* mac, const u8 addr[6])
383{
384 u32 val;
385 int port = mac->instance->index;
386
387 vsc_write(mac->adapter, REG_MAC_LOW_ADDR(port),
388 (addr[3] << 16) | (addr[4] << 8) | addr[5]);
389 vsc_write(mac->adapter, REG_MAC_HIGH_ADDR(port),
390 (addr[0] << 16) | (addr[1] << 8) | addr[2]);

--- 336 unchanged lines hidden ---
383{
384 u32 val;
385 int port = mac->instance->index;
386
387 vsc_write(mac->adapter, REG_MAC_LOW_ADDR(port),
388 (addr[3] << 16) | (addr[4] << 8) | addr[5]);
389 vsc_write(mac->adapter, REG_MAC_HIGH_ADDR(port),
390 (addr[0] << 16) | (addr[1] << 8) | addr[2]);

--- 336 unchanged lines hidden ---