2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
8 * This file contains Original Code and/or Modifications of Original Code
9 * as defined in and that are subject to the Apple Public Source License
10 * Version 2.0 (the 'License'). You may not use this file except in
11 * compliance with the License. Please obtain a copy of the License at
12 * http://www.opensource.apple.com/apsl/ and read it before using this
15 * The Original Code and all software distributed under the License are
16 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
20 * Please see the License for the specific language governing rights and
21 * limitations under the License.
23 * @APPLE_LICENSE_HEADER_END@
30 ** Entry - %esp contains pointer to 64 bit structure.
32 ** Exit - 64 bit structure filled in.
35 ENTRY(ml_get_timebase)
47 /* PCI config cycle probing
49 * boolean_t ml_probe_read(vm_offset_t paddr, unsigned int *val)
51 * Read the memory location at physical address paddr.
52 * This is a part of a device probe, so there is a good chance we will
53 * have a machine check here. So we have to be able to handle that.
54 * We assume that machine checks are enabled both in MSR and HIDs
67 /* PCI config cycle probing - 64-bit
69 * boolean_t ml_probe_read_64(addr64_t paddr, unsigned int *val)
71 * Read the memory location at physical address paddr.
72 * This is a part of a device probe, so there is a good chance we will
73 * have a machine check here. So we have to be able to handle that.
74 * We assume that machine checks are enabled both in MSR and HIDs
76 ENTRY(ml_probe_read_64)
78 /* Only use lower 32 bits of address for now */
88 /* Read physical address byte
90 * unsigned int ml_phys_read_byte(vm_offset_t paddr)
91 * unsigned int ml_phys_read_byte_64(addr64_t paddr)
93 * Read the byte at physical address paddr. Memory should not be cache inhibited.
95 ENTRY(ml_phys_read_byte_64)
97 /* Only use lower 32 bits of address for now */
104 ENTRY(ml_phys_read_byte)
113 /* Read physical address half word
115 * unsigned int ml_phys_read_half(vm_offset_t paddr)
116 * unsigned int ml_phys_read_half_64(addr64_t paddr)
118 * Read the half word at physical address paddr. Memory should not be cache inhibited.
120 ENTRY(ml_phys_read_half_64)
122 /* Only use lower 32 bits of address for now */
129 ENTRY(ml_phys_read_half)
138 /* Read physical address word
140 * unsigned int ml_phys_read(vm_offset_t paddr)
141 * unsigned int ml_phys_read_64(addr64_t paddr)
142 * unsigned int ml_phys_read_word(vm_offset_t paddr)
143 * unsigned int ml_phys_read_word_64(addr64_t paddr)
145 * Read the word at physical address paddr. Memory should not be cache inhibited.
147 ENTRY(ml_phys_read_64)
148 ENTRY(ml_phys_read_word_64)
150 /* Only use lower 32 bits of address for now */
157 ENTRY(ml_phys_read_word)
165 /* Read physical address double
167 * unsigned long long ml_phys_read_double(vm_offset_t paddr)
168 * unsigned long long ml_phys_read_double_64(addr64_t paddr)
170 * Read the double word at physical address paddr. Memory should not be cache inhibited.
172 ENTRY(ml_phys_read_double_64)
174 /* Only use lower 32 bits of address for now */
181 ENTRY(ml_phys_read_double)
190 /* Write physical address byte
192 * void ml_phys_write_byte(vm_offset_t paddr, unsigned int data)
193 * void ml_phys_write_byte_64(addr64_t paddr, unsigned int data)
195 * Write the byte at physical address paddr. Memory should not be cache inhibited.
197 ENTRY(ml_phys_write_byte_64)
199 /* Only use lower 32 bits of address for now */
206 ENTRY(ml_phys_write_byte)
215 /* Write physical address half word
217 * void ml_phys_write_half(vm_offset_t paddr, unsigned int data)
218 * void ml_phys_write_half_64(addr64_t paddr, unsigned int data)
220 * Write the byte at physical address paddr. Memory should not be cache inhibited.
222 ENTRY(ml_phys_write_half_64)
224 /* Only use lower 32 bits of address for now */
231 ENTRY(ml_phys_write_half)
240 /* Write physical address word
242 * void ml_phys_write(vm_offset_t paddr, unsigned int data)
243 * void ml_phys_write_64(addr64_t paddr, unsigned int data)
244 * void ml_phys_write_word(vm_offset_t paddr, unsigned int data)
245 * void ml_phys_write_word_64(addr64_t paddr, unsigned int data)
247 * Write the word at physical address paddr. Memory should not be cache inhibited.
249 ENTRY(ml_phys_write_64)
250 ENTRY(ml_phys_write_word_64)
252 /* Only use lower 32 bits of address for now */
260 ENTRY(ml_phys_write_word)
269 /* Write physical address double word
271 * void ml_phys_write_double(vm_offset_t paddr, unsigned long long data)
272 * void ml_phys_write_double_64(addr64_t paddr, unsigned long long data)
274 * Write the double word at physical address paddr. Memory should not be cache inhibited.
276 ENTRY(ml_phys_write_double_64)
278 /* Only use lower 32 bits of address for now */
287 ENTRY(ml_phys_write_double)