1. 05 Mar, 2018 4 commits
    • Daniel Kiper's avatar
      ieee1275: no-data-command bus specific method · c422bb60
      Daniel Kiper authored
      IEEE 1275-1994 Standard for Boot (Initialization Configuration)
      Firmware: Core Requirements and Practices
      
      E.3.2.2 Bus-specific methods for bus nodes
      
      A package implementing the scsi-2 device type shall implement the
      following bus-specific method:
      
      no-data-command ( cmd-addr -- error? )
      Executes a simple SCSI command, automatically retrying under
      certain conditions.  cmd-addr is the address of a 6-byte command buffer
      containing an SCSI command that does not have a data transfer phase.
      Executes the command, retrying indefinitely with the same retry criteria
      as retry-command.
      
      error? is nonzero if an error occurred, zero otherwise.
      NOTE no-data-command is a convenience function. It provides
      no capabilities that are not present in retry-command, but for
      those commands that meet its restrictions, it is easier to use.
      Signed-off-by: default avatarEric Snowberg <eric.snowberg@oracle.com>
      Reviewed-by: default avatarDaniel Kiper <daniel.kiper@oracle.com>
      c422bb60
    • Eric Snowberg's avatar
      ieee1275: set-address bus specific method · f02037af
      Eric Snowberg authored
      IEEE 1275-1994 Standard for Boot (Initialization Configuration)
      Firmware: Core Requirements and Practices
      E.3.2.2 Bus-specific methods for bus nodes
      
      A package implementing the scsi-2 device type shall implement the
      following bus-specific method:
      
       set-address ( unit# target# -- )
         Sets the SCSI target number (0x0..0xf) and unit number (0..7) to which
         subsequent commands apply.
      
      This function is for devices with #address-cells == 2
      Signed-off-by: default avatarEric Snowberg <eric.snowberg@oracle.com>
      Reviewed-by: default avatarDaniel Kiper <daniel.kiper@oracle.com>
      f02037af
    • Eric Snowberg's avatar
      ieee1275: encode-unit command for 4 addr cell devs · 820c64e4
      Eric Snowberg authored
      Convert physical address to text unit-string.
      
      Convert phys.lo ... phys-high, the numerical representation, to unit-string,
      the text string representation of a physical address within the address
      space defined by this device node. The number of cells in the list
      phys.lo ... phys.hi is determined by the value of the #address-cells property
      of this node.
      
      This function is for devices with #address-cells == 4
      Signed-off-by: default avatarEric Snowberg <eric.snowberg@oracle.com>
      Reviewed-by: default avatarDaniel Kiper <daniel.kiper@oracle.com>
      820c64e4
    • Eric Snowberg's avatar
      ieee1275: decode-unit command for 4 addr cell devs · 6003eb2f
      Eric Snowberg authored
      decode-unit ( addr len -- phys.lo ... phys.hi )
      
      Convert text unit-string to physical address.
      
      Convert unit-string, the text string representation, to phys.lo ... phys.hi,
      the numerical representation of a physical address within the address space
      defined by this device node. The number of cells in the list
      phys.lo ... phys.hi is determined by the value of the #address-cells
      property of this node.
      
      This function is for devices with #address-cells == 4
      Signed-off-by: default avatarEric Snowberg <eric.snowberg@oracle.com>
      Reviewed-by: default avatarDaniel Kiper <daniel.kiper@oracle.com>
      6003eb2f
  2. 25 Jan, 2012 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      IEEE1275 disk write support. · 76261110
      Vladimir 'phcoder' Serbinenko authored
      	* grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
      	const void *.
      	* include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
      	* grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
      	and seek loginc to ...
      	(grub_ofdisk_prepare): ... here.
      	(grub_ofdisk_write): Implement.
      76261110
  3. 12 Dec, 2011 1 commit
  4. 11 Nov, 2011 1 commit
  5. 06 May, 2010 1 commit
  6. 13 Feb, 2010 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      2010-02-13 Vladimir Serbinenko <phcoder@gmail.com> · ca62070b
      Vladimir 'phcoder' Serbinenko authored
      	Fix over-4GiB seek on sparc64.
      
      	* include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
      	Replace pos_i and pos_lo with pos. All users updated.
      	* include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
      	New constant.
      	* include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
      	Likewise.
      	* kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
      	and pos_lo.
      ca62070b
  7. 03 Jan, 2010 1 commit
    • Robert Millan's avatar
      2010-01-03 Robert Millan <rmh.grub@aybabtu.com> · 58bc8bd5
      Robert Millan authored
      	
      	* boot/i386/pc/boot.S: Update copyright year.
      	* boot/i386/pc/cdboot.S: Likewise.
      	* boot/i386/pc/diskboot.S: Likewise.
      	* boot/i386/pc/lnxboot.S: Likewise.
      	* boot/i386/pc/pxeboot.S: Likewise.
      	* bus/pci.c: Likewise.
      	* commands/cmp.c: Likewise.
      	* commands/help.c: Likewise.
      	* commands/hexdump.c: Likewise.
      	* commands/i386/pc/halt.c: Likewise.
      	* commands/i386/pc/play.c: Likewise.
      	* commands/i386/pc/vbeinfo.c: Likewise.
      	* commands/ls.c: Likewise.
      	* commands/test.c: Likewise.
      	* disk/dmraid_nvidia.c: Likewise.
      	* disk/i386/pc/biosdisk.c: Likewise.
      	* disk/ieee1275/nand.c: Likewise.
      	* disk/ieee1275/ofdisk.c: Likewise.
      	* disk/lvm.c: Likewise.
      	* disk/raid.c: Likewise.
      	* disk/raid6_recover.c: Likewise.
      	* disk/scsi.c: Likewise.
      	* fs/affs.c: Likewise.
      	* fs/cpio.c: Likewise.
      	* fs/ext2.c: Likewise.
      	* fs/hfs.c: Likewise.
      	* fs/iso9660.c: Likewise.
      	* fs/ntfs.c: Likewise.
      	* fs/sfs.c: Likewise.
      	* fs/udf.c: Likewise.
      	* fs/ufs.c: Likewise.
      	* fs/xfs.c: Likewise.
      	* gencmdlist.sh: Likewise.
      	* genmk.rb: Likewise.
      	* include/grub/disk.h: Likewise.
      	* include/grub/efi/api.h: Likewise.
      	* include/grub/efi/efi.h: Likewise.
      	* include/grub/efi/pe32.h: Likewise.
      	* include/grub/elf.h: Likewise.
      	* include/grub/fs.h: Likewise.
      	* include/grub/i386/at_keyboard.h: Likewise.
      	* include/grub/i386/pc/memory.h: Likewise.
      	* include/grub/i386/pc/vbe.h: Likewise.
      	* include/grub/i386/pci.h: Likewise.
      	* include/grub/i386/tsc.h: Likewise.
      	* include/grub/ieee1275/ieee1275.h: Likewise.
      	* include/grub/ntfs.h: Likewise.
      	* include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
      	* include/grub/sparc64/libgcc.h: Likewise.
      	* include/grub/symbol.h: Likewise.
      	* include/grub/types.h: Likewise.
      	* include/multiboot2.h: Likewise.
      	* io/gzio.c: Likewise.
      	* kern/device.c: Likewise.
      	* kern/disk.c: Likewise.
      	* kern/efi/efi.c: Likewise.
      	* kern/efi/mm.c: Likewise.
      	* kern/elf.c: Likewise.
      	* kern/file.c: Likewise.
      	* kern/i386/dl.c: Likewise.
      	* kern/i386/pc/init.c: Likewise.
      	* kern/i386/pc/startup.S: Likewise.
      	* kern/ieee1275/ieee1275.c: Likewise.
      	* kern/ieee1275/init.c: Likewise.
      	* kern/main.c: Likewise.
      	* kern/mm.c: Likewise.
      	* kern/powerpc/dl.c: Likewise.
      	* kern/sparc64/dl.c: Likewise.
      	* kern/x86_64/dl.c: Likewise.
      	* lib/hexdump.c: Likewise.
      	* loader/efi/appleloader.c: Likewise.
      	* loader/i386/ieee1275/linux.c: Likewise.
      	* loader/i386/pc/chainloader.c: Likewise.
      	* loader/i386/pc/linux.c: Likewise.
      	* loader/i386/pc/multiboot2.c: Likewise.
      	* loader/ieee1275/multiboot2.c: Likewise.
      	* loader/multiboot2.c: Likewise.
      	* loader/multiboot_loader.c: Likewise.
      	* loader/powerpc/ieee1275/linux.c: Likewise.
      	* normal/completion.c: Likewise.
      	* normal/menu_entry.c: Likewise.
      	* partmap/apple.c: Likewise.
      	* util/grub.d/10_hurd.in: Likewise.
      	* util/hostfs.c: Likewise.
      	* video/readers/png.c: Likewise.
      	
      58bc8bd5
  8. 10 Jun, 2009 1 commit
  9. 10 Apr, 2009 1 commit
    • davem's avatar
      * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg · d3bfb59c
      davem authored
      	slots are of type grub_ieee1275_cell_t.
      	(grub_nand_read): Likewise.
      	* kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
      	IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
      	macros are used to compare values in arg/ret block of the call.
      	(grub_ieee1275_finddevice, grub_ieee1275_get_property,
      	grub_ieee1275_next_property, grub_ieee1275_get_property_length,
      	grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
      	grub_ieee1275_instance_to_path, grub_ieee1275_write,
      	grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
      	grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
      	grub_ieee1275_close, grub_ieee1275_set_property,
      	grub_ieee1275_set_color): All ieee1275 call arg slots are of type
      	grub_ieee1275_cell_t.
      	* kern/ieee1275/openfw.c (grub_map): Likewise.
      	* include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
      	grub_ieee1275_phandle_t): Define as grub_unit32_t type.
      d3bfb59c
  10. 15 Jul, 2008 1 commit
  11. 02 Jul, 2008 1 commit
    • bean's avatar
      2008-07-02 Bean <bean123ch@gmail.com> · d4156eee
      bean authored
      	* include/grub/ieee1275.h (grub_ieee1275_flag): New constant
      	GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
      	and GRUB_IEEE1275_FLAG_NO_ANSI.
      
      	* kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
      	GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
      	and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
      
      	* kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
      	immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
      
      	* kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
      	GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
      
      	* term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
      	esc sequence on non ANSI terminal.
      	(grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
      
      	* util/elf/grub-mkimage.c (add_segments): Move ELF header to the
      	beginning of file.
      d4156eee
  12. 21 Jan, 2008 1 commit
    • robertmh's avatar
      2008-01-21 Robert Millan <rmh@aybabtu.com> · 0d8837b2
      robertmh authored
              * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
              recent changes.
              * kern/elf.c: Likewise.
              * kern/ieee1275/ieee1275.c: Likewise.
              * kern/powerpc/ieee1275/openfw.c: Likewise.
              * term/ieee1275/ofconsole.c: Likewise.
      0d8837b2
  13. 19 Jan, 2008 1 commit
    • robertmh's avatar
      2008-01-19 Robert Millan <rmh@aybabtu.com> · 33bf70a7
      robertmh authored
              Get rid of confusing function (superceeded by
              `grub_ieee1275_get_integer_property')
              * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
              prototype.
              * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
              function.
              * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
              grub_ieee1275_decode_int_4(), by obtaining integer properties directly
              in native endianess from grub_ieee1275_get_integer_property().
      33bf70a7
  14. 15 Jan, 2008 1 commit
    • robertmh's avatar
      2008-01-15 Robert Millan <rmh@aybabtu.com> · 66a65807
      robertmh authored
              * include/grub/ieee1275/ieee1275.h
              (grub_ieee1275_get_integer_property): New function prototype.
      
              * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
              (grub_ieee1275_get_integer_property): New function.  Wraps around
              grub_ieee1275_get_property() to handle endianess.
      
              * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
              grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
              where appropiate.
              * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
              (grub_map): Likewise.
              * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
      66a65807
  15. 21 Jul, 2007 1 commit
    • okuji's avatar
      2007-07-22 Yoshinori K. Okuji <okuji@enbug.org> · 5a79f472
      okuji authored
          Migrate to GNU General Public License Version 3.
      
          * COPYING: Replaced with the plain text version of GPLv3.
      
          * config.guess: Updated from gnulib.
          * config.sub: Likewise.
      
          * geninit.sh: Output a GPLv3 copyright notice.
          * geninitheader.sh: Likewise.
          * genmodsrc.sh: Likewise.
          * gensymlist.sh.in: Likewise.
      
          * boot/i386/pc/boot.S: Upgraded to GPLv3.
          * boot/i386/pc/diskboot.S: Likewise.
          * boot/i386/pc/pxeboot.S: Likewise.
          * commands/blocklist.c: Likewise.
          * commands/boot.c: Likewise.
          * commands/cat.c: Likewise.
          * commands/cmp.c: Likewise.
          * commands/configfile.c: Likewise.
          * commands/echo.c: Likewise.
          * commands/help.c: Likewise.
          * commands/ls.c: Likewise.
          * commands/search.c: Likewise.
          * commands/terminal.c: Likewise.
          * commands/test.c: Likewise.
          * commands/videotest.c: Likewise.
          * commands/i386/cpuid.c: Likewise.
          * commands/i386/pc/halt.c: Likewise.
          * commands/i386/pc/play.c: Likewise.
          * commands/i386/pc/reboot.c: Likewise.
          * commands/i386/pc/vbeinfo.c: Likewise.
          * commands/i386/pc/vbetest.c: Likewise.
          * commands/ieee1275/halt.c: Likewise.
          * commands/ieee1275/reboot.c: Likewise.
          * commands/ieee1275/suspend.c: Likewise.
          * disk/loopback.c: Likewise.
          * disk/lvm.c: Likewise.
          * disk/raid.c: Likewise.
          * disk/efi/efidisk.c: Likewise.
          * disk/i386/pc/biosdisk.c: Likewise.
          * disk/ieee1275/ofdisk.c: Likewise.
          * font/manager.c: Likewise.
          * fs/affs.c: Likewise.
          * fs/ext2.c: Likewise.
          * fs/fat.c: Likewise.
          * fs/fshelp.c: Likewise.
          * fs/hfs.c: Likewise.
          * fs/hfsplus.c: Likewise.
          * fs/iso9660.c: Likewise.
          * fs/jfs.c: Likewise.
          * fs/minix.c: Likewise.
          * fs/sfs.c: Likewise.
          * fs/ufs.c: Likewise.
          * fs/xfs.c: Likewise.
          * hello/hello.c: Likewise.
          * include/grub/acorn_filecore.h: Likewise.
          * include/grub/arg.h: Likewise.
          * include/grub/bitmap.h: Likewise.
          * include/grub/boot.h: Likewise.
          * include/grub/cache.h: Likewise.
          * include/grub/device.h: Likewise.
          * include/grub/disk.h: Likewise.
          * include/grub/dl.h: Likewise.
          * include/grub/elfload.h: Likewise.
          * include/grub/env.h: Likewise.
          * include/grub/err.h: Likewise.
          * include/grub/file.h: Likewise.
          * include/grub/font.h: Likewise.
          * include/grub/fs.h: Likewise.
          * include/grub/fshelp.h: Likewise.
          * include/grub/gzio.h: Likewise.
          * include/grub/hfs.h: Likewise.
          * include/grub/kernel.h: Likewise.
          * include/grub/loader.h: Likewise.
          * include/grub/lvm.h: Likewise.
          * include/grub/misc.h: Likewise.
          * include/grub/mm.h: Likewise.
          * include/grub/net.h: Likewise.
          * include/grub/normal.h: Likewise.
          * include/grub/parser.h: Likewise.
          * include/grub/partition.h: Likewise.
          * include/grub/pc_partition.h: Likewise.
          * include/grub/raid.h: Likewise.
          * include/grub/rescue.h: Likewise.
          * include/grub/script.h: Likewise.
          * include/grub/setjmp.h: Likewise.
          * include/grub/symbol.h: Likewise.
          * include/grub/term.h: Likewise.
          * include/grub/terminfo.h: Likewise.
          * include/grub/tparm.h: Likewise.
          * include/grub/types.h: Likewise.
          * include/grub/video.h: Likewise.
          * include/grub/efi/api.h: Likewise.
          * include/grub/efi/chainloader.h: Likewise.
          * include/grub/efi/console.h: Likewise.
          * include/grub/efi/console_control.h: Likewise.
          * include/grub/efi/disk.h: Likewise.
          * include/grub/efi/efi.h: Likewise.
          * include/grub/efi/pe32.h: Likewise.
          * include/grub/efi/time.h: Likewise.
          * include/grub/i386/linux.h: Likewise.
          * include/grub/i386/setjmp.h: Likewise.
          * include/grub/i386/types.h: Likewise.
          * include/grub/i386/efi/kernel.h: Likewise.
          * include/grub/i386/efi/loader.h: Likewise.
          * include/grub/i386/efi/time.h: Likewise.
          * include/grub/i386/pc/biosdisk.h: Likewise.
          * include/grub/i386/pc/boot.h: Likewise.
          * include/grub/i386/pc/chainloader.h: Likewise.
          * include/grub/i386/pc/console.h: Likewise.
          * include/grub/i386/pc/init.h: Likewise.
          * include/grub/i386/pc/kernel.h: Likewise.
          * include/grub/i386/pc/loader.h: Likewise.
          * include/grub/i386/pc/memory.h: Likewise.
          * include/grub/i386/pc/multiboot.h: Likewise.
          * include/grub/i386/pc/serial.h: Likewise.
          * include/grub/i386/pc/time.h: Likewise.
          * include/grub/i386/pc/vbe.h: Likewise.
          * include/grub/i386/pc/vbeblit.h: Likewise.
          * include/grub/i386/pc/vbefill.h: Likewise.
          * include/grub/i386/pc/vbeutil.h: Likewise.
          * include/grub/i386/pc/vga.h: Likewise.
          * include/grub/ieee1275/ieee1275.h: Likewise.
          * include/grub/ieee1275/ofdisk.h: Likewise.
          * include/grub/powerpc/libgcc.h: Likewise.
          * include/grub/powerpc/setjmp.h: Likewise.
          * include/grub/powerpc/types.h: Likewise.
          * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
          * include/grub/powerpc/ieee1275/console.h: Likewise.
          * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
          * include/grub/powerpc/ieee1275/kernel.h: Likewise.
          * include/grub/powerpc/ieee1275/loader.h: Likewise.
          * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
          * include/grub/powerpc/ieee1275/time.h: Likewise.
          * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
          * include/grub/sparc64/libgcc.h: Likewise.
          * include/grub/sparc64/setjmp.h: Likewise.
          * include/grub/sparc64/types.h: Likewise.
          * include/grub/sparc64/ieee1275/console.h: Likewise.
          * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
          * include/grub/sparc64/ieee1275/kernel.h: Likewise.
          * include/grub/sparc64/ieee1275/time.h: Likewise.
          * include/grub/util/biosdisk.h: Likewise.
          * include/grub/util/getroot.h: Likewise.
          * include/grub/util/lvm.h: Likewise.
          * include/grub/util/misc.h: Likewise.
          * include/grub/util/raid.h: Likewise.
          * include/grub/util/resolve.h: Likewise.
          * io/gzio.c: Likewise.
          * kern/device.c: Likewise.
          * kern/disk.c: Likewise.
          * kern/dl.c: Likewise.
          * kern/elf.c: Likewise.
          * kern/env.c: Likewise.
          * kern/err.c: Likewise.
          * kern/file.c: Likewise.
          * kern/fs.c: Likewise.
          * kern/loader.c: Likewise.
          * kern/main.c: Likewise.
          * kern/misc.c: Likewise.
          * kern/mm.c: Likewise.
          * kern/parser.c: Likewise.
          * kern/partition.c: Likewise.
          * kern/rescue.c: Likewise.
          * kern/term.c: Likewise.
          * kern/efi/efi.c: Likewise.
          * kern/efi/init.c: Likewise.
          * kern/efi/mm.c: Likewise.
          * kern/i386/dl.c: Likewise.
          * kern/i386/efi/init.c: Likewise.
          * kern/i386/efi/startup.S: Likewise.
          * kern/i386/pc/init.c: Likewise.
          * kern/i386/pc/lzo1x.S: Likewise.
          * kern/i386/pc/startup.S: Likewise.
          * kern/ieee1275/ieee1275.c: Likewise.
          * kern/powerpc/cache.S: Likewise.
          * kern/powerpc/dl.c: Likewise.
          * kern/powerpc/ieee1275/cmain.c: Likewise.
          * kern/powerpc/ieee1275/crt0.S: Likewise.
          * kern/powerpc/ieee1275/init.c: Likewise.
          * kern/powerpc/ieee1275/openfw.c: Likewise.
          * kern/sparc64/cache.S: Likewise.
          * kern/sparc64/dl.c: Likewise.
          * kern/sparc64/ieee1275/init.c: Likewise.
          * kern/sparc64/ieee1275/openfw.c: Likewise.
          * loader/efi/chainloader.c: Likewise.
          * loader/efi/chainloader_normal.c: Likewise.
          * loader/i386/efi/linux.c: Likewise.
          * loader/i386/efi/linux_normal.c: Likewise.
          * loader/i386/pc/chainloader.c: Likewise.
          * loader/i386/pc/chainloader_normal.c: Likewise.
          * loader/i386/pc/linux.c: Likewise.
          * loader/i386/pc/linux_normal.c: Likewise.
          * loader/i386/pc/multiboot.c: Likewise.
          * loader/i386/pc/multiboot_normal.c: Likewise.
          * loader/powerpc/ieee1275/linux.c: Likewise.
          * loader/powerpc/ieee1275/linux_normal.c: Likewise.
          * normal/arg.c: Likewise.
          * normal/cmdline.c: Likewise.
          * normal/command.c: Likewise.
          * normal/completion.c: Likewise.
          * normal/execute.c: Likewise.
          * normal/function.c: Likewise.
          * normal/lexer.c: Likewise.
          * normal/main.c: Likewise.
          * normal/menu.c: Likewise.
          * normal/menu_entry.c: Likewise.
          * normal/misc.c: Likewise.
          * normal/parser.y: Likewise.
          * normal/script.c: Likewise.
          * normal/i386/setjmp.S: Likewise.
          * normal/powerpc/setjmp.S: Likewise.
          * normal/sparc64/setjmp.S: Likewise.
          * partmap/acorn.c: Likewise.
          * partmap/amiga.c: Likewise.
          * partmap/apple.c: Likewise.
          * partmap/gpt.c: Likewise.
          * partmap/pc.c: Likewise.
          * partmap/sun.c: Likewise.
          * term/gfxterm.c: Likewise.
          * term/terminfo.c: Likewise.
          * term/efi/console.c: Likewise.
          * term/i386/pc/console.c: Likewise.
          * term/i386/pc/serial.c: Likewise.
          * term/i386/pc/vesafb.c: Likewise.
          * term/i386/pc/vga.c: Likewise.
          * term/ieee1275/ofconsole.c: Likewise.
          * util/biosdisk.c: Likewise.
          * util/console.c: Likewise.
          * util/genmoddep.c: Likewise.
          * util/getroot.c: Likewise.
          * util/grub-emu.c: Likewise.
          * util/grub-mkdevicemap.c: Likewise.
          * util/grub-probe.c: Likewise.
          * util/lvm.c: Likewise.
          * util/misc.c: Likewise.
          * util/raid.c: Likewise.
          * util/resolve.c: Likewise.
          * util/update-grub.in: Likewise.
          * util/update-grub_lib.in: Likewise.
          * util/grub.d/00_header.in: Likewise.
          * util/grub.d/10_hurd.in: Likewise.
          * util/grub.d/10_linux.in: Likewise.
          * util/i386/efi/grub-install.in: Likewise.
          * util/i386/efi/grub-mkimage.c: Likewise.
          * util/i386/pc/grub-install.in: Likewise.
          * util/i386/pc/grub-mkimage.c: Likewise.
          * util/i386/pc/grub-mkrescue.in: Likewise.
          * util/i386/pc/grub-setup.c: Likewise.
          * util/i386/pc/misc.c: Likewise.
          * util/powerpc/ieee1275/grub-install.in: Likewise.
          * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
          * util/powerpc/ieee1275/misc.c: Likewise.
          * video/bitmap.c: Likewise.
          * video/video.c: Likewise.
          * video/i386/pc/vbe.c: Likewise.
          * video/i386/pc/vbeblit.c: Likewise.
          * video/i386/pc/vbefill.c: Likewise.
          * video/i386/pc/vbeutil.c: Likewise.
          * video/readers/tga.c: Likewise.
      5a79f472
  16. 02 Nov, 2006 1 commit
  17. 27 Oct, 2006 1 commit
  18. 01 Oct, 2006 2 commits
    • hollisb's avatar
      2005-10-01 Hollis Blanchard <hollis@penguinppc.org> · fba51f48
      hollisb authored
      	* disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
      
      	* include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
      	Remove `flags' argument.  All callers changed.
      	* kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
      	(IEEE1275_IHANDLE_INVALID): New variable.
      	(IEEE1275_CELL_INVALID): New variable.
      	(grub_ieee1275_finddevice, grub_ieee1275_get_property,
      	grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
      	grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
      	grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
      	grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
      	codes from Open Firmware.  All callers updated.
      	(grub_ieee1275_next_property): Directly return Open Firmware return
      	code.
      	* kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
      	Standardize error checking from `grub_ieee1275_get_property'.
      	* kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
      	`devalias' to `aliases'.  Correct comments.  Consolidate error paths.
      fba51f48
    • hollisb's avatar
      2005-10-01 Hollis Blanchard <hollis@penguinppc.org> · cc6d3df3
      hollisb authored
      	* kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
      	`instance_to_package_args' to `instance_to_path_args'.
      
      	* kern/powerpc/ieee1275/init.c (grub_machine_init): Use
      	`grub_ieee1275_chosen'.
      
      	* term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
      	`grub_ieee1275_interpret'.
      cc6d3df3
  19. 01 Aug, 2006 1 commit
  20. 21 Aug, 2005 1 commit
    • subdino's avatar
      2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr> · e9211b5d
      subdino authored
              * configure.ac: Add support for sparc64 host with ieee1275
              firmware.
              * configure: Generated from configure.ac.
              * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
              instead of int.
              (grub_ofdisk_read): Likewise.
              (grub_ofdisk_open): Use %p to print pointer values, and cast the
              pointers as (void *) to remove a warning.
              (grub_ofdisk_close): Likewise.
              (grub_ofdisk_read): Likewise.
              * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
              returns, so make it return void to remove a warning.
              * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
              Corresponding prototype change.
              * kern/mm.c (grub_mm_init_region): Use %p to print pointer
              values, and cast the pointers as (void *) to remove a warning.
              (grub_mm_dump): Likewise.
              * conf/sparc64-ieee1275.mk: New file.
              * conf/sparc64-ieee1275.rmk: Likewise.
              * include/grub/sparc64/setjmp.h: Likewise.
              * include/grub/sparc64/types.h: Likewise.
              * include/grub/sparc64/ieee1275/console.h: Likewise.
              * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
              * include/grub/sparc64/ieee1275/kernel.h: Likewise.
              * include/grub/sparc64/ieee1275/time.h: Likewise.
              * kern/sparc64/cache.c: Likewise.
              * kern/sparc64/dl.c: Likewise.
              * kern/sparc64/ieee1275/init.c: Likewise.
              * kern/sparc64/ieee1275/openfw.c: Likewise.
      e9211b5d
  21. 08 Aug, 2005 1 commit
    • hollisb's avatar
      2005-08-08 Hollis Blanchard <hollis@penguinppc.org> · c46153d2
      hollisb authored
      	* conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
      	kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
      	* DISTLIST: Likewise.
      	* kern/ieee1275/of.c: Moved to ...
      	* kern/ieee1275/ieee1275.c: ... here.
      c46153d2
  22. 07 Aug, 2005 1 commit
  23. 03 Aug, 2005 1 commit
    • hollisb's avatar
      2005-08-03 Hollis Blanchard <hollis@penguinppc.org> · 3be7266d
      hollisb authored
      	* include/grub/powerpc/ieee1275/ieee1275.h: Move ...
      	* include/grub/ieee1275/ieee1275.h: ... to here.  All users updated.
      	Move `abort', `grub_reboot', and `grub_halt' prototypes ...
      	* include/grub/powerpc/ieee1275/kernel.h: ... to here.
      	* commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
      	of <grub/machine/ieee1275.h>.
      	* commands/ieee1275/reboot.c: Likewise.
      	* boot/powerpc/ieee1275/ieee1275.c: Move ...
      	* kern/ieee1275.c: ... to here.  All users updated.  Change all
      	parameter structs to use new type `grub_ieee1275_cell_t'.
      	* term/powerpc/ieee1275/ofconsole.c: Move ...
      	* term/ieee1275/ofconsole.c: ... to here.  All users updated.
      	* disk/powerpc/ieee1275/ofdisk.c: Move ...
      	* disk/ieee1275/ofdisk.c: ... to here.  All users updated.
      	* boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
      	to return int.
      	* include/grub/i386/pc/console.h: Move to include/grub/console.h.
      	Remove unused prototypes.  All users updated.
      	* include/grub/powerpc/ieee1275/console.h: Removed.
      	* include/grub/powerpc/ieee1275/ieee1275.h: Define
      	`grub_ieee1275_cell_t'.
      	* kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
      	Cast comparisons with -1 to the correct type.
      	* loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
      	type to match `grub_ieee1275_entry_fn'.
      3be7266d
  24. 20 Jun, 2005 1 commit
    • hollisb's avatar
      2005-05-08 Hollis Blanchard <hollis@penguinppc.org> · 168d6e58
      hollisb authored
      	* boot/powerpc/ieee1275/cmain.c	(module_info): Remove definition.
      	(grub_ieee1275_chosen): New variable.
      	(cmain): Initialize and use `grub_ieee1275_chosen' instead of
      	`chosen'.
      	* boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
      	* boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
      	Rename first argument to `phandle' for consistency.
      	(grub_ieee1275_get_property_length): Likewise.
      	(grub_ieee1275_next_property): Likewise.  Change type of first argument
      	to grub_ieee1275_phandle_t.
      	* include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
      	Move export next to declaration.
      	(grub_ieee1275_chosen): New variable.
      	* include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
      	Correct cosmetic typo.
      	* kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
      	`grub_ieee1275_chosen'.
      	* kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
      	* loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
      	(grub_rescue_cmd_linux): Set `initrd_addr' to 0.
      	* term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
      	`grub_ieee1275_chosen'.
      168d6e58
  25. 31 Jan, 2005 1 commit
    • marco_g's avatar
      2005-01-30 Marco Gerards <metgerards@student.han.nl> · 0f79cdc1
      marco_g authored
      	* boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
      	function.
      	* commands/ieee1275/halt.c: New file.
      	* commands/ieee1275/reboot.c: Likewise.
      	* commands/ieee1275/suspend.c (grub_cmd_suspend): Use
      	`__attribute__ ((unused))'.  Some GCS related fixed.
      	(grub_suspend_init) [GRUB_UTIL]: Function removed.
      	(grub_suspend_fini): Likewise.
      	* conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
      	and `halt.mod'.
      	(reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
      	(halt_mod_CFLAGS): New variables.
      	* include/grub/powerpc/ieee1275/ieee1275.h
      	(grub_ieee1275_interpret): New prototype.
      0f79cdc1
  26. 20 Jan, 2005 1 commit
    • hollisb's avatar
      2005-01-20 Hollis Blanchard <hollis@penguinppc.org> · 6f1c18bd
      hollisb authored
      	* boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
      	function.
      	* conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
      	(suspend_mod_SOURCES): New variable.
      	(suspend_mod_CFLAGS): Likewise.
      	* include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
      	New prototype.
      	* commands/ieee1275/suspend.c: New file.
      6f1c18bd
  27. 03 Jan, 2005 1 commit
    • hollisb's avatar
      2005-01-03 Hollis Blanchard <hollis@penguinppc.org> · 458786f8
      hollisb authored
      	* boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
      	New function.
      	* include/grub/powerpc/ieee1275/ieee1275.h
      	(grub_ieee1275_milliseconds): New prototype.
      	* include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
      	Change to 1000.
      	* kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
      	grub_ieee1275_milliseconds.
      458786f8
  28. 28 Oct, 2004 1 commit
    • hollisb's avatar
      2004-10-28 Hollis Blanchard <hollis@penguinppc.org> · a5477a59
      hollisb authored
      	* boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
      	which initialized BAT registers.
      	* boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
      	grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
      	Move from here...
      	* include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
      	grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
      	... to here.
      	* kern/powerpc/ieee1275/openfw.c (grub_map): New function.
      	(grub_mapclaim): Likewise.
      	* loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
      	grub_mapclaim instead of grub_ieee1275_claim.  Assign linux_addr by
      	hand.
      a5477a59
  29. 13 Oct, 2004 1 commit
    • hollisb's avatar
      2004-10-13 Hollis Blanchard <hollis@penguinppc.org> · d1923dc8
      hollisb authored
          * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
          Call grub_children_iterate for device nodes of type `scsi',
          `ide', or `ata'.
          (grub_ofdisk_open): Remove manual device alias resolution.
          Fix memory leak when device cannot be opened.
          * include/grub/powerpc/ieee1275/ieee1275.h
          (grub_children_iterate): New prototype.
          * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
          New function.
          * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
          Return -1 if args.size was -1.
      d1923dc8
  30. 11 Oct, 2004 1 commit
  31. 03 Oct, 2004 1 commit
    • marco_g's avatar
      2004-10-03 Hollis Blanchard <hollis@penguinppc.org> · 9f2220ef
      marco_g authored
      	* boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
      	void *	arguments to grub_addr_t.  All callers updated.  Also make
      	the `result' argument optional.
      	(grub_ieee1275_release): change void * arguments to grub_addr_t.
      	All callers updated.
      9f2220ef
  32. 14 Sep, 2004 1 commit
    • okuji's avatar
      2004-09-14 Yoshinori K. Okuji <okuji@enbug.org> · 062b24c2
      okuji authored
        From Hollis Blanchard <hollis@penguinppc.org>:
        * kern/misc.c (memmove): New alias for grub_memmove.
        (memcmp): New alias for grub_memcmp.
        (memset): New alias for grub_memset.
        * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
        Change "int handle" to "grub_ieee1275_phandle_t handle".
        * include/grub/powerpc/ieee1275/ieee1275.h
        (grub_ieee1275_get_property): Likewise.
      062b24c2
  33. 27 Jul, 2004 1 commit
    • marco_g's avatar
      2004-07-27 Marco Gerards <metgerards@student.han.nl> · a447c5df
      marco_g authored
      	* boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
      	function.
      	* commands/boot.c: Remove the check for `GRUB_UTIL'.
      	* conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
      	`loader/powerpc/ieee1275/linux.c',
      	`loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
      	* include/grub/powerpc/ieee1275/ieee1275.h
      	(grub_ieee1275_release): New prototype.
      	* include/grub/powerpc/ieee1275/loader.h: Rewritten.
      	* kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
      	normal, boot, linux and linux_normal.
      	* loader/powerpc/ieee1275/linux.c: New file.
      	* loader/powerpc/ieee1275/linux_normal.c: Likewise.
      a447c5df
  34. 04 Apr, 2004 1 commit
    • okuji's avatar
      2004-04-04 Yoshinori K. Okuji <okuji@enbug.org> · 4b13b216
      okuji authored
      	All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
      	and grub_, respectively. Because the conversion is trivial and
      	mechanical, I omit the details here. Please refer to the CVS
      	if you need more information.
      4b13b216
  35. 28 Mar, 2004 1 commit
    • marco_g's avatar
      2004-03-29 Marco Gerards <metgerards@student.han.nl> · e56cdf21
      marco_g authored
      	Add support for the newworld apple macintosh (PPC).  This has been
      	tested on the powerbook 2000 only.  It only adds support for
      	generic ieee1275 functions, console and disk support.  This should
      	be easy to port to other architectures with support for Open
      	Firmware.
      
      	* configure.ac: Accept the powerpc as host_cpu.  In the case of
      	the powerpc cpu set the host_vendor to ieee1275.  Make sure the i386
      	specific tests are only executed while building for the i386.
      	Inverse test for crosscompile.
      	* genmk.rb (Utility): Allow assembler files.
      	* normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
      	* conf/powerpc-ieee1275.rmk: New file.
      	* disk/powerpc/ieee1275/ofdisk.c: Likewise.
      	* disk/powerpc/ieee1275/partition.c: Likewise.
      	* include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
      	* include/pupa/powerpc/ieee1275/console.h: Likewise.
      	* include/pupa/powerpc/ieee1275/partition.h: Likewise.
      	* include/pupa/powerpc/ieee1275/time.h: Likewise.
      	* include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
      	* include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
      	* include/pupa/powerpc/ieee1275/loader.h
      	* include/pupa/powerpc/setjmp.h: Likewise.
      	* include/pupa/powerpc/types.h: Likewise.
      	* kern/powerpc/ieee1275/init.c: Likewise.
      	* kern/powerpc/ieee1275/openfw.c: Likewise.
      	* term/powerpc/ieee1275/ofconsole.c: Likewise.
      
      	These files were written by Johan Rydberg
      	(jrydberg@night.trouble.net) and I only modified them slightly.
      
      	* boot/powerpc/ieee1275/cmain.c: New file.
      	* boot/powerpc/ieee1275/crt0.S: Likewise.
      	* boot/powerpc/ieee1275/ieee1275.c: Likewise.
      	* include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
      e56cdf21