thunder_mdio.c (b626f5a73a48f44a31a200291b141e1da408a2ff) | thunder_mdio.c (f4aafb9ea6efd41efe05876d0e6ed70e46b425f0) |
---|---|
1/*- 2 * Copyright (c) 2015 The FreeBSD Foundation 3 * All rights reserved. 4 * 5 * This software was developed by Semihalf under 6 * the sponsorship of the FreeBSD Foundation. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 108 unchanged lines hidden (view full) --- 117 /* End */ 118 DEVMETHOD_END 119}; 120 121DEFINE_CLASS_0(thunder_mdio, thunder_mdio_driver, thunder_mdio_methods, 122 sizeof(struct thunder_mdio_softc)); 123 124DRIVER_MODULE(miibus, thunder_mdio, miibus_driver, miibus_devclass, 0, 0); | 1/*- 2 * Copyright (c) 2015 The FreeBSD Foundation 3 * All rights reserved. 4 * 5 * This software was developed by Semihalf under 6 * the sponsorship of the FreeBSD Foundation. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 108 unchanged lines hidden (view full) --- 117 /* End */ 118 DEVMETHOD_END 119}; 120 121DEFINE_CLASS_0(thunder_mdio, thunder_mdio_driver, thunder_mdio_methods, 122 sizeof(struct thunder_mdio_softc)); 123 124DRIVER_MODULE(miibus, thunder_mdio, miibus_driver, miibus_devclass, 0, 0); |
125MODULE_VERSION(thunder_mdio, 1); |
|
125MODULE_DEPEND(thunder_mdio, ether, 1, 1, 1); 126MODULE_DEPEND(thunder_mdio, miibus, 1, 1, 1); | 126MODULE_DEPEND(thunder_mdio, ether, 1, 1, 1); 127MODULE_DEPEND(thunder_mdio, miibus, 1, 1, 1); |
128MODULE_DEPEND(thunder_mdio, mrmlbus, 1, 1, 1); |
|
127 128MALLOC_DEFINE(M_THUNDER_MDIO, "ThunderX MDIO", 129 "Cavium ThunderX MDIO dynamic memory"); 130 131#define MDIO_LOCK_INIT(sc, name) \ 132 mtx_init(&(sc)->mtx, name, NULL, MTX_DEF) 133 134#define MDIO_LOCK_DESTROY(sc) \ --- 378 unchanged lines hidden --- | 129 130MALLOC_DEFINE(M_THUNDER_MDIO, "ThunderX MDIO", 131 "Cavium ThunderX MDIO dynamic memory"); 132 133#define MDIO_LOCK_INIT(sc, name) \ 134 mtx_init(&(sc)->mtx, name, NULL, MTX_DEF) 135 136#define MDIO_LOCK_DESTROY(sc) \ --- 378 unchanged lines hidden --- |