1 \ *****************************************************************************
2 \ * Copyright (c) 2004, 2008 IBM Corporation
3 \ * All rights reserved.
4 \ * This program and the accompanying materials
5 \ * are made available under the terms of the BSD License
6 \ * which accompanies this distribution, and is available at
7 \ * http://www.opensource.org/licenses/bsd-license.php
10 \ * IBM Corporation - initial implementation
11 \ ****************************************************************************/
15 s" io-apic" 2dup device-name device-type
16 my-space pci-class-name type s" ( 8131 IO-APIC )" type
22 my-space b rshift \ Get slot #.
23 dup c lshift fec00000 or \ Calculate base address.
24 dup 48 config-l! 0 4c config-l! \ Set base address.
25 03 44 config-b! \ Enable IO-APIC.
27 s" ioapic.fs" included
29 2 lshift 14 + \ Calculate first IRQ #.
30 init-ioapic \ Set IRQs.
32 my-space pci-device-props