thunder_mdio.c (b9545c57941598857677c31b90c707123d8f4976) thunder_mdio.c (b73763fc10d8000ec5c5682abccf6c8489eee8e3)
1/*-
2 * Copyright (c) 2015 The FreeBSD Foundation
3 *
4 * This software was developed by Semihalf under
5 * the sponsorship of the FreeBSD Foundation.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

79#define SMI_RD_DAT_VAL (1UL << 16)
80#define SMI_RD_DAT_DAT_MASK (0xFFFFUL << 0)
81
82#define SMI_CLK 0x18
83#define SMI_CLK_PREAMBLE (1UL << 12)
84#define SMI_CLK_MODE (1UL << 24)
85
86#define SMI_EN 0x20
1/*-
2 * Copyright (c) 2015 The FreeBSD Foundation
3 *
4 * This software was developed by Semihalf under
5 * the sponsorship of the FreeBSD Foundation.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

79#define SMI_RD_DAT_VAL (1UL << 16)
80#define SMI_RD_DAT_DAT_MASK (0xFFFFUL << 0)
81
82#define SMI_CLK 0x18
83#define SMI_CLK_PREAMBLE (1UL << 12)
84#define SMI_CLK_MODE (1UL << 24)
85
86#define SMI_EN 0x20
87#define SMI_EN_EN (1UL << 0) /* Enabele interface */
87#define SMI_EN_EN (1UL << 0) /* Enable interface */
88
89#define SMI_DRV_CTL 0x28
90
91static int thunder_mdio_detach(device_t);
92
93static int thunder_mdio_read(device_t, int, int);
94static int thunder_mdio_write(device_t, int, int, int);
95

--- 417 unchanged lines hidden ---
88
89#define SMI_DRV_CTL 0x28
90
91static int thunder_mdio_detach(device_t);
92
93static int thunder_mdio_read(device_t, int, int);
94static int thunder_mdio_write(device_t, int, int, int);
95

--- 417 unchanged lines hidden ---