#include <stdio.h>#include <stdlib.h>#include <string.h>#include "bus_pci.h"#include "cpu.h"#include "devices.h"#include "interrupt.h"#include "machine.h"#include "memory.h"#include "misc.h"#include "timer.h"#include "thirdparty/gtreg.h"Go to the source code of this file.
Classes | |
| struct | gt_data |
Macros | |
| #define | TICK_SHIFT 14 |
| #define | PCI_PRODUCT_GALILEO_GT64011 0x4146 /* GT-64011 */ |
| #define | PCI_PRODUCT_GALILEO_GT64120 0x4620 /* GT-64120 */ |
| #define | PCI_PRODUCT_GALILEO_GT64260 0x6430 /* GT-64260 */ |
Functions | |
| DEVICE_TICK (gt) | |
| DEVICE_ACCESS (gt) | |
| struct pci_data * | dev_gt_init (struct machine *machine, struct memory *mem, uint64_t baseaddr, const char *timer_irq_path, const char *isa_irq_path, int type) |
| struct pci_data* dev_gt_init | ( | struct machine * | machine, |
| struct memory * | mem, | ||
| uint64_t | baseaddr, | ||
| const char * | timer_irq_path, | ||
| const char * | isa_irq_path, | ||
| int | type | ||
| ) |
Definition at line 225 of file dev_gt.cc.
References bus_pci_add(), bus_pci_init(), CHECK_ALLOCATION, gt_data::decode, dev_gt_access(), DEV_GT_LENGTH, DM_DEFAULT, fatal(), GT_PCI0IOHD_OFS, GT_PCI0IOLD_OFS, GT_PCI0IOREMAP_OFS, GT_PCI0M0HD_OFS, GT_PCI0M0LD_OFS, GT_PCI0M0REMAP_OFS, GT_PCI0M1HD_OFS, GT_PCI0M1LD_OFS, GT_PCI0M1REMAP_OFS, INTERRUPT_CONNECT, machine_add_tickfunction(), memory_device_register(), gt_data::pci_data, PCI_PRODUCT_GALILEO_GT64011, PCI_PRODUCT_GALILEO_GT64120, PCI_PRODUCT_GALILEO_GT64260, TICK_SHIFT, gt_data::timer0_irq, and gt_data::type.
Referenced by MACHINE_SETUP().
| DEVICE_ACCESS | ( | gt | ) |
Definition at line 95 of file dev_gt.cc.
References data, debug, gt_data::decode, ENTC0, fatal(), GT_INTR_CAUSE, GT_PCI0_CMD_OFS, GT_PCI0_INTR_ACK, GT_PCI0IOHD_OFS, GT_PCI0IOLD_OFS, GT_PCI0IOREMAP_OFS, GT_PCI0M0HD_OFS, GT_PCI0M0LD_OFS, GT_PCI0M0REMAP_OFS, GT_PCI0M1HD_OFS, GT_PCI0M1LD_OFS, GT_PCI0M1REMAP_OFS, GT_TIMER_CTRL, GTIC_T0EXP, INTERRUPT_DEASSERT, gt_data::interrupt_hz, machine::isa_pic_data, isa_pic_data::last_int, cpu::machine, MEM_READ, MEM_WRITE, memory_readmax64(), gt_data::pending_timer0_interrupts, reg, gt_data::timer, gt_data::timer0_irq, and timer_add().
| DEVICE_TICK | ( | gt | ) |
Definition at line 87 of file dev_gt.cc.
References INTERRUPT_ASSERT, gt_data::pending_timer0_interrupts, and gt_data::timer0_irq.
1.8.17