msi_if.m (e707c8be4e8d5f4d542a1344dc6d96bcc08d0b4f) | msi_if.m (f32f0095e9da8188a3865aaa310f547ee9e0c20b) |
---|---|
1#- 2# Copyright (c) 2016 The FreeBSD Foundation 3# All rights reserved. 4# 5# This software was developed by Andrew Turner under 6# sponsorship from the FreeBSD Foundation. 7# 8# Redistribution and use in source and binary forms, with or without --- 24 unchanged lines hidden (view full) --- 33 34HEADER { 35 #include <machine/bus.h> 36 #include <dev/iommu/iommu_msi.h> 37 38 struct intr_irqsrc; 39}; 40 | 1#- 2# Copyright (c) 2016 The FreeBSD Foundation 3# All rights reserved. 4# 5# This software was developed by Andrew Turner under 6# sponsorship from the FreeBSD Foundation. 7# 8# Redistribution and use in source and binary forms, with or without --- 24 unchanged lines hidden (view full) --- 33 34HEADER { 35 #include <machine/bus.h> 36 #include <dev/iommu/iommu_msi.h> 37 38 struct intr_irqsrc; 39}; 40 |
41# 42# Default implementations of some methods. 43# 44CODE { 45 static int 46 iommu_init(device_t dev, device_t child, struct iommu_domain **domain) 47 { 48 *domain = NULL; 49 return (0); 50 } 51 static void 52 iommu_deinit(device_t dev, device_t child) 53 { 54 } 55}; 56 |
|
41METHOD int alloc_msi { 42 device_t dev; 43 device_t child; 44 int count; 45 int maxcount; 46 device_t *pic; 47 struct intr_irqsrc **srcs; 48}; --- 25 unchanged lines hidden (view full) --- 74 uint64_t *addr; 75 uint32_t *data; 76}; 77 78METHOD int iommu_init { 79 device_t dev; 80 device_t child; 81 struct iommu_domain **domain; | 57METHOD int alloc_msi { 58 device_t dev; 59 device_t child; 60 int count; 61 int maxcount; 62 device_t *pic; 63 struct intr_irqsrc **srcs; 64}; --- 25 unchanged lines hidden (view full) --- 90 uint64_t *addr; 91 uint32_t *data; 92}; 93 94METHOD int iommu_init { 95 device_t dev; 96 device_t child; 97 struct iommu_domain **domain; |
82}; | 98} DEFAULT iommu_init; 99 100METHOD void iommu_deinit { 101 device_t dev; 102 device_t child; 103} DEFAULT iommu_deinit; |