|
|
1.1 ! root 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 ! 8: \ * ! 9: \ * Contributors: ! 10: \ * IBM Corporation - initial implementation ! 11: \ ****************************************************************************/ ! 12: ! 13: \ IO-APIC init ! 14: ! 15: s" io-apic" 2dup device-name device-type ! 16: my-space pci-class-name type s" ( 8131 IO-APIC )" type ! 17: ! 18: enable-io-access ! 19: enable-mem-access ! 20: pci-master-enable ! 21: ! 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. ! 26: ! 27: s" ioapic.fs" included ! 28: ! 29: 2 lshift 14 + \ Calculate first IRQ #. ! 30: init-ioapic \ Set IRQs. ! 31: ! 32: my-space pci-device-props ! 33: ! 34: cr
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.