nic_main.c (8191a879590630c1e82d132fc8f013ed35485aed) | nic_main.c (f4aafb9ea6efd41efe05876d0e6ed70e46b425f0) |
---|---|
1/* 2 * Copyright (C) 2015 Cavium 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 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 123 unchanged lines hidden (view full) --- 132#ifdef PCI_IOV 133 DEVMETHOD(pci_iov_init, nicpf_iov_init), 134 DEVMETHOD(pci_iov_uninit, nicpf_iov_uninit), 135 DEVMETHOD(pci_iov_add_vf, nicpf_iov_add_vf), 136#endif 137 DEVMETHOD_END, 138}; 139 | 1/* 2 * Copyright (C) 2015 Cavium 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 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 123 unchanged lines hidden (view full) --- 132#ifdef PCI_IOV 133 DEVMETHOD(pci_iov_init, nicpf_iov_init), 134 DEVMETHOD(pci_iov_uninit, nicpf_iov_uninit), 135 DEVMETHOD(pci_iov_add_vf, nicpf_iov_add_vf), 136#endif 137 DEVMETHOD_END, 138}; 139 |
140static driver_t nicpf_driver = { | 140static driver_t vnicpf_driver = { |
141 "vnicpf", 142 nicpf_methods, 143 sizeof(struct nicpf), 144}; 145 | 141 "vnicpf", 142 nicpf_methods, 143 sizeof(struct nicpf), 144}; 145 |
146static devclass_t nicpf_devclass; | 146static devclass_t vnicpf_devclass; |
147 | 147 |
148DRIVER_MODULE(nicpf, pci, nicpf_driver, nicpf_devclass, 0, 0); 149MODULE_DEPEND(nicpf, pci, 1, 1, 1); 150MODULE_DEPEND(nicpf, ether, 1, 1, 1); 151MODULE_DEPEND(nicpf, thunder_bgx, 1, 1, 1); | 148DRIVER_MODULE(vnicpf, pci, vnicpf_driver, vnicpf_devclass, 0, 0); 149MODULE_VERSION(vnicpf, 1); 150MODULE_DEPEND(vnicpf, pci, 1, 1, 1); 151MODULE_DEPEND(vnicpf, ether, 1, 1, 1); 152MODULE_DEPEND(vnicpf, thunder_bgx, 1, 1, 1); |
152 153static int nicpf_alloc_res(struct nicpf *); 154static void nicpf_free_res(struct nicpf *); 155static void nic_set_lmac_vf_mapping(struct nicpf *); 156static void nic_init_hw(struct nicpf *); 157static int nic_sriov_init(device_t, struct nicpf *); 158static void nic_poll_for_link(void *); 159static int nic_register_interrupts(struct nicpf *); --- 1062 unchanged lines hidden --- | 153 154static int nicpf_alloc_res(struct nicpf *); 155static void nicpf_free_res(struct nicpf *); 156static void nic_set_lmac_vf_mapping(struct nicpf *); 157static void nic_init_hw(struct nicpf *); 158static int nic_sriov_init(device_t, struct nicpf *); 159static void nic_poll_for_link(void *); 160static int nic_register_interrupts(struct nicpf *); --- 1062 unchanged lines hidden --- |