The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/include/asm-alpha/machvec.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 #ifndef __ALPHA_MACHVEC_H
    2 #define __ALPHA_MACHVEC_H 1
    3 
    4 #include <linux/config.h>
    5 #include <linux/types.h>
    6 
    7 /*
    8  *      This file gets pulled in by asm/io.h from user space. We don't
    9  *      want most of this escaping.
   10  */
   11  
   12 #ifdef __KERNEL__
   13 
   14 /* The following structure vectors all of the I/O and IRQ manipulation
   15    from the generic kernel to the hardware specific backend.  */
   16 
   17 struct task_struct;
   18 struct mm_struct;
   19 struct pt_regs;
   20 struct vm_area_struct;
   21 struct linux_hose_info;
   22 struct pci_dev;
   23 struct pci_ops;
   24 struct pci_controller;
   25 struct _alpha_agp_info;
   26 
   27 struct alpha_machine_vector
   28 {
   29         /* This "belongs" down below with the rest of the runtime
   30            variables, but it is convenient for entry.S if these 
   31            two slots are at the beginning of the struct.  */
   32         unsigned long hae_cache;
   33         unsigned long *hae_register;
   34 
   35         int nr_irqs;
   36         int rtc_port;
   37         int max_asn;
   38         unsigned long max_dma_address;
   39         unsigned long irq_probe_mask;
   40         unsigned long iack_sc;
   41         unsigned long min_io_address;
   42         unsigned long min_mem_address;
   43         unsigned long pci_dac_offset;
   44 
   45         void (*mv_pci_tbi)(struct pci_controller *hose,
   46                            dma_addr_t start, dma_addr_t end);
   47 
   48         u8 (*mv_inb)(unsigned long);
   49         u16 (*mv_inw)(unsigned long);
   50         u32 (*mv_inl)(unsigned long);
   51 
   52         void (*mv_outb)(u8, unsigned long);
   53         void (*mv_outw)(u16, unsigned long);
   54         void (*mv_outl)(u32, unsigned long);
   55         
   56         u8 (*mv_readb)(unsigned long);
   57         u16 (*mv_readw)(unsigned long);
   58         u32 (*mv_readl)(unsigned long);
   59         u64 (*mv_readq)(unsigned long);
   60 
   61         void (*mv_writeb)(u8, unsigned long);
   62         void (*mv_writew)(u16, unsigned long);
   63         void (*mv_writel)(u32, unsigned long);
   64         void (*mv_writeq)(u64, unsigned long);
   65 
   66         unsigned long (*mv_ioremap)(unsigned long, unsigned long);
   67         void (*mv_iounmap)(unsigned long);
   68         int (*mv_is_ioaddr)(unsigned long);
   69 
   70         void (*mv_switch_mm)(struct mm_struct *, struct mm_struct *,
   71                              struct task_struct *, long);
   72         void (*mv_activate_mm)(struct mm_struct *, struct mm_struct *);
   73 
   74         void (*mv_flush_tlb_current)(struct mm_struct *);
   75         void (*mv_flush_tlb_current_page)(struct mm_struct * mm,
   76                                           struct vm_area_struct *vma,
   77                                           unsigned long addr);
   78 
   79         void (*update_irq_hw)(unsigned long, unsigned long, int);
   80         void (*ack_irq)(unsigned long);
   81         void (*device_interrupt)(unsigned long vector, struct pt_regs *regs);
   82         void (*machine_check)(u64 vector, u64 la, struct pt_regs *regs);
   83 
   84         void (*smp_callin)(void);
   85         void (*init_arch)(void);
   86         void (*init_irq)(void);
   87         void (*init_rtc)(void);
   88         void (*init_pci)(void);
   89         void (*kill_arch)(int);
   90 
   91         u8 (*pci_swizzle)(struct pci_dev *, u8 *);
   92         int (*pci_map_irq)(struct pci_dev *, u8, u8);
   93         struct pci_ops *pci_ops;
   94 
   95         struct _alpha_agp_info *(*agp_info)(void);
   96 
   97         const char *vector_name;
   98 
   99         /* NUMA information */
  100         int (*pa_to_nid)(unsigned long);
  101         int (*cpuid_to_nid)(int);
  102         unsigned long (*node_mem_start)(int);
  103         unsigned long (*node_mem_size)(int);
  104 
  105         /* System specific parameters.  */
  106         union {
  107             struct {
  108                 unsigned long gru_int_req_bits;
  109             } cia;
  110 
  111             struct {
  112                 unsigned long gamma_bias;
  113             } t2;
  114 
  115             struct {
  116                 unsigned int route_tab;
  117             } sio;
  118         } sys;
  119 };
  120 
  121 extern struct alpha_machine_vector alpha_mv;
  122 
  123 #ifdef CONFIG_ALPHA_GENERIC
  124 extern int alpha_using_srm;
  125 #else
  126 #ifdef CONFIG_ALPHA_SRM
  127 #define alpha_using_srm 1
  128 #else
  129 #define alpha_using_srm 0
  130 #endif
  131 #endif /* GENERIC */
  132 
  133 #endif
  134 #endif /* __ALPHA_MACHVEC_H */

Cache object: d2b35c20983a2a6ea874ac9b6f4151c6


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.