1. 13 Jan, 2013 1 commit
    • Colin Watson's avatar
      Remove nested functions from PCI iterators. · ca3a7446
      Colin Watson authored
      * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
      passed to hook.  Update all callers to pass appropriate hook data.
      * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
      * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
      Remove NESTED_FUNC_ATTR from here and from all users.
      (grub_pci_iterate): Update prototype.
      * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
      instead of nested.  Rename to ...
      (grub_cs5536_find_iter): ... this.
      * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
      * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
      Likewise.
      * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
      Likewise.
      * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
      Likewise.
      * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
      Likewise.
      * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
      * grub-core/video/radeon_fuloong2e.c
      (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
      * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
      find_card): Likewise.
      * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
      Likewise.
      ca3a7446
  2. 30 Nov, 2011 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      Add missing const qualifiers. · bf3a3857
      Vladimir 'phcoder' Serbinenko authored
      	* grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
      	* grub-core/commands/lspci.c (grub_pci_classname): Likewise.
      	* grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
      	* grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
      	(grub_lvm_check_flag): Likewise.
      	* grub-core/efiemu/i386/coredetect.c
      	(grub_efiemu_get_default_core_name): Likewise
      	* grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
      	* grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
      	* grub-core/fs/ntfs.c (fixup): Likewise.
      	* grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
      	* grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
      	(fzap_lookup): Likewise.
      	(zap_lookup): Likewise.
      	* grub-core/gnulib/regcomp.c (init_dfa): Likewise.
      	* grub-core/lib/legacy_parse.c (check_option): Likewise.
      	* grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
      	* grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
      	(grub_freebsd_add_meta_module): Likewise.
      	(grub_cmd_freebsd_module): Likewise.
      	* grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
      	* grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
      	(grub_xnu_writetree_get_size): Likewise.
      	(grub_xnu_writetree_toheap_real): Likewise.
      	(grub_xnu_find_key): Likewise.
      	(grub_xnu_create_key): Likewise.
      	(grub_xnu_create_value): Likewise.
      	(grub_xnu_register_memory): Likewise.
      	(grub_xnu_check_os_bundle_required): Likewise.
      	(grub_xnu_scan_dir_for_kexts): Likewise.
      	(grub_xnu_load_kext_from_dir): Likewise.
      	* grub-core/normal/color.c (color_list): Likewise.
      	* grub-core/normal/completion.c (current_word): Likewise.
      	* grub-core/normal/menu_entry.c (insert_string): Likewise.
      	* grub-core/term/serial.c (grub_serial_find): Likewise.
      	* grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
      	* include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
      	Likewise.
      	* include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
      	(grub_freebsd_add_meta_module): Likewise.
      	* include/grub/lib/arg.h (grub_arg_option): Likewise.
      	* include/grub/net.h (grub_net_card_driver): Likewise.
      	(grub_net_card): Likewise.
      	(grub_net_app_protocol): Likewise.
      	* include/grub/parttool.h (grub_parttool_argdesc): Likewise.
      	* include/grub/serial.h (grub_serial_find): Likewise.
      	* include/grub/tparm.h (grub_terminfo_tparm): Likewise.
      	* include/grub/xnu.h (grub_xnu_create_key): Likewise.
      	(grub_xnu_create_value): Likewise.
      	(grub_xnu_find_key): Likewise.
      	(grub_xnu_scan_dir_for_kexts): Likewise.
      	(grub_xnu_load_kext_from_dir): Likewise.
      
      	* include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
      	* grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
      	* include/grub/zfs/zio_checksum.h (zio_checksum_info):
      	Moved from here ...
      	* grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
      bf3a3857
  3. 12 Apr, 2011 1 commit
  4. 15 Sep, 2010 1 commit
  5. 06 May, 2010 1 commit
  6. 03 Jan, 2010 1 commit
    • carles's avatar
      2010-01-03 Carles Pina i Estany <carles@pina.cat> · 77a79592
      carles authored
      	* commands/acpi.c: Gettextizze help strings and/or options. Include
      	`grub/i18n.h' if needed.
      	* commands/blocklist.c: Likewise.
      	* commands/boot.c: Likewise.
      	* commands/cat.c: Likewise.
      	* commands/cmp.c: Likewise.
      	* commands/configfile.c: Likewise.
      	* commands/crc.c: Likewise.
      	* commands/date.c: Likewise.
      	* commands/echo.c: Likewise.
      	* commands/efi/fixvideo.c: Likewise.
      	* commands/efi/loadbios.c: Likewise.
      	* commands/gptsync.c: Likewise.
      	* commands/halt.c: Likewise.
      	* commands/handler.c: Likewise.
      	* commands/hdparm.c: Likewise.
      	* commands/hexdump.c: Likewise.
      	* commands/i386/cpuid.c: Likewise.
      	* commands/i386/pc/drivemap.c: Likewise.
      	* commands/i386/pc/halt.c: Likewise.
      	* commands/i386/pc/pxecmd.c: Likewise.
      	* commands/i386/pc/vbeinfo.c: Likewise.
      	* commands/i386/pc/vbetest.c: Likewise.
      	* commands/ieee1275/suspend.c: Likewise.
      	* commands/keystatus.c: Likewise.
      	* commands/loadenv.c: Likewise.
      	* commands/ls.c: Likewise.
      	* commands/lsmmap.c: Likewise.
      	* commands/lspci.c: Likewise.
      	* commands/memrw.c: Likewise.
      	* commands/minicmd.c: Likewise.
      	* commands/parttool.c: Likewise.
      	* commands/password.c: Likewise.
      	* commands/probe.c: Likewise.
      	* commands/read.c: Likewise.
      	* commands/reboot.c: Likewise.
      	* commands/search.c: Likewise.
      	* commands/sleep.c: Likewise.
      	* commands/test.c: Likewise.
      	* commands/true.c: Likewise.
      	* commands/usbtest.c: Likewise.
      	* commands/videotest.c: Likewise.
      	* commands/xnu_uuid.c: Likewise.
      	* disk/loopback.c: Likewise.
      	* hello/hello.c: Likewise.
      	* loader/i386/bsd.c: Likewise.
      	* term/i386/pc/serial.c: Likewise.
      	* po/POTFILES: Add new files.
      77a79592
  7. 29 Dec, 2009 1 commit
  8. 26 Dec, 2009 1 commit
    • carles's avatar
      2009-12-26 Carles Pina i Estany <carles@pina.cat> · fdcdbb66
      carles authored
      	* commands/help.c (grub_cmd_help): Print the command name before the
      	summary.
      	(GRUB_MOD_INIT): Remove command name from the summary.
      	* kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
      	strig as summary.
      	* lib/arg.c (find_long): Print the command name before the summary.
      	* commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
      	summary.
      	* commands/blocklist.c (GRUB_MOD_INIT): Likewise.
      	* commands/cat.c (GRUB_MOD_INIT): Likewise.
      	* commands/cmp.c (GRUB_MOD_INIT): Likewise.
      	* commands/configfile.c (GRUB_MOD_INIT): Likewise.
      	* commands/crc.c (GRUB_MOD_INIT): Likewise.
      	* commands/date.c (GRUB_MOD_INIT): Likewise.
      	* commands/echo.c (GRUB_MOD_INIT): Likewise.
      	* commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
      	* commands/gptsync.c (GRUB_MOD_INIT): Likewise.
      	* commands/handler.c (GRUB_MOD_INIT): Likewise.
      	* commands/hdparm.c (GRUB_MOD_INIT): Likewise.
      	* commands/hexdump.c (GRUB_MOD_INIT): Likewise.
      	* commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
      	* commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
      	* commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
      	* commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
      	* commands/keystatus.c (GRUB_MOD_INIT): Likewise.
      	* commands/loadenv.c (GRUB_MOD_INIT): Likewise.
      	* commands/ls.c (GRUB_MOD_INIT): Likewise.
      	* commands/lspci.c (GRUB_MOD_INIT): Likewise.
      	* commands/memrw.c (GRUB_MOD_INIT): Likewise.
      	* commands/minicmd.c (GRUB_MOD_INIT): Likewise.
      	* commands/parttool.c (GRUB_MOD_INIT): Likewise.
      	* commands/password.c (GRUB_MOD_INIT): Likewise.
      	* commands/probe.c (GRUB_MOD_INIT): Likewise.
      	* commands/read.c (GRUB_MOD_INIT): Likewise.
      	* commands/search.c (GRUB_MOD_INIT): Likewise.
      	* commands/sleep.c (GRUB_MOD_INIT): Likewise.
      	* commands/test.c (GRUB_MOD_INIT): Likewise.
      	* commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
      	* efiemu/main.c (GRUB_MOD_INIT): Likewise.
      	* font/font_cmd.c (GRUB_MOD_INIT): Likewise.
      	* gettext/gettext.c (GRUB_MOD_INIT): Likewise.
      	* kern/corecmd.c (GRUB_MOD_INIT): Likewise.
      	* lib/arg.c (GRUB_MOD_INIT): Likewise.
      	* loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
      	* loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
      	* loader/xnu.c (GRUB_MOD_INIT): Likewise.
      	* mmap/mmap.c (GRUB_MOD_INIT): Likewise.
      	* term/terminfo.c (GRUB_MOD_INIT): Likewise.
      	* video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
      	* video/readers/png.c (GRUB_MOD_INIT): Likewise.
      	* video/readers/tga.c (GRUB_MOD_INIT): Likewise.
      fdcdbb66
  9. 23 Dec, 2009 1 commit
    • Felix Zielcke's avatar
      2009-12-23 Felix Zielcke <fzielcke@z-51.de> · a2c1332b
      Felix Zielcke authored
      	* commands/i386/pc/drivemap.c: Remove all trailing whitespace.
      	* commands/lspci.c: Likewise.
      	* commands/probe.c: Likewise.
      	* commands/xnu_uuid.c: Likewise.
      	* conf/i386-coreboot.rmk: Likewise.
      	* conf/i386-efi.rmk: Likewise.
      	* conf/i386-ieee1275.rmk: Likewise.
      	* conf/i386-pc.rmk: Likewise.
      	* conf/powerpc-ieee1275.rmk: Likewise.
      	* conf/sparc64-ieee1275.rmk: Likewise.
      	* conf/x86_64-efi.rmk: Likewise.
      	* fs/i386/pc/pxe.c: Likewise.
      	* gettext/gettext.c: Likewise.
      	* include/grub/efi/graphics_output.h: Likewise.
      	* include/grub/i386/pc/memory.h: Likewise.
      	* kern/env.c: Likewise.
      	* kern/i386/qemu/startup.S: Likewise.
      	* lib/i386/pc/biosnum.c: Likewise.
      	* lib/i386/relocator.c: Likewise.
      	* lib/i386/relocator_asm.S: Likewise.
      	* lib/relocator.c: Likewise.
      	* loader/i386/bsd.c: Likewise.
      	* loader/i386/multiboot.c: Likewise.
      	* loader/i386/pc/chainloader.c: Likewise.
      	* loader/i386/xnu.c: Likewise.
      	* loader/xnu.c: Likewise.
      	* normal/main.c: Likewise.
      	* normal/menu_text.c: Likewise.
      	* util/getroot.c: Likewise.
      	* util/grub-mkconfig_lib.in: Likewise.
      	* util/grub.d/00_header.in: Likewise.
      	* util/i386/pc/grub-mkimage.c: Likewise.
      	* util/mkisofs/eltorito.c: Likewise.
      	* util/mkisofs/exclude.h: Likewise.
      	* util/mkisofs/hash.c: Likewise.
      	* util/mkisofs/iso9660.h: Likewise.
      	* util/mkisofs/joliet.c: Likewise.
      	* util/mkisofs/mkisofs.c: Likewise.
      	* util/mkisofs/mkisofs.h: Likewise.
      	* util/mkisofs/multi.c: Likewise.
      	* util/mkisofs/name.c: Likewise.
      	* util/mkisofs/rock.c: Likewise.
      	* util/mkisofs/tree.c: Likewise.
      	* util/mkisofs/write.c: Likewise.
      	* video/efi_gop.c: Likewise.
      a2c1332b
  10. 22 Dec, 2009 3 commits
    • Vladimir 'phcoder' Serbinenko's avatar
      fbb8a887
    • carles's avatar
      2009-12-21 Carles Pina i Estany <carles@pina.cat> · 941903f2
      carles authored
       
      	* commands/acpi.c (options): Fix capitalizations and/or full stops.
      	(GRUB_MOD_INIT): Likewise.
      	* commands/boot.c (GRUB_MOD_INIT): Likewise.
      	* commands/cmp.c (grub_cmd_cmp): Likewise.
      	* commands/echo.c (options): Likewise.
      	* commands/efi/loadbios.c (enable_rom_area): Likewise.
      	(enable_rom_area): Likewise.
      	(GRUB_MOD_INIT): Likewise.
      	* commands/gptsync.c (GRUB_MOD_INIT): Likewise.
      	* commands/halt.c (GRUB_MOD_INIT): Improve the help message.
      	* commands/handler.c (GRUB_MOD_INIT): Likewise.
      	* commands/hdparm.c (options): Fix capitalizations and/or full stops.
      	* commands/hexdump.c (options): Likewise.
      	* commands/i386/cpuid.c (options): Likewise.
      	(GRUB_MOD_INIT): Likewise.
      	* commands/i386/pc/drivemap.c (options): Likewise.
      	(GRUB_MOD_INIT): Likewise.
      	* commands/i386/pc/halt (options): Likewise.
      	(GRUB_MOD_INIT): Likewise.
      	* commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
      	* commands/i386/pc/pxecmd.c (options): Likewise.
      	* commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
      	* commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
      	* commands/keystatus.c (options): Likewise.
      	(GRUB_MOD_INIT): Likewise.
      	* commands/loadenv.c (options): Likewise.
      	* commands/ls.c (options): Likewise.
      	* commands/lspci.c (GRUB_MOD_INIT): Likewise.
      	* commands/memrw.c (GRUB_MOD_INIT): Likewise.
      	* commands/minicmd.c (GRUB_MOD_INIT): Likewise.
      	* commands/parttool.c (helpmsg): Likewise.
      	* commands/probe.c (options): Likewise.
      	* commands/read.c (GRUB_MOD_INIT): Likewise.
      	* commands/reboot.c (GRUB_MOD_INIT): Likewise.
      	* commands/search.c (options): Likewise.
      	* commands/sleep.c (options): Likewise.
      	* commands/test.c (GRUB_MOD_INIT): Likewise.
      	* commands/true.c (GRUB_MOD_INIT): Likewise.
      	* commands/usbtest.c (GRUB_MOD_INIT): Likewise.
      	* commands/videotest.c (GRUB_MOD_INIT): Likewise.
      	* lib/arg.c (help_options): Likewise.
      941903f2
    • Vladimir 'phcoder' Serbinenko's avatar
      7d991d17
  11. 07 Nov, 2009 2 commits
  12. 03 Nov, 2009 1 commit
  13. 14 Oct, 2009 2 commits
  14. 04 May, 2009 1 commit
    • proski's avatar
      2009-05-03 Pavel Roskin <proski@gnu.org> · 4c402e73
      proski authored
      	* disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
      	suppress warnings.  It's no longer needed.
      	* disk/host.c: Likewise.
      	* disk/ata_pthru.c: Likewise.
      	* disk/loopback.c: Likewise.
      	* hook/datehook.c: Likewise.
      	* parttool/pcpart.c: Likewise.
      	* fs/i386/pc/pxe.c: Likewise.
      	* fs/ntfscomp.c: Likewise.
      	* efiemu/main.c: Likewise.
      	* mmap/mmap.c: Likewise.
      	* commands/crc.c: Likewise.
      	* commands/hexdump.c: Likewise.
      	* commands/hdparm.c: Likewise.
      	* commands/acpi.c: Likewise.
      	* commands/echo.c: Likewise.
      	* commands/minicmd.c: Likewise.
      	* commands/blocklist.c: Likewise.
      	* commands/memrw.c: Likewise.
      	* commands/loadenv.c: Likewise.
      	* commands/usbtest.c: Likewise.
      	* commands/lsmmap.c: Likewise.
      	* commands/boot.c: Likewise.
      	* commands/parttool.c: Likewise.
      	* commands/configfile.c: Likewise.
      	* commands/search.c: Likewise.
      	* commands/ieee1275/suspend.c: Likewise.
      	* commands/cat.c: Likewise.
      	* commands/i386/pc/pxecmd.c: Likewise.
      	* commands/i386/pc/play.c: Likewise.
      	* commands/i386/pc/halt.c: Likewise.
      	* commands/i386/pc/vbeinfo.c: Likewise.
      	* commands/i386/pc/vbetest.c: Likewise.
      	* commands/lspci.c: Likewise.
      	* commands/date.c: Likewise.
      	* commands/handler.c: Likewise.
      	* commands/ls.c: Likewise.
      	* commands/test.c: Likewise.
      	* commands/cmp.c: Likewise.
      	* commands/efi/loadbios.c: Likewise.
      	* commands/efi/fixvideo.c: Likewise.
      	* commands/halt.c: Likewise.
      	* commands/help.c: Likewise.
      	* commands/reboot.c: Likewise.
      	* hello/hello.c: Likewise.
      	* script/sh/main.c: Likewise.
      	* loader/xnu.c: Likewise.
      	* term/terminfo.c: Likewise.
      	* term/i386/pc/serial.c: Likewise.
      	* term/usb_keyboard.c: Likewise.
      4c402e73
  15. 17 Apr, 2009 1 commit
    • proski's avatar
      2009-04-17 Pavel Roskin <proski@gnu.org> · d1a282fc
      proski authored
      	* disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
      	* bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
      	* bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
      	* commands/lspci.c (grub_lspci_iter): Likewise.
      d1a282fc
  16. 21 Mar, 2009 1 commit
    • bean's avatar
      2009-03-21 Bean <bean123ch@gmail.com> · b1b797cb
      bean authored
      	* commands/blocklist.c: Add include file <grub/command.h>, remove
      	<grub/normal.h> and <grub/arg.h>.
      	(grub_cmd_blocklist): Use the new command interface.
      	(GRUB_MOD_INIT): Likewise.
      	(GRUB_MOD_FINI): Likewise.
      	* commands/boot.c: Likewise.
      	* commands/cat.c: Likewise.
      	* commands/cmp.c: Likewise.
      	* commands/configfile.c: Likewise.
      	* commands/crc.c: Likewise.
      	* commands/echo.c: Likewise.
      	* commands/halt.c: Likewise.
      	* commands/handler.c: Likewise.
      	* commands/hdparm.c: Likewise.
      	* commands/help.c: Likewise.
      	* commands/hexdump.c: Likewise.
      	* commands/loadenv.c: Likewise.
      	* commands/ls.c: Likewise.
      	* commands/lsmmap.c: Likewise.
      	* commands/lspci.c: Likewise.
      	* commands/loadenv.c: Likewise.
      	* commands/read.c: Likewise.
      	* commands/reboot.c: Likewise.
      	* commands/search.c: Likewise.
      	* commands/sleep.c: Likewise.
      	* commands/test.c: Likewise.
      	* commands/usbtest.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/pxecmd.c: Likewise.
      	* commands/i386/pc/vbeinfo.c: Likewise.
      	* commands/i386/pc/vbetest.c: Likewise.
      	* commands/ieee1275/suspend.c: Likewise.
      	* disk/loopback.c: Likewise.
      	* font/font_cmd.c: Likewise.
      	* hello/hello.c: Likewise.
      	* loader/efi/appleloader.c: Likewise.
      	* loader/efi/chainloader.c: Likewise.
      	* loader/i386/bsd.c: Likewise.
      	* loader/i386/efi/linux.c: Likewise.
      	* loader/i386/ieee1275/linux.c: Likewise.
      	* loader/i386/linux.c: Likewise.
      	* loader/i386/pc/chainloader.c: Likewise.
      	* loader/i386/pc/linux.c: Likewise.
      	* loader/powerpc/ieee1275/linux.c: Likewise.
      	* loader/multiboot_loader.c: Likewise.
      	* term/gfxterm.c: Likewise.
      	* term/i386/pc/serial.c: Likewise.
      	* term/terminfo.c: Likewise.
      
      	* term/i386/pc/vesafb.c: Removed <grub/arg.h>.
      	* term/i386/pc/vga.c: Likewise.
      	* video/readers/jpeg.c: Likewise.
      	* video/readers/png.c: Likewise.
      	* video/readers/tga.c: Likewise.
      
      	* util/grub-fstest (cmd_loopback): Removed.
      	(cmd_blocklist): Likewise.
      	(cmd_ls): Likewise.
      	(grub_register_command): Likewise.
      	(grub_unregister_command): Likewise.
      	(execute_command): Use grub_command_find to locate command and execute
      	it.
      
      	* include/grub/efi/chainloader.h: Removed.
      	* loader/efi/chainloader_normal.c: Likewise.
      	* loader/i386/bsd_normal.c: Likewise.
      	* loader/i386/pc/chainloader_normal.c: Likewise.
      	* loader/i386/pc/multiboot_normal.c: Likewise.
      	* loader/linux_normal.c: Likewise.
      	* loader/multiboot_loader_normal.c: Likewise.
      	* loader/powerpc/ieee1275/linux_normal.c: Likewise.
      
      	* gencmdlist.sh: Scan new registration command grub_register_extcmd
      	and grub_register_command_p1.
      
      	* conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
      	kern/command.c, lib/arg.c and commands/extcmd.c.
      	(pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
      	(minicmd_mod_SOURCES): New variable.
      	(minicmd_mod_CFLAGS): Likewise.
      	(minicmd_mod_LDFLAGS): Likewise.
      	(extcmd_mod_SOURCES): Likewise.
      	(extcmd_mod_CFLAGS): Likewise.
      	(extcmd_mod_LDFLAGS): Likewise.
      	(boot_mod_SOURCES): Removed.
      	(boot_mod_CFLAGS): Likewise.
      	(boot_mod_LDFLAGS): Likewise.
      
      	* conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
      	kern/corecmd.c.
      	(kernel_img_HEADERS): Add command.h.
      	(grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
      	commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
      	and lib/arg.c.
      	(pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
      	_multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
      	remove the corresponding normal mode command.
      	(normal_mod_SOURCES): Remove normal/arg.c.
      	* conf/i386-coreboot.rmk: Likewise.
      	* conf/i386-efi.rmk: Likewise.
      	* conf/i386-ieee1275.rmk: Likewise.
      	* conf/powerpc-ieee1275.rmk: Likewise.
      	* conf/x86_64-efi.rmk: Likewise.
      
      	* include/grub/arg.h: Move from here ...
      	* include/grub/lib/arg.h: ... to here.
      
      	* normal/arg.c: Move from here ...
      	* lib/arg.c: ... to here.
      
      	* commands/extcmd.c: New file.
      	* commands/minicmd.c: Likewise.
      	* include/grub/command.h: Likewise.
      	* include/grub/extcmd.h: Likewise.
      	* kern/command.c: Likewise.
      	* kern/corecmd.c: Likewise.
      
      	* kern/list.c (grub_list_iterate): Return int instead of void.
      	(grub_list_insert): New function.
      	(grub_prio_list_insert): Likewise.
      
      	* kern/rescue.c (grub_rescue_command): Removed.
      	(grub_rescue_command_list): Likewise.
      	(grub_rescue_register_command): Likewise.
      	(grub_rescue_unregister_command): Likewise.
      	(grub_rescue_cmd_boot): Move to minicmd.c
      	(grub_rescue_cmd_help): Likewise.
      	(grub_rescue_cmd_info): Likewise.
      	(grub_rescue_cmd_boot): Likewise.
      	(grub_rescue_cmd_testload): Likewise.
      	(grub_rescue_cmd_dump): Likewise.
      	(grub_rescue_cmd_rmmod): Likewise.
      	(grub_rescue_cmd_lsmod): Likewise.
      	(grub_rescue_cmd_exit): Likewise.
      	(grub_rescue_print_devices): Moved to corecmd.c.
      	(grub_rescue_print_files): Likewise.
      	(grub_rescue_cmd_ls): Likewise.
      	(grub_rescue_cmd_insmod): Likewise.
      	(grub_rescue_cmd_set): Likewise.
      	(grub_rescue_cmd_unset): Likewise.
      	(attemp_normal_mode): Use grub_command_find to get normal module.
      	(grub_enter_rescue_mode): Use grub_register_core_commands to register
      	commands, remove grub_rescue_regiter_command calls.
      
      	* normal/command.c (grub_regiser_command): Removed.
      	(grub_unregister_command): Likewise.
      	(grub_command_find): Likewise.
      	(grub_iterate_commands): Likewise.
      	(rescue_command): Likewise.
      	(export_command): Moved to corecmd.c.
      	(set_command): Removed.
      	(unset_command): Likewise.
      	(insmod_command): Likewise.
      	(rmmod_command): Likewise.
      	(lsmod_command): Likewise.
      	(grub_command_init): Likewise.
      
      	* normal/completion.c (iterate_command): Use cmd->prio to check for
      	active command.
      	(complete_arguments): Use grub_extcmd_t structure to find options.
      	(grub_normal_do_completion): Change function grub_iterate_commands to
      	grub_command_iterate.
      
      	* normal/execute.c (grub_script_execute_cmd): No need to parse
      	argument here.
      
      	* normal/main.c (grub_dyncmd_dispatcher): New function.
      	(read_command_list): Register unload commands as dyncmd.
      	(grub_cmd_normal): Use new command interface, register rescue,
      	unregister normal at entry, register normal, unregister rescue at exit.
      
      	* include/grub/list.h (grub_list_test_t): New type.
      	(grub_list_iterate): Return int instead of void.
      	(grub_list_insert): New function.
      	(GRUB_AS_NAMED_LIST_P): New macro.
      	(GRUB_AS_PRIO_LIST): Likewise.
      	(GRUB_AS_PRIO_LIST_P): Likewise.
      	(GRUB_PRIO_LIST_PRIO_MASK): New constant.
      	(GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
      	(grub_prio_list): New structure.
      	(grub_prio_list_insert): New function.
      	(grub_prio_list_remove): New inline function.
      
      	* include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
      	(GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
      	(GRUB_COMMAND_FLAG_MENU): Likewise.
      	(GRUB_COMMAND_FLAG_BOTH): Likewise.
      	(GRUB_COMMAND_FLAG_TITLE): Likewise.
      	(GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
      	(GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
      	(GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
      	(grub_command): Likewise.
      	(grub_register_command): Likewise.
      	(grub_command_find): Likewise.
      	(grub_iterate_commands): Likewise.
      	(grub_command_init): Likewise.
      	(grub_arg_parse): Likewise.
      	(grub_arg_show_help): Likewise.
      
      	* include/grub/rescue.h (grub_rescue_register_command): Removed.
      	(grub_rescue_unregister_command): Likewise.
      
      	* include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
      	grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
      	grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
      
      	* include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
      	grub_rescue_cmd_initrd.
      	* include/grub/i386/loader.h: Likewise.
      	* include/grub/x86_64/loader.h: Likewise.
      
      	* include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
      b1b797cb
  17. 14 Feb, 2009 1 commit
  18. 05 Apr, 2008 1 commit
  19. 04 Apr, 2008 1 commit
    • proski's avatar
      2008-04-04 Pavel Roskin <proski@gnu.org> · 4f657021
      proski authored
      	* commands/lspci.c (grub_pci_classes): Fix typos.
      	(grub_lspci_iter): Don't print func twice.  Print vendor ID
      	before device ID, as it's normally done.
      4f657021
  20. 02 Feb, 2008 1 commit
    • marco_g's avatar
      2008-02-02 Marco Gerards <marco@gnu.org> · 58c69220
      marco_g authored
      	* bus/pci.c: New file.
      
      	* include/grub/pci.h: Likewise.
      
      	* include/grub/i386/pc/pci.h: Likewise.
      
      	* commands/lspci.c: Likewise.
      
      	* conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
      	`lspci.mod'.
      	(pci_mod_SOURCES): New variable.
      	(pci_mod_CFLAGS): Likewise.
      	(pci_mod_LDFLAGS): Likewise.
      	(lspci_mod_SOURCES): Likewise.
      	(lspci_mod_CFLAGS): Likewise.
      	(lspci_mod_LDFLAGS): Likewise.
      58c69220