Subversion Repositories HelenOS

Rev

Rev 2410 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2410 Rev 2411
Line 85... Line 85...
85
 * This function adds mapping of physical address that is read/write only
85
 * This function adds mapping of physical address that is read/write only
86
 *  from kernel and not bufferable.
86
 *  from kernel and not bufferable.
87
 *
87
 *
88
 * @param physaddr Physical addres where device is connected
88
 * @param physaddr Physical addres where device is connected
89
 * @param size Length of area where device is present
89
 * @param size Length of area where device is present
-
 
90
 *
90
 * @return Virtual address where device will be accessable
91
 * @return Virtual address where device will be accessable
91
 */
92
 */
92
uintptr_t hw_map(uintptr_t physaddr, size_t size)
93
uintptr_t hw_map(uintptr_t physaddr, size_t size)
93
{
94
{
94
    if (last_frame + ALIGN_UP(size, PAGE_SIZE) > KA2PA(KERNEL_ADDRESS_SPACE_END_ARCH)) {
95
    if (last_frame + ALIGN_UP(size, PAGE_SIZE) > KA2PA(KERNEL_ADDRESS_SPACE_END_ARCH)) {