~hamo/ubuntu/precise/grub2/grub2.hi_res

« back to all changes in this revision

Viewing changes to include/grub/mips/yeeloong/pci.h

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson, Colin Watson, Robert Millan, Updated translations
  • Date: 2010-11-22 12:24:56 UTC
  • mfrom: (1.26.4 upstream) (17.3.36 sid)
  • mto: (17.3.43 sid)
  • mto: This revision was merged to the branch mainline in revision 89.
  • Revision ID: james.westby@ubuntu.com-20101122122456-y82z3sfb7k4zfdcc
Tags: 1.99~20101122-1
[ Colin Watson ]
* New Bazaar snapshot.  Too many changes to list in full, but some of the
  more user-visible ones are as follows:
  - GRUB script:
    + Function parameters, "break", "continue", "shift", "setparams",
      "return", and "!".
    + "export" command supports multiple variable names.
    + Multi-line quoted strings support.
    + Wildcard expansion.
  - sendkey support.
  - USB hotunplugging and USB serial support.
  - Rename CD-ROM to cd on BIOS.
  - Add new --boot-directory option to grub-install, grub-reboot, and
    grub-set-default; the old --root-directory option is still accepted
    but was often confusing.
  - Basic btrfs detection/UUID support (but no file reading yet).
  - bash-completion for utilities.
  - If a device is listed in device.map, always assume that it is
    BIOS-visible rather than using extra layers such as LVM or RAID.
  - Add grub-mknetdir script (closes: #550658).
  - Remove deprecated "root" command.
  - Handle RAID devices containing virtio components.
  - GRUB Legacy configuration file support (via grub-menulst2cfg).
  - Keyboard layout support (via grub-mklayout and grub-kbdcomp).
  - Check generated grub.cfg for syntax errors before saving.
  - Pause execution for at most ten seconds if any errors are displayed,
    so that the user has a chance to see them.
  - Support submenus.
  - Write embedding zone using Reed-Solomon, so that it's robust against
    being partially overwritten (closes: #550702, #591416, #593347).
  - GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY merged
    into a single GRUB_DISABLE_RECOVERY variable.
  - Fix loader memory allocation failure (closes: #551627).
  - Don't call savedefault on recovery entries (closes: #589325).
  - Support triple-indirect blocks on ext2 (closes: #543924).
  - Recognise DDF1 fake RAID (closes: #603354).

[ Robert Millan ]
* Use dpkg architecture wildcards.

[ Updated translations ]
* Slovenian (Vanja Cvelbar).  Closes: #604003
* Dzongkha (dawa pemo via Tenzin Dendup).  Closes: #604102

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#ifndef GRUB_MACHINE_PCI_H
20
20
#define GRUB_MACHINE_PCI_H      1
21
21
 
 
22
#ifndef ASM_FILE
22
23
#include <grub/types.h>
23
24
#include <grub/cpu/io.h>
 
25
#endif
 
26
 
 
27
#define GRUB_YEELOONG_OHCI_PCIID 0x00351033
 
28
#define GRUB_YEELOONG_EHCI_PCIID 0x00e01033
 
29
#define GRUB_YEELOONG_OHCI_GHOST_FUNCTION 4
 
30
#define GRUB_YEELOONG_EHCI_GHOST_FUNCTION 5
24
31
 
25
32
#define GRUB_PCI_NUM_BUS        1
26
33
#define GRUB_PCI_NUM_DEVICES    16
27
34
 
28
 
#define GRUB_MACHINE_PCI_IO_BASE          0xbfd00000
29
 
#define GRUB_MACHINE_PCI_CONFSPACE        0xbfe80000
30
 
#define GRUB_MACHINE_PCI_CONF_CTRL_REG    (*(volatile grub_uint32_t *) 0xbfe00118)
 
35
#define GRUB_MACHINE_PCI_IO_BASE           0xbfd00000
 
36
#define GRUB_MACHINE_PCI_CONFSPACE         0xbfe80000
 
37
#define GRUB_MACHINE_PCI_CONTROLLER_HEADER 0xbfe00000
 
38
 
 
39
#define GRUB_MACHINE_PCI_CONF_CTRL_REG_ADDR 0xbfe00118
 
40
 
 
41
#ifndef ASM_FILE
 
42
#define GRUB_MACHINE_PCI_CONF_CTRL_REG    (*(volatile grub_uint32_t *) \
 
43
                                           GRUB_MACHINE_PCI_CONF_CTRL_REG_ADDR)
31
44
#define GRUB_MACHINE_PCI_IO_CTRL_REG      (*(volatile grub_uint32_t *) 0xbfe00110)
 
45
#endif
32
46
#define GRUB_MACHINE_PCI_WIN_MASK_SIZE    6
33
47
#define GRUB_MACHINE_PCI_WIN_MASK         ((1 << GRUB_MACHINE_PCI_WIN_MASK_SIZE) - 1)
34
48
 
46
60
#define GRUB_MACHINE_PCI_WIN2_ADDR        0xb4000000
47
61
#define GRUB_MACHINE_PCI_WIN3_ADDR        0xb8000000
48
62
 
 
63
#ifndef ASM_FILE
49
64
static inline grub_uint32_t
50
65
grub_pci_read (grub_pci_address_t addr)
51
66
{
95
110
}
96
111
 
97
112
volatile void *
98
 
grub_pci_device_map_range (grub_pci_device_t dev __attribute__ ((unused)),
99
 
                           grub_addr_t base, grub_size_t size);
 
113
EXPORT_FUNC (grub_pci_device_map_range) (grub_pci_device_t dev,
 
114
                                         grub_addr_t base, grub_size_t size);
100
115
void
101
 
grub_pci_device_unmap_range (grub_pci_device_t dev __attribute__ ((unused)),
102
 
                             volatile void *mem,
103
 
                             grub_size_t size __attribute__ ((unused)));
 
116
EXPORT_FUNC (grub_pci_device_unmap_range) (grub_pci_device_t dev,
 
117
                                           volatile void *mem,
 
118
                                           grub_size_t size);
 
119
#endif
104
120
 
105
121
#endif /* GRUB_MACHINE_PCI_H */