Changeset View
Changeset View
Standalone View
Standalone View
sys/x86/include/bus.h
| Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Lines | |||||
| * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||||
| * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | ||||
| * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||
| */ | */ | ||||
| #ifndef _MACHINE_BUS_H_ | #ifndef _MACHINE_BUS_H_ | ||||
| #define _MACHINE_BUS_H_ | #define _MACHINE_BUS_H_ | ||||
| #include <sys/types.h> | |||||
| #include <machine/_bus.h> | #include <machine/_bus.h> | ||||
| #include <machine/cpufunc.h> | |||||
| #include <machine/bus_dma.h> | #include <machine/bus_dma.h> | ||||
| #include <machine/cpufunc.h> | |||||
| /* | /* | ||||
| * Values for the x86 bus space tag, not to be used directly by MI code. | * Values for the x86 bus space tag, not to be used directly by MI code. | ||||
| */ | */ | ||||
| #define X86_BUS_SPACE_IO 0 /* space is i/o space */ | #define X86_BUS_SPACE_IO 0 /* space is i/o space */ | ||||
| #define X86_BUS_SPACE_MEM 1 /* space is mem space */ | #define X86_BUS_SPACE_MEM 1 /* space is mem space */ | ||||
| #define BUS_SPACE_MAXSIZE_24BIT 0xFFFFFF | #define BUS_SPACE_MAXSIZE_24BIT 0xFFFFFF | ||||
| Show All 16 Lines | |||||
| #define BUS_SPACE_UNRESTRICTED (~0) | #define BUS_SPACE_UNRESTRICTED (~0) | ||||
| #define BUS_SPACE_BARRIER_READ 0x01 /* force read barrier */ | #define BUS_SPACE_BARRIER_READ 0x01 /* force read barrier */ | ||||
| #define BUS_SPACE_BARRIER_WRITE 0x02 /* force write barrier */ | #define BUS_SPACE_BARRIER_WRITE 0x02 /* force write barrier */ | ||||
| #if defined(SAN_NEEDS_INTERCEPTORS) && !defined(SAN_RUNTIME) | #if defined(SAN_NEEDS_INTERCEPTORS) && !defined(SAN_RUNTIME) | ||||
| #include <sys/bus_san.h> | #include <sys/bus_san.h> | ||||
| #else | #else | ||||
| int rdmsr_safe_on_cpu(uint32_t cpuid, u_int msr, register_t *val); | |||||
| int wrmsr_safe_on_cpu(uint32_t cpuid, u_int msr, register_t val); | |||||
| /* | /* | ||||
| * Map a region of device bus space into CPU virtual address space. | * Map a region of device bus space into CPU virtual address space. | ||||
| */ | */ | ||||
| int bus_space_map(bus_space_tag_t tag, bus_addr_t addr, bus_size_t size, | int bus_space_map(bus_space_tag_t tag, bus_addr_t addr, bus_size_t size, | ||||
| int flags, bus_space_handle_t *bshp); | int flags, bus_space_handle_t *bshp); | ||||
| ▲ Show 20 Lines • Show All 940 Lines • Show Last 20 Lines | |||||