1 /****************************************************************************
4 * Copyright (c) 2008 Pattrick Hueper <phueper@hueper.net>
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions are
12 * Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer.
15 * Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer
17 * in the documentation and/or other materials provided with the
20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24 * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 ****************************************************************************/
39 /* PMM Structure see PMM Spec Version 1.01 Chapter 3.1.1
40 * (search web for specspmm101.pdf)
47 u32 entry_point_offset
;
49 /* Code is not part of the specced PMM struct, however, since I cannot
50 * put the handling of PMM in the virtual memory (I don't want to hack
51 * it together in x86 assembly ;-)) this code array is pointed to by
52 * entry_point_offset, in code there is only a INT call and a RETF,
53 * thus every PMM call will issue a PMM INT (only defined in YABEL,
54 * see interrupt.c) and the INT Handler will do the actual PMM work.
57 } __packed pmm_information_t
;
59 /* This function is used to setup the PMM struct in virtual memory
60 * at a certain offset */
61 u8
pmm_setup(u16 segment
, u16 offset
);
63 /* This is the INT Handler mentioned above, called by my special PMM INT. */
64 void pmm_handleInt(void);
68 #endif /* _YABEL_PMM_H_ */