Changeset da74747 in mainline for kernel/arch/sparc64/src/mm/page.c


Ignore:
Timestamp:
2006-08-09T12:24:58Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
287920f
Parents:
e2882a7
Message:

Start reorganization of different keyboard drivers.
What seemed like a screwed i8042 chip appears to be
Zilog 8530.

The repository won't compile now. To be fixed in next commits.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/src/mm/page.c

    re2882a7 rda74747  
    4747}
    4848
     49/** Map memory-mapped device into virtual memory.
     50 *
     51 * So far, only DTLB is used to map devices into memory.
     52 * Chances are that there will be only a limited amount of
     53 * devices that the kernel itself needs to lock in DTLB.
     54 *
     55 * @param physaddr Physical address of the page where the
     56 *                 device is located. Must be at least
     57 *                 page-aligned.
     58 * @param size Size of the device's registers. Must not
     59 *             exceed 4M and must include extra space
     60 *             caused by the alignment.
     61 *
     62 * @return Virtual address of the page where the device is
     63 *         mapped.
     64 */
    4965uintptr_t hw_map(uintptr_t physaddr, size_t size)
    5066{
     
    6985        };
    7086       
     87        ASSERT(ALIGN_UP(physaddr, PAGE_SIZE) == physaddr);
    7188        ASSERT(size <= 4*1024*1024);
    7289       
Note: See TracChangeset for help on using the changeset viewer.