pci_if.m (416ba5c74546f32a993436a99516d35008e9f384) | pci_if.m (ce204e1bd813047e5f70fadcc9e703b89dac0f32) |
---|---|
1#- 2# Copyright (c) 1998 Doug Rabson 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 --- 22 unchanged lines hidden (view full) --- 31INTERFACE pci; 32 33CODE { 34 static int 35 null_msi_count(device_t dev, device_t child) 36 { 37 return (0); 38 } | 1#- 2# Copyright (c) 1998 Doug Rabson 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 --- 22 unchanged lines hidden (view full) --- 31INTERFACE pci; 32 33CODE { 34 static int 35 null_msi_count(device_t dev, device_t child) 36 { 37 return (0); 38 } |
39 | 39 40 static int 41 null_msix_bar(device_t dev, device_t child) 42 { 43 return (-1); 44 } 45 |
40 static device_t 41 null_create_iov_child(device_t bus, device_t pf, uint16_t rid, 42 uint16_t vid, uint16_t did) 43 { 44 device_printf(bus, "PCI_IOV not implemented on this bus.\n"); 45 return (NULL); 46 } 47}; --- 139 unchanged lines hidden (view full) --- 187 device_t child; 188} DEFAULT null_msi_count; 189 190METHOD int msix_count { 191 device_t dev; 192 device_t child; 193} DEFAULT null_msi_count; 194 | 46 static device_t 47 null_create_iov_child(device_t bus, device_t pf, uint16_t rid, 48 uint16_t vid, uint16_t did) 49 { 50 device_printf(bus, "PCI_IOV not implemented on this bus.\n"); 51 return (NULL); 52 } 53}; --- 139 unchanged lines hidden (view full) --- 193 device_t child; 194} DEFAULT null_msi_count; 195 196METHOD int msix_count { 197 device_t dev; 198 device_t child; 199} DEFAULT null_msi_count; 200 |
201METHOD int msix_pba_bar { 202 device_t dev; 203 device_t child; 204} DEFAULT null_msix_bar; 205 206METHOD int msix_table_bar { 207 device_t dev; 208 device_t child; 209} DEFAULT null_msix_bar; 210 |
|
195METHOD uint16_t get_rid { 196 device_t dev; 197 device_t child; 198}; 199 200METHOD void child_added { 201 device_t dev; 202 device_t child; --- 21 unchanged lines hidden --- | 211METHOD uint16_t get_rid { 212 device_t dev; 213 device_t child; 214}; 215 216METHOD void child_added { 217 device_t dev; 218 device_t child; --- 21 unchanged lines hidden --- |