| 153 | } |
| 154 | |
| 155 | static int |
| 156 | ppt_attach(device_t dev) |
| 157 | { |
| 158 | struct pptdev *ppt; |
| 159 | |
| 160 | ppt = device_get_softc(dev); |
| 161 | |
| 162 | iommu_remove_device(iommu_host_domain(), pci_get_rid(dev)); |
| 163 | num_pptdevs++; |
| 164 | TAILQ_INSERT_TAIL(&pptdev_list, ppt, next); |
| 165 | ppt->dev = dev; |
| 166 | |
| 167 | if (bootverbose) |
| 168 | device_printf(dev, "attached\n"); |
| 169 | |
| 170 | return (0); |
| 171 | } |
| 172 | |
| 173 | static int |
| 174 | ppt_detach(device_t dev) |
nothing calls this directly
no test coverage detected