Implement automatic module license checking according to new GNU
guidelines. * grub-core/kern/dl.c (grub_dl_check_license): New function. (grub_dl_load_core): Use grub_dl_check_license. * include/grub/dl.h (GRUB_MOD_SECTION): New macro. (GRUB_MOD_LICENSE): Likewise. (GRUB_MOD_DUAL_LICENSE): Likewise. All modules updated.
This commit is contained in:
		
							parent
							
								
									2a9bc0169e
								
							
						
					
					
						commit
						e745cf0ca6
					
				
					 175 changed files with 447 additions and 2 deletions
				
			
		
							
								
								
									
										12
									
								
								ChangeLog
									
										
									
									
									
								
							
							
						
						
									
										12
									
								
								ChangeLog
									
										
									
									
									
								
							|  | @ -1,3 +1,15 @@ | ||||||
|  | 2011-04-11  Vladimir Serbinenko  <phcoder@gmail.com> | ||||||
|  | 
 | ||||||
|  | 	Implement automatic module license checking according to new GNU | ||||||
|  | 	guidelines. | ||||||
|  | 
 | ||||||
|  | 	* grub-core/kern/dl.c (grub_dl_check_license): New function. | ||||||
|  | 	(grub_dl_load_core): Use grub_dl_check_license. | ||||||
|  | 	* include/grub/dl.h (GRUB_MOD_SECTION): New macro. | ||||||
|  | 	(GRUB_MOD_LICENSE): Likewise. | ||||||
|  | 	(GRUB_MOD_DUAL_LICENSE): Likewise. | ||||||
|  | 	All modules updated. | ||||||
|  | 
 | ||||||
| 2011-04-11  Colin Watson  <cjwatson@ubuntu.com> | 2011-04-11  Colin Watson  <cjwatson@ubuntu.com> | ||||||
| 
 | 
 | ||||||
| 	* grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set | 	* grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set | ||||||
|  |  | ||||||
|  | @ -22,6 +22,10 @@ | ||||||
| #include <grub/time.h> | #include <grub/time.h> | ||||||
| #include <grub/ata.h> | #include <grub/ata.h> | ||||||
| 
 | 
 | ||||||
|  | #include <grub/dl.h> | ||||||
|  | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| int | int | ||||||
| grub_cs5536_find (grub_pci_device_t *devp) | grub_cs5536_find (grub_pci_device_t *devp) | ||||||
| { | { | ||||||
|  |  | ||||||
|  | @ -21,6 +21,8 @@ | ||||||
| #include <grub/pci.h> | #include <grub/pci.h> | ||||||
| #include <grub/mm.h> | #include <grub/mm.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| /* FIXME: correctly support 64-bit architectures.  */ | /* FIXME: correctly support 64-bit architectures.  */ | ||||||
| /* #if GRUB_TARGET_SIZEOF_VOID_P == 4 */ | /* #if GRUB_TARGET_SIZEOF_VOID_P == 4 */ | ||||||
| struct grub_pci_dma_chunk * | struct grub_pci_dma_chunk * | ||||||
|  |  | ||||||
|  | @ -24,6 +24,8 @@ | ||||||
| #include <grub/usb.h> | #include <grub/usb.h> | ||||||
| #include <grub/dl.h> | #include <grub/dl.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
|  |  | ||||||
| static struct grub_usb_controller_dev usb_controller = | static struct grub_usb_controller_dev usb_controller = | ||||||
| { | { | ||||||
|  |  | ||||||
|  | @ -29,6 +29,8 @@ | ||||||
| #include <grub/cs5536.h> | #include <grub/cs5536.h> | ||||||
| #include <grub/loader.h> | #include <grub/loader.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| struct grub_ohci_hcca | struct grub_ohci_hcca | ||||||
| { | { | ||||||
|   /* Pointers to Interrupt Endpoint Descriptors.  Not used by
 |   /* Pointers to Interrupt Endpoint Descriptors.  Not used by
 | ||||||
|  |  | ||||||
|  | @ -18,6 +18,9 @@ | ||||||
| 
 | 
 | ||||||
| #include <grub/serial.h> | #include <grub/serial.h> | ||||||
| #include <grub/usbserial.h> | #include <grub/usbserial.h> | ||||||
|  | #include <grub/dl.h> | ||||||
|  | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
| 
 | 
 | ||||||
| void | void | ||||||
| grub_usbserial_fini (struct grub_serial_port *port) | grub_usbserial_fini (struct grub_serial_port *port) | ||||||
|  |  | ||||||
|  | @ -24,6 +24,8 @@ | ||||||
| #include <grub/usb.h> | #include <grub/usb.h> | ||||||
| #include <grub/usbserial.h> | #include <grub/usbserial.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| enum | enum | ||||||
|   { |   { | ||||||
|     GRUB_FTDI_MODEM_CTRL = 0x01, |     GRUB_FTDI_MODEM_CTRL = 0x01, | ||||||
|  |  | ||||||
|  | @ -24,6 +24,8 @@ | ||||||
| #include <grub/usb.h> | #include <grub/usb.h> | ||||||
| #include <grub/usbserial.h> | #include <grub/usbserial.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| /* Convert speed to divisor.  */ | /* Convert speed to divisor.  */ | ||||||
| static grub_uint32_t | static grub_uint32_t | ||||||
| is_speed_supported (unsigned int speed) | is_speed_supported (unsigned int speed) | ||||||
|  |  | ||||||
|  | @ -26,6 +26,8 @@ | ||||||
| #include <grub/i386/io.h> | #include <grub/i386/io.h> | ||||||
| #include <grub/time.h> | #include <grub/time.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| #define GRUB_UHCI_IOMASK	(0x7FF << 5) | #define GRUB_UHCI_IOMASK	(0x7FF << 5) | ||||||
| 
 | 
 | ||||||
| #define N_QH  256 | #define N_QH  256 | ||||||
|  |  | ||||||
|  | @ -24,6 +24,8 @@ | ||||||
| #include <grub/list.h> | #include <grub/list.h> | ||||||
| #include <grub/term.h> | #include <grub/term.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| static grub_usb_controller_dev_t grub_usb_list; | static grub_usb_controller_dev_t grub_usb_list; | ||||||
| static struct grub_usb_attach_desc *attach_hooks; | static struct grub_usb_attach_desc *attach_hooks; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -33,6 +33,8 @@ | ||||||
| #include <grub/efi/api.h> | #include <grub/efi/api.h> | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| static const struct grub_arg_option options[] = { | static const struct grub_arg_option options[] = { | ||||||
|   {"exclude", 'x', 0, |   {"exclude", 'x', 0, | ||||||
|    N_("Don't load host tables specified by comma-separated list."), |    N_("Don't load host tables specified by comma-separated list."), | ||||||
|  |  | ||||||
|  | @ -26,6 +26,8 @@ | ||||||
| #include <grub/command.h> | #include <grub/command.h> | ||||||
| #include <grub/i18n.h> | #include <grub/i18n.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| static grub_err_t | static grub_err_t | ||||||
| grub_cmd_blocklist (grub_command_t cmd __attribute__ ((unused)), | grub_cmd_blocklist (grub_command_t cmd __attribute__ ((unused)), | ||||||
| 		    int argc, char **args) | 		    int argc, char **args) | ||||||
|  |  | ||||||
|  | @ -25,6 +25,8 @@ | ||||||
| #include <grub/mm.h> | #include <grub/mm.h> | ||||||
| #include <grub/i18n.h> | #include <grub/i18n.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| static grub_err_t (*grub_loader_boot_func) (void); | static grub_err_t (*grub_loader_boot_func) (void); | ||||||
| static grub_err_t (*grub_loader_unload_func) (void); | static grub_err_t (*grub_loader_unload_func) (void); | ||||||
| static int grub_loader_noreturn; | static int grub_loader_noreturn; | ||||||
|  |  | ||||||
|  | @ -25,6 +25,8 @@ | ||||||
| #include <grub/extcmd.h> | #include <grub/extcmd.h> | ||||||
| #include <grub/i18n.h> | #include <grub/i18n.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| static const struct grub_arg_option options[] = | static const struct grub_arg_option options[] = | ||||||
|   { |   { | ||||||
|     {"dos", -1, 0, N_("Accept DOS-style CR/NL line endings."), 0, 0}, |     {"dos", -1, 0, N_("Accept DOS-style CR/NL line endings."), 0, 0}, | ||||||
|  |  | ||||||
|  | @ -24,6 +24,8 @@ | ||||||
| #include <grub/command.h> | #include <grub/command.h> | ||||||
| #include <grub/i18n.h> | #include <grub/i18n.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| #define BUFFER_SIZE 512 | #define BUFFER_SIZE 512 | ||||||
| 
 | 
 | ||||||
| static grub_err_t | static grub_err_t | ||||||
|  |  | ||||||
|  | @ -24,6 +24,8 @@ | ||||||
| #include <grub/command.h> | #include <grub/command.h> | ||||||
| #include <grub/i18n.h> | #include <grub/i18n.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| static grub_err_t | static grub_err_t | ||||||
| grub_cmd_source (grub_command_t cmd, int argc, char **args) | grub_cmd_source (grub_command_t cmd, int argc, char **args) | ||||||
| { | { | ||||||
|  |  | ||||||
|  | @ -24,6 +24,8 @@ | ||||||
| #include <grub/command.h> | #include <grub/command.h> | ||||||
| #include <grub/i18n.h> | #include <grub/i18n.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| #define GRUB_DATETIME_SET_YEAR		1 | #define GRUB_DATETIME_SET_YEAR		1 | ||||||
| #define GRUB_DATETIME_SET_MONTH		2 | #define GRUB_DATETIME_SET_MONTH		2 | ||||||
| #define GRUB_DATETIME_SET_DAY		4 | #define GRUB_DATETIME_SET_DAY		4 | ||||||
|  |  | ||||||
|  | @ -23,6 +23,8 @@ | ||||||
| #include <grub/i18n.h> | #include <grub/i18n.h> | ||||||
| #include <grub/term.h> | #include <grub/term.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| static const struct grub_arg_option options[] = | static const struct grub_arg_option options[] = | ||||||
|   { |   { | ||||||
|     {0, 'n', 0, N_("Do not output the trailing newline."), 0, 0}, |     {0, 'n', 0, N_("Do not output the trailing newline."), 0, 0}, | ||||||
|  |  | ||||||
|  | @ -24,6 +24,8 @@ | ||||||
| #include <grub/command.h> | #include <grub/command.h> | ||||||
| #include <grub/i18n.h> | #include <grub/i18n.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| static struct grub_video_patch | static struct grub_video_patch | ||||||
| { | { | ||||||
|   const char *name; |   const char *name; | ||||||
|  |  | ||||||
|  | @ -25,6 +25,8 @@ | ||||||
| #include <grub/command.h> | #include <grub/command.h> | ||||||
| #include <grub/i18n.h> | #include <grub/i18n.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| static grub_efi_guid_t acpi_guid = GRUB_EFI_ACPI_TABLE_GUID; | static grub_efi_guid_t acpi_guid = GRUB_EFI_ACPI_TABLE_GUID; | ||||||
| static grub_efi_guid_t acpi2_guid = GRUB_EFI_ACPI_20_TABLE_GUID; | static grub_efi_guid_t acpi2_guid = GRUB_EFI_ACPI_20_TABLE_GUID; | ||||||
| static grub_efi_guid_t smbios_guid = GRUB_EFI_SMBIOS_TABLE_GUID; | static grub_efi_guid_t smbios_guid = GRUB_EFI_SMBIOS_TABLE_GUID; | ||||||
|  |  | ||||||
|  | @ -23,6 +23,8 @@ | ||||||
| #include <grub/efi/efi.h> | #include <grub/efi/efi.h> | ||||||
| #include <grub/command.h> | #include <grub/command.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| #define ADD_MEMORY_DESCRIPTOR(desc, size)	\ | #define ADD_MEMORY_DESCRIPTOR(desc, size)	\ | ||||||
|   ((grub_efi_memory_descriptor_t *) ((char *) (desc) + (size))) |   ((grub_efi_memory_descriptor_t *) ((char *) (desc) + (size))) | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -18,12 +18,15 @@ | ||||||
|  */ |  */ | ||||||
| #include <grub/types.h> | #include <grub/types.h> | ||||||
| #include <grub/mm.h> | #include <grub/mm.h> | ||||||
|  | #include <grub/dl.h> | ||||||
| #include <grub/misc.h> | #include <grub/misc.h> | ||||||
| #include <grub/normal.h> | #include <grub/normal.h> | ||||||
| #include <grub/charset.h> | #include <grub/charset.h> | ||||||
| #include <grub/efi/api.h> | #include <grub/efi/api.h> | ||||||
| #include <grub/efi/efi.h> | #include <grub/efi/efi.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| struct guid_mapping | struct guid_mapping | ||||||
| { | { | ||||||
|   grub_efi_guid_t guid; |   grub_efi_guid_t guid; | ||||||
|  |  | ||||||
|  | @ -23,6 +23,9 @@ | ||||||
| #include <grub/charset.h> | #include <grub/charset.h> | ||||||
| #include <grub/efi/api.h> | #include <grub/efi/api.h> | ||||||
| #include <grub/efi/efi.h> | #include <grub/efi/efi.h> | ||||||
|  | #include <grub/dl.h> | ||||||
|  | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
| 
 | 
 | ||||||
| static void | static void | ||||||
| disp_sal (void *table) | disp_sal (void *table) | ||||||
|  |  | ||||||
|  | @ -22,6 +22,9 @@ | ||||||
| #include <grub/misc.h> | #include <grub/misc.h> | ||||||
| #include <grub/extcmd.h> | #include <grub/extcmd.h> | ||||||
| #include <grub/script_sh.h> | #include <grub/script_sh.h> | ||||||
|  | #include <grub/dl.h> | ||||||
|  | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
| 
 | 
 | ||||||
| grub_err_t | grub_err_t | ||||||
| grub_extcmd_dispatcher (struct grub_command *cmd, int argc, char **args, | grub_extcmd_dispatcher (struct grub_command *cmd, int argc, char **args, | ||||||
|  |  | ||||||
|  | @ -29,6 +29,8 @@ | ||||||
| #include <grub/fs.h> | #include <grub/fs.h> | ||||||
| #include <grub/i18n.h> | #include <grub/i18n.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| /* Convert a LBA address to a CHS address in the INT 13 format.  */ | /* Convert a LBA address to a CHS address in the INT 13 format.  */ | ||||||
| /* Taken from grub1. */ | /* Taken from grub1. */ | ||||||
| /* XXX: use hardcoded geometry of C = 1024, H = 255, S = 63.
 | /* XXX: use hardcoded geometry of C = 1024, H = 255, S = 63.
 | ||||||
|  |  | ||||||
|  | @ -22,6 +22,8 @@ | ||||||
| #include <grub/misc.h> | #include <grub/misc.h> | ||||||
| #include <grub/i18n.h> | #include <grub/i18n.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| static grub_err_t | static grub_err_t | ||||||
| grub_cmd_halt (grub_command_t cmd __attribute__ ((unused)), | grub_cmd_halt (grub_command_t cmd __attribute__ ((unused)), | ||||||
| 	       int argc __attribute__ ((unused)), | 	       int argc __attribute__ ((unused)), | ||||||
|  |  | ||||||
|  | @ -26,6 +26,8 @@ | ||||||
| #include <grub/normal.h> | #include <grub/normal.h> | ||||||
| #include <grub/i18n.h> | #include <grub/i18n.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| static const struct grub_arg_option options[] = { | static const struct grub_arg_option options[] = { | ||||||
|   {"hash", 'h', 0, N_("Specify hash to use."), N_("HASH"), ARG_TYPE_STRING}, |   {"hash", 'h', 0, N_("Specify hash to use."), N_("HASH"), ARG_TYPE_STRING}, | ||||||
|   {"check", 'c', 0, N_("Check hash list file."), N_("FILE"), ARG_TYPE_STRING}, |   {"check", 'c', 0, N_("Check hash list file."), N_("FILE"), ARG_TYPE_STRING}, | ||||||
|  |  | ||||||
|  | @ -26,6 +26,8 @@ | ||||||
| #include <grub/extcmd.h> | #include <grub/extcmd.h> | ||||||
| #include <grub/i18n.h> | #include <grub/i18n.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| static const struct grub_arg_option options[] = { | static const struct grub_arg_option options[] = { | ||||||
|   {"apm",             'B', 0, N_("Set Advanced Power Management\n" |   {"apm",             'B', 0, N_("Set Advanced Power Management\n" | ||||||
| 			      "(1=low, ..., 254=high, 255=off)."), | 			      "(1=low, ..., 254=high, 255=off)."), | ||||||
|  |  | ||||||
|  | @ -26,6 +26,8 @@ | ||||||
| #include <grub/normal.h> | #include <grub/normal.h> | ||||||
| #include <grub/charset.h> | #include <grub/charset.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| static grub_err_t | static grub_err_t | ||||||
| grub_cmd_help (grub_extcmd_context_t ctxt __attribute__ ((unused)), int argc, | grub_cmd_help (grub_extcmd_context_t ctxt __attribute__ ((unused)), int argc, | ||||||
| 	       char **args) | 	       char **args) | ||||||
|  |  | ||||||
|  | @ -25,6 +25,8 @@ | ||||||
| #include <grub/extcmd.h> | #include <grub/extcmd.h> | ||||||
| #include <grub/i18n.h> | #include <grub/i18n.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| static const struct grub_arg_option options[] = { | static const struct grub_arg_option options[] = { | ||||||
|   {"skip", 's', 0, N_("Skip offset bytes from the beginning of file."), 0, |   {"skip", 's', 0, N_("Skip offset bytes from the beginning of file."), 0, | ||||||
|    ARG_TYPE_INT}, |    ARG_TYPE_INT}, | ||||||
|  |  | ||||||
|  | @ -21,6 +21,8 @@ | ||||||
| #include <grub/misc.h> | #include <grub/misc.h> | ||||||
| #include <grub/cmos.h> | #include <grub/cmos.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| static grub_err_t | static grub_err_t | ||||||
| parse_args (int argc, char *argv[], int *byte, int *bit) | parse_args (int argc, char *argv[], int *byte, int *bit) | ||||||
| { | { | ||||||
|  |  | ||||||
|  | @ -27,6 +27,8 @@ | ||||||
| #include <grub/i386/cpuid.h> | #include <grub/i386/cpuid.h> | ||||||
| #include <grub/i18n.h> | #include <grub/i18n.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| #define cpuid(num,a,b,c,d) \ | #define cpuid(num,a,b,c,d) \ | ||||||
|   asm volatile ("xchgl %%ebx, %1; cpuid; xchgl %%ebx, %1" \ |   asm volatile ("xchgl %%ebx, %1; cpuid; xchgl %%ebx, %1" \ | ||||||
| 		: "=a" (a), "=r" (b), "=c" (c), "=d" (d)  \ | 		: "=a" (a), "=r" (b), "=c" (c), "=d" (d)  \ | ||||||
|  |  | ||||||
|  | @ -29,6 +29,7 @@ | ||||||
| #include <grub/memory.h> | #include <grub/memory.h> | ||||||
| #include <grub/machine/memory.h> | #include <grub/machine/memory.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
| 
 | 
 | ||||||
| /* Real mode IVT slot (seg:off far pointer) for interrupt 0x13.  */ | /* Real mode IVT slot (seg:off far pointer) for interrupt 0x13.  */ | ||||||
| static grub_uint32_t *const int13slot = UINT_TO_PTR (4 * 0x13); | static grub_uint32_t *const int13slot = UINT_TO_PTR (4 * 0x13); | ||||||
|  |  | ||||||
|  | @ -24,6 +24,8 @@ | ||||||
| #include <grub/machine/int.h> | #include <grub/machine/int.h> | ||||||
| #include <grub/acpi.h> | #include <grub/acpi.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| static const struct grub_arg_option options[] = | static const struct grub_arg_option options[] = | ||||||
|   { |   { | ||||||
|     {"no-apm", 'n', 0, N_("Do not use APM to halt the computer."), 0, 0}, |     {"no-apm", 'n', 0, N_("Do not use APM to halt the computer."), 0, 0}, | ||||||
|  |  | ||||||
|  | @ -22,6 +22,8 @@ | ||||||
| #include <grub/command.h> | #include <grub/command.h> | ||||||
| #include <grub/i18n.h> | #include <grub/i18n.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| int | int | ||||||
| grub_apm_get_info (struct grub_apm_info *info) | grub_apm_get_info (struct grub_apm_info *info) | ||||||
| { | { | ||||||
|  |  | ||||||
|  | @ -29,6 +29,8 @@ | ||||||
| #include <grub/command.h> | #include <grub/command.h> | ||||||
| #include <grub/i18n.h> | #include <grub/i18n.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| #define BASE_TEMPO (60 * GRUB_TICKS_PER_SECOND) | #define BASE_TEMPO (60 * GRUB_TICKS_PER_SECOND) | ||||||
| 
 | 
 | ||||||
| /* The speaker port.  */ | /* The speaker port.  */ | ||||||
|  |  | ||||||
|  | @ -24,6 +24,8 @@ | ||||||
| #include <grub/command.h> | #include <grub/command.h> | ||||||
| #include <grub/i18n.h> | #include <grub/i18n.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| static grub_err_t | static grub_err_t | ||||||
| grub_cmd_pxe_unload (grub_command_t cmd __attribute__ ((unused)), | grub_cmd_pxe_unload (grub_command_t cmd __attribute__ ((unused)), | ||||||
| 		     int argc __attribute__ ((unused)), | 		     int argc __attribute__ ((unused)), | ||||||
|  |  | ||||||
|  | @ -27,6 +27,8 @@ | ||||||
| #include <grub/cpu/io.h> | #include <grub/cpu/io.h> | ||||||
| #include <grub/loader.h> | #include <grub/loader.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv2+"); | ||||||
|  | 
 | ||||||
| static char sendkey[0x20]; | static char sendkey[0x20]; | ||||||
| /* Length of sendkey.  */ | /* Length of sendkey.  */ | ||||||
| static int keylen = 0; | static int keylen = 0; | ||||||
|  |  | ||||||
|  | @ -24,6 +24,8 @@ | ||||||
| #include <grub/command.h> | #include <grub/command.h> | ||||||
| #include <grub/i18n.h> | #include <grub/i18n.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| static grub_err_t | static grub_err_t | ||||||
| grub_cmd_suspend (grub_command_t cmd __attribute__ ((unused)), | grub_cmd_suspend (grub_command_t cmd __attribute__ ((unused)), | ||||||
| 		  int argc __attribute__ ((unused)), | 		  int argc __attribute__ ((unused)), | ||||||
|  |  | ||||||
|  | @ -24,6 +24,8 @@ | ||||||
| #include <grub/cpu/io.h> | #include <grub/cpu/io.h> | ||||||
| #include <grub/i18n.h> | #include <grub/i18n.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| static grub_extcmd_t cmd_read_byte, cmd_read_word, cmd_read_dword; | static grub_extcmd_t cmd_read_byte, cmd_read_word, cmd_read_dword; | ||||||
| static grub_command_t cmd_write_byte, cmd_write_word, cmd_write_dword; | static grub_command_t cmd_write_byte, cmd_write_word, cmd_write_dword; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -28,6 +28,8 @@ | ||||||
| #include <grub/i18n.h> | #include <grub/i18n.h> | ||||||
| #include <grub/file.h> | #include <grub/file.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| static struct grub_keyboard_layout layout_us = { | static struct grub_keyboard_layout layout_us = { | ||||||
|   .keyboard_map = { |   .keyboard_map = { | ||||||
|     /* Keyboard errors. Handled by driver.  */ |     /* Keyboard errors. Handled by driver.  */ | ||||||
|  |  | ||||||
|  | @ -23,6 +23,8 @@ | ||||||
| #include <grub/term.h> | #include <grub/term.h> | ||||||
| #include <grub/i18n.h> | #include <grub/i18n.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| static const struct grub_arg_option options[] = | static const struct grub_arg_option options[] = | ||||||
|   { |   { | ||||||
|     {"shift", 's', 0, N_("Check Shift key."), 0, 0}, |     {"shift", 's', 0, N_("Check Shift key."), 0, 0}, | ||||||
|  |  | ||||||
|  | @ -33,6 +33,8 @@ | ||||||
| #include <grub/disk.h> | #include <grub/disk.h> | ||||||
| #include <grub/partition.h> | #include <grub/partition.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| static grub_err_t | static grub_err_t | ||||||
| legacy_file (const char *filename) | legacy_file (const char *filename) | ||||||
| { | { | ||||||
|  |  | ||||||
|  | @ -28,6 +28,8 @@ | ||||||
| #include <grub/extcmd.h> | #include <grub/extcmd.h> | ||||||
| #include <grub/i18n.h> | #include <grub/i18n.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| static const struct grub_arg_option options[] = | static const struct grub_arg_option options[] = | ||||||
|   { |   { | ||||||
|     {"file", 'f', 0, N_("Specify filename."), 0, ARG_TYPE_PATHNAME}, |     {"file", 'f', 0, N_("Specify filename."), 0, ARG_TYPE_PATHNAME}, | ||||||
|  |  | ||||||
|  | @ -32,6 +32,8 @@ | ||||||
| #include <grub/datetime.h> | #include <grub/datetime.h> | ||||||
| #include <grub/i18n.h> | #include <grub/i18n.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| static const struct grub_arg_option options[] = | static const struct grub_arg_option options[] = | ||||||
|   { |   { | ||||||
|     {"long", 'l', 0, N_("Show a long list with more detailed information."), 0, 0}, |     {"long", 'l', 0, N_("Show a long list with more detailed information."), 0, 0}, | ||||||
|  |  | ||||||
|  | @ -25,6 +25,8 @@ | ||||||
| #include <grub/i18n.h> | #include <grub/i18n.h> | ||||||
| #include <grub/dl.h> | #include <grub/dl.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| static void | static void | ||||||
| print_strn (grub_uint8_t *str, grub_size_t len) | print_strn (grub_uint8_t *str, grub_size_t len) | ||||||
| { | { | ||||||
|  |  | ||||||
|  | @ -22,6 +22,8 @@ | ||||||
| #include <grub/i18n.h> | #include <grub/i18n.h> | ||||||
| #include <grub/memory.h> | #include <grub/memory.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| static const char *names[] = | static const char *names[] = | ||||||
|   { |   { | ||||||
|     [GRUB_MEMORY_AVAILABLE] = "available",  |     [GRUB_MEMORY_AVAILABLE] = "available",  | ||||||
|  |  | ||||||
|  | @ -23,6 +23,8 @@ | ||||||
| #include <grub/extcmd.h> | #include <grub/extcmd.h> | ||||||
| #include <grub/i18n.h> | #include <grub/i18n.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| struct grub_pci_classname | struct grub_pci_classname | ||||||
| { | { | ||||||
|   int class; |   int class; | ||||||
|  |  | ||||||
|  | @ -23,6 +23,8 @@ | ||||||
| #include <grub/env.h> | #include <grub/env.h> | ||||||
| #include <grub/i18n.h> | #include <grub/i18n.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| static grub_extcmd_t cmd_read_byte, cmd_read_word, cmd_read_dword; | static grub_extcmd_t cmd_read_byte, cmd_read_word, cmd_read_dword; | ||||||
| static grub_command_t cmd_write_byte, cmd_write_word, cmd_write_dword; | static grub_command_t cmd_write_byte, cmd_write_word, cmd_write_dword; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -29,6 +29,8 @@ | ||||||
| #include <grub/command.h> | #include <grub/command.h> | ||||||
| #include <grub/i18n.h> | #include <grub/i18n.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| /* cat FILE */ | /* cat FILE */ | ||||||
| static grub_err_t | static grub_err_t | ||||||
| grub_mini_cmd_cat (struct grub_command *cmd __attribute__ ((unused)), | grub_mini_cmd_cat (struct grub_command *cmd __attribute__ ((unused)), | ||||||
|  |  | ||||||
|  | @ -24,6 +24,8 @@ | ||||||
| #include <grub/command.h> | #include <grub/command.h> | ||||||
| #include <grub/cs5536.h> | #include <grub/cs5536.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| static grub_err_t | static grub_err_t | ||||||
| grub_cmd_lsspd (grub_command_t cmd __attribute__ ((unused)), | grub_cmd_lsspd (grub_command_t cmd __attribute__ ((unused)), | ||||||
| 		int argc __attribute__ ((unused)), | 		int argc __attribute__ ((unused)), | ||||||
|  |  | ||||||
|  | @ -31,6 +31,8 @@ | ||||||
| #include <grub/command.h> | #include <grub/command.h> | ||||||
| #include <grub/i18n.h> | #include <grub/i18n.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv2+"); | ||||||
|  | 
 | ||||||
| static struct grub_parttool *parts = 0; | static struct grub_parttool *parts = 0; | ||||||
| static int curhandle = 0; | static int curhandle = 0; | ||||||
| static grub_dl_t mymod; | static grub_dl_t mymod; | ||||||
|  |  | ||||||
|  | @ -26,6 +26,8 @@ | ||||||
| #include <grub/dl.h> | #include <grub/dl.h> | ||||||
| #include <grub/i18n.h> | #include <grub/i18n.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| static grub_dl_t my_mod; | static grub_dl_t my_mod; | ||||||
| 
 | 
 | ||||||
| static grub_err_t | static grub_err_t | ||||||
|  |  | ||||||
|  | @ -26,6 +26,8 @@ | ||||||
| #include <grub/dl.h> | #include <grub/dl.h> | ||||||
| #include <grub/i18n.h> | #include <grub/i18n.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| static grub_dl_t my_mod; | static grub_dl_t my_mod; | ||||||
| 
 | 
 | ||||||
| struct pbkdf2_password | struct pbkdf2_password | ||||||
|  |  | ||||||
|  | @ -32,6 +32,8 @@ | ||||||
| #include <grub/extcmd.h> | #include <grub/extcmd.h> | ||||||
| #include <grub/i18n.h> | #include <grub/i18n.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| static const struct grub_arg_option options[] = | static const struct grub_arg_option options[] = | ||||||
|   { |   { | ||||||
|     {"set",             's', 0, |     {"set",             's', 0, | ||||||
|  |  | ||||||
|  | @ -26,6 +26,8 @@ | ||||||
| #include <grub/command.h> | #include <grub/command.h> | ||||||
| #include <grub/i18n.h> | #include <grub/i18n.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| static char * | static char * | ||||||
| grub_getline (void) | grub_getline (void) | ||||||
| { | { | ||||||
|  |  | ||||||
|  | @ -22,6 +22,8 @@ | ||||||
| #include <grub/misc.h> | #include <grub/misc.h> | ||||||
| #include <grub/i18n.h> | #include <grub/i18n.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| static grub_err_t | static grub_err_t | ||||||
| grub_cmd_reboot (grub_command_t cmd __attribute__ ((unused)), | grub_cmd_reboot (grub_command_t cmd __attribute__ ((unused)), | ||||||
| 		 int argc __attribute__ ((unused)), | 		 int argc __attribute__ ((unused)), | ||||||
|  |  | ||||||
|  | @ -27,6 +27,8 @@ | ||||||
| #include <grub/script_sh.h> | #include <grub/script_sh.h> | ||||||
| #include <regex.h> | #include <regex.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| static const struct grub_arg_option options[] = | static const struct grub_arg_option options[] = | ||||||
|   { |   { | ||||||
|     { "set", 's', GRUB_ARG_OPTION_REPEATABLE, |     { "set", 's', GRUB_ARG_OPTION_REPEATABLE, | ||||||
|  |  | ||||||
|  | @ -31,6 +31,8 @@ | ||||||
| #include <grub/disk.h> | #include <grub/disk.h> | ||||||
| #include <grub/partition.h> | #include <grub/partition.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| void | void | ||||||
| FUNC_NAME (const char *key, const char *var, int no_floppy, | FUNC_NAME (const char *key, const char *var, int no_floppy, | ||||||
| 	   char **hints, unsigned nhints) | 	   char **hints, unsigned nhints) | ||||||
|  |  | ||||||
|  | @ -27,6 +27,8 @@ | ||||||
| #include <grub/search.h> | #include <grub/search.h> | ||||||
| #include <grub/i18n.h> | #include <grub/i18n.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| static const struct grub_arg_option options[] = | static const struct grub_arg_option options[] = | ||||||
|   { |   { | ||||||
|     {"file",		'f', 0, N_("Search devices by a file."), 0, 0}, |     {"file",		'f', 0, N_("Search devices by a file."), 0, 0}, | ||||||
|  |  | ||||||
|  | @ -25,6 +25,8 @@ | ||||||
| #include <grub/mm.h> | #include <grub/mm.h> | ||||||
| #include <grub/i18n.h> | #include <grub/i18n.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| struct pci_register | struct pci_register | ||||||
| { | { | ||||||
|   const char *name; |   const char *name; | ||||||
|  |  | ||||||
|  | @ -25,6 +25,8 @@ | ||||||
| #include <grub/extcmd.h> | #include <grub/extcmd.h> | ||||||
| #include <grub/i18n.h> | #include <grub/i18n.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| static const struct grub_arg_option options[] = | static const struct grub_arg_option options[] = | ||||||
|   { |   { | ||||||
|     {"verbose", 'v', 0, N_("Verbose countdown."), 0, 0}, |     {"verbose", 'v', 0, N_("Verbose countdown."), 0, 0}, | ||||||
|  |  | ||||||
|  | @ -23,6 +23,8 @@ | ||||||
| #include <grub/i18n.h> | #include <grub/i18n.h> | ||||||
| #include <grub/misc.h> | #include <grub/misc.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| struct grub_term_autoload *grub_term_input_autoload = NULL; | struct grub_term_autoload *grub_term_input_autoload = NULL; | ||||||
| struct grub_term_autoload *grub_term_output_autoload = NULL; | struct grub_term_autoload *grub_term_output_autoload = NULL; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -27,6 +27,8 @@ | ||||||
| #include <grub/command.h> | #include <grub/command.h> | ||||||
| #include <grub/i18n.h> | #include <grub/i18n.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| /* A simple implementation for signed numbers. */ | /* A simple implementation for signed numbers. */ | ||||||
| static int | static int | ||||||
| grub_strtosl (char *arg, char **end, int base) | grub_strtosl (char *arg, char **end, int base) | ||||||
|  |  | ||||||
|  | @ -29,6 +29,8 @@ | ||||||
| #include <grub/command.h> | #include <grub/command.h> | ||||||
| #include <grub/i18n.h> | #include <grub/i18n.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| static grub_err_t | static grub_err_t | ||||||
| grub_cmd_testload (struct grub_command *cmd __attribute__ ((unused)), | grub_cmd_testload (struct grub_command *cmd __attribute__ ((unused)), | ||||||
| 		   int argc, char *argv[]) | 		   int argc, char *argv[]) | ||||||
|  |  | ||||||
|  | @ -21,6 +21,8 @@ | ||||||
| #include <grub/command.h> | #include <grub/command.h> | ||||||
| #include <grub/i18n.h> | #include <grub/i18n.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| static grub_err_t | static grub_err_t | ||||||
| grub_cmd_true (struct grub_command *cmd __attribute__ ((unused)), | grub_cmd_true (struct grub_command *cmd __attribute__ ((unused)), | ||||||
| 	       int argc __attribute__ ((unused)), | 	       int argc __attribute__ ((unused)), | ||||||
|  |  | ||||||
|  | @ -27,6 +27,8 @@ | ||||||
| #include <grub/command.h> | #include <grub/command.h> | ||||||
| #include <grub/i18n.h> | #include <grub/i18n.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| static const char *usb_classes[] = | static const char *usb_classes[] = | ||||||
|   { |   { | ||||||
|     "Unknown", |     "Unknown", | ||||||
|  |  | ||||||
|  | @ -25,6 +25,8 @@ | ||||||
| #include <grub/command.h> | #include <grub/command.h> | ||||||
| #include <grub/i18n.h> | #include <grub/i18n.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| static unsigned height, width, depth;  | static unsigned height, width, depth;  | ||||||
| 
 | 
 | ||||||
| static int | static int | ||||||
|  |  | ||||||
|  | @ -28,6 +28,8 @@ | ||||||
| #include <grub/gfxmenu_view.h> | #include <grub/gfxmenu_view.h> | ||||||
| #include <grub/env.h> | #include <grub/env.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| static grub_err_t | static grub_err_t | ||||||
| grub_cmd_videotest (grub_command_t cmd __attribute__ ((unused)), | grub_cmd_videotest (grub_command_t cmd __attribute__ ((unused)), | ||||||
|                     int argc, char **args) |                     int argc, char **args) | ||||||
|  |  | ||||||
|  | @ -34,6 +34,8 @@ | ||||||
| #include <grub/i18n.h> | #include <grub/i18n.h> | ||||||
| #include <grub/crypto.h> | #include <grub/crypto.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| /* This prefix is used by xnu and boot-132 to hash
 | /* This prefix is used by xnu and boot-132 to hash
 | ||||||
|    together with volume serial. */ |    together with volume serial. */ | ||||||
| static grub_uint8_t hash_prefix[16] | static grub_uint8_t hash_prefix[16] | ||||||
|  |  | ||||||
|  | @ -26,6 +26,8 @@ | ||||||
| #include <grub/scsi.h> | #include <grub/scsi.h> | ||||||
| #include <grub/cs5536.h> | #include <grub/cs5536.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| /* At the moment, only two IDE ports are supported.  */ | /* At the moment, only two IDE ports are supported.  */ | ||||||
| static const grub_port_t grub_ata_ioaddress[] = { GRUB_ATA_CH0_PORT1, | static const grub_port_t grub_ata_ioaddress[] = { GRUB_ATA_CH0_PORT1, | ||||||
| 						  GRUB_ATA_CH1_PORT1 }; | 						  GRUB_ATA_CH1_PORT1 }; | ||||||
|  |  | ||||||
|  | @ -22,6 +22,7 @@ | ||||||
| #include <grub/dl.h> | #include <grub/dl.h> | ||||||
| #include <grub/mm.h> | #include <grub/mm.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
| 
 | 
 | ||||||
| /* ATA pass through support, used by hdparm.mod.  */ | /* ATA pass through support, used by hdparm.mod.  */ | ||||||
| static grub_err_t | static grub_err_t | ||||||
|  |  | ||||||
|  | @ -24,6 +24,8 @@ | ||||||
| #include <grub/misc.h> | #include <grub/misc.h> | ||||||
| #include <grub/raid.h> | #include <grub/raid.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| #define NV_SIGNATURES		4 | #define NV_SIGNATURES		4 | ||||||
| 
 | 
 | ||||||
| #define NV_IDLE			0 | #define NV_IDLE			0 | ||||||
|  |  | ||||||
|  | @ -28,6 +28,8 @@ | ||||||
| #include <grub/err.h> | #include <grub/err.h> | ||||||
| #include <grub/term.h> | #include <grub/term.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| static int cd_drive = 0; | static int cd_drive = 0; | ||||||
| static int grub_biosdisk_rw_int13_extensions (int ah, int drive, void *dap); | static int grub_biosdisk_rw_int13_extensions (int ah, int drive, void *dap); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -23,6 +23,8 @@ | ||||||
| #include <grub/dl.h> | #include <grub/dl.h> | ||||||
| #include <grub/ieee1275/ieee1275.h> | #include <grub/ieee1275/ieee1275.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| struct grub_nand_data | struct grub_nand_data | ||||||
| { | { | ||||||
|   grub_ieee1275_ihandle_t handle; |   grub_ieee1275_ihandle_t handle; | ||||||
|  |  | ||||||
|  | @ -25,6 +25,8 @@ | ||||||
| #include <grub/extcmd.h> | #include <grub/extcmd.h> | ||||||
| #include <grub/i18n.h> | #include <grub/i18n.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| struct grub_loopback | struct grub_loopback | ||||||
| { | { | ||||||
|   char *devname; |   char *devname; | ||||||
|  |  | ||||||
|  | @ -28,6 +28,8 @@ | ||||||
| #include <grub/emu/misc.h> | #include <grub/emu/misc.h> | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| static struct grub_lvm_vg *vg_list; | static struct grub_lvm_vg *vg_list; | ||||||
| static int lv_count; | static int lv_count; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -24,6 +24,8 @@ | ||||||
| #include <grub/misc.h> | #include <grub/misc.h> | ||||||
| #include <grub/raid.h> | #include <grub/raid.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| /* Linux RAID on disk structures and constants,
 | /* Linux RAID on disk structures and constants,
 | ||||||
|    copied from include/linux/raid/md_p.h.  */ |    copied from include/linux/raid/md_p.h.  */ | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -27,6 +27,8 @@ | ||||||
| /* Linux RAID on disk structures and constants,
 | /* Linux RAID on disk structures and constants,
 | ||||||
|    copied from include/linux/raid/md_p.h.  */ |    copied from include/linux/raid/md_p.h.  */ | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| #define RESERVED_BYTES			(64 * 1024) | #define RESERVED_BYTES			(64 * 1024) | ||||||
| #define RESERVED_SECTORS		(RESERVED_BYTES / 512) | #define RESERVED_SECTORS		(RESERVED_BYTES / 512) | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -24,6 +24,8 @@ | ||||||
| #include <grub/mm.h> | #include <grub/mm.h> | ||||||
| #include <grub/types.h> | #include <grub/types.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| static char *memdisk_addr; | static char *memdisk_addr; | ||||||
| static grub_off_t memdisk_size = 0; | static grub_off_t memdisk_size = 0; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -27,6 +27,8 @@ | ||||||
| #include <grub/util/misc.h> | #include <grub/util/misc.h> | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| /* Linked list of RAID arrays. */ | /* Linked list of RAID arrays. */ | ||||||
| static struct grub_raid_array *array_list; | static struct grub_raid_array *array_list; | ||||||
| grub_raid5_recover_func_t grub_raid5_recover_func; | grub_raid5_recover_func_t grub_raid5_recover_func; | ||||||
|  |  | ||||||
|  | @ -24,6 +24,8 @@ | ||||||
| #include <grub/misc.h> | #include <grub/misc.h> | ||||||
| #include <grub/raid.h> | #include <grub/raid.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| static grub_err_t | static grub_err_t | ||||||
| grub_raid5_recover (struct grub_raid_array *array, int disknr, | grub_raid5_recover (struct grub_raid_array *array, int disknr, | ||||||
|                     char *buf, grub_disk_addr_t sector, int size) |                     char *buf, grub_disk_addr_t sector, int size) | ||||||
|  |  | ||||||
|  | @ -24,6 +24,8 @@ | ||||||
| #include <grub/misc.h> | #include <grub/misc.h> | ||||||
| #include <grub/raid.h> | #include <grub/raid.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| static grub_uint8_t raid6_table1[256][256]; | static grub_uint8_t raid6_table1[256][256]; | ||||||
| static grub_uint8_t raid6_table2[256][256]; | static grub_uint8_t raid6_table2[256][256]; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -27,6 +27,8 @@ | ||||||
| #include <grub/scsicmd.h> | #include <grub/scsicmd.h> | ||||||
| #include <grub/time.h> | #include <grub/time.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
|  |  | ||||||
| static grub_scsi_dev_t grub_scsi_dev_list; | static grub_scsi_dev_t grub_scsi_dev_list; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -24,6 +24,8 @@ | ||||||
| #include <grub/scsicmd.h> | #include <grub/scsicmd.h> | ||||||
| #include <grub/misc.h> | #include <grub/misc.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| #define GRUB_USBMS_DIRECTION_BIT	7 | #define GRUB_USBMS_DIRECTION_BIT	7 | ||||||
| 
 | 
 | ||||||
| /* The USB Mass Storage Command Block Wrapper.  */ | /* The USB Mass Storage Command Block Wrapper.  */ | ||||||
|  |  | ||||||
|  | @ -32,6 +32,8 @@ | ||||||
| #include <grub/command.h> | #include <grub/command.h> | ||||||
| #include <grub/i18n.h> | #include <grub/i18n.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| /* System table. Two version depending on mode */ | /* System table. Two version depending on mode */ | ||||||
| grub_efi_system_table32_t *grub_efiemu_system_table32 = 0; | grub_efi_system_table32_t *grub_efiemu_system_table32 = 0; | ||||||
| grub_efi_system_table64_t *grub_efiemu_system_table64 = 0; | grub_efi_system_table64_t *grub_efiemu_system_table64 = 0; | ||||||
|  |  | ||||||
|  | @ -30,6 +30,8 @@ | ||||||
| #include <grub/unicode.h> | #include <grub/unicode.h> | ||||||
| #include <grub/fontformat.h> | #include <grub/fontformat.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| #ifdef USE_ASCII_FAILBACK | #ifdef USE_ASCII_FAILBACK | ||||||
| #include "ascii.h" | #include "ascii.h" | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
|  | @ -26,6 +26,8 @@ | ||||||
| #include <grub/types.h> | #include <grub/types.h> | ||||||
| #include <grub/fshelp.h> | #include <grub/fshelp.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| /* The affs bootblock.  */ | /* The affs bootblock.  */ | ||||||
| struct grub_affs_bblock | struct grub_affs_bblock | ||||||
| { | { | ||||||
|  |  | ||||||
|  | @ -26,6 +26,8 @@ | ||||||
| #include <grub/types.h> | #include <grub/types.h> | ||||||
| #include <grub/fshelp.h> | #include <grub/fshelp.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| #ifdef MODE_BIGENDIAN | #ifdef MODE_BIGENDIAN | ||||||
| #define GRUB_AFS_FSNAME_SUFFIX "_be" | #define GRUB_AFS_FSNAME_SUFFIX "_be" | ||||||
| #else | #else | ||||||
|  |  | ||||||
|  | @ -25,6 +25,8 @@ | ||||||
| #include <grub/dl.h> | #include <grub/dl.h> | ||||||
| #include <grub/types.h> | #include <grub/types.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| #define BTRFS_SIGNATURE "_BHRfS_M" | #define BTRFS_SIGNATURE "_BHRfS_M" | ||||||
| 
 | 
 | ||||||
| struct btrfs_superblock | struct btrfs_superblock | ||||||
|  |  | ||||||
|  | @ -23,6 +23,8 @@ | ||||||
| #include <grub/disk.h> | #include <grub/disk.h> | ||||||
| #include <grub/dl.h> | #include <grub/dl.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| #ifndef MODE_USTAR | #ifndef MODE_USTAR | ||||||
| /* cpio support */ | /* cpio support */ | ||||||
| #define	MAGIC_BCPIO	070707 | #define	MAGIC_BCPIO	070707 | ||||||
|  |  | ||||||
|  | @ -51,6 +51,8 @@ | ||||||
| #include <grub/types.h> | #include <grub/types.h> | ||||||
| #include <grub/fshelp.h> | #include <grub/fshelp.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| /* Log2 size of ext2 block in 512 blocks.  */ | /* Log2 size of ext2 block in 512 blocks.  */ | ||||||
| #define LOG2_EXT2_BLOCK_SIZE(data)			\ | #define LOG2_EXT2_BLOCK_SIZE(data)			\ | ||||||
| 	(grub_le_to_cpu32 (data->sblock.log2_block_size) + 1) | 	(grub_le_to_cpu32 (data->sblock.log2_block_size) + 1) | ||||||
|  |  | ||||||
|  | @ -27,6 +27,8 @@ | ||||||
| #include <grub/dl.h> | #include <grub/dl.h> | ||||||
| #include <grub/charset.h> | #include <grub/charset.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| #define GRUB_FAT_DIR_ENTRY_SIZE	32 | #define GRUB_FAT_DIR_ENTRY_SIZE	32 | ||||||
| 
 | 
 | ||||||
| #define GRUB_FAT_ATTR_READ_ONLY	0x01 | #define GRUB_FAT_ATTR_READ_ONLY	0x01 | ||||||
|  |  | ||||||
|  | @ -22,7 +22,9 @@ | ||||||
| #include <grub/misc.h> | #include <grub/misc.h> | ||||||
| #include <grub/disk.h> | #include <grub/disk.h> | ||||||
| #include <grub/fshelp.h> | #include <grub/fshelp.h> | ||||||
|  | #include <grub/dl.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
| 
 | 
 | ||||||
| /* Lookup the node PATH.  The node ROOTNODE describes the root of the
 | /* Lookup the node PATH.  The node ROOTNODE describes the root of the
 | ||||||
|    directory tree.  The node found is returned in FOUNDNODE, which is |    directory tree.  The node found is returned in FOUNDNODE, which is | ||||||
|  |  | ||||||
|  | @ -29,6 +29,8 @@ | ||||||
| #include <grub/types.h> | #include <grub/types.h> | ||||||
| #include <grub/hfs.h> | #include <grub/hfs.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| #define	GRUB_HFS_SBLOCK		2 | #define	GRUB_HFS_SBLOCK		2 | ||||||
| #define GRUB_HFS_EMBED_HFSPLUS_SIG 0x482B | #define GRUB_HFS_EMBED_HFSPLUS_SIG 0x482B | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -30,6 +30,8 @@ | ||||||
| #include <grub/hfs.h> | #include <grub/hfs.h> | ||||||
| #include <grub/charset.h> | #include <grub/charset.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| #define GRUB_HFSPLUS_MAGIC 0x482B | #define GRUB_HFSPLUS_MAGIC 0x482B | ||||||
| #define GRUB_HFSPLUSX_MAGIC 0x4858 | #define GRUB_HFSPLUSX_MAGIC 0x4858 | ||||||
| #define GRUB_HFSPLUS_SBLOCK 2 | #define GRUB_HFSPLUS_SBLOCK 2 | ||||||
|  |  | ||||||
|  | @ -30,6 +30,8 @@ | ||||||
| #include <grub/machine/int.h> | #include <grub/machine/int.h> | ||||||
| #include <grub/machine/memory.h> | #include <grub/machine/memory.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| #define SEGMENT(x)	((x) >> 4) | #define SEGMENT(x)	((x) >> 4) | ||||||
| #define OFFSET(x)	((x) & 0xF) | #define OFFSET(x)	((x) & 0xF) | ||||||
| #define SEGOFS(x)	((SEGMENT(x) << 16) + OFFSET(x)) | #define SEGOFS(x)	((SEGMENT(x) << 16) + OFFSET(x)) | ||||||
|  |  | ||||||
|  | @ -28,6 +28,8 @@ | ||||||
| #include <grub/fshelp.h> | #include <grub/fshelp.h> | ||||||
| #include <grub/charset.h> | #include <grub/charset.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| #define GRUB_ISO9660_FSTYPE_DIR		0040000 | #define GRUB_ISO9660_FSTYPE_DIR		0040000 | ||||||
| #define GRUB_ISO9660_FSTYPE_REG		0100000 | #define GRUB_ISO9660_FSTYPE_REG		0100000 | ||||||
| #define GRUB_ISO9660_FSTYPE_SYMLINK	0120000 | #define GRUB_ISO9660_FSTYPE_SYMLINK	0120000 | ||||||
|  |  | ||||||
|  | @ -26,6 +26,8 @@ | ||||||
| #include <grub/types.h> | #include <grub/types.h> | ||||||
| #include <grub/charset.h> | #include <grub/charset.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| #define GRUB_JFS_MAX_SYMLNK_CNT	8 | #define GRUB_JFS_MAX_SYMLNK_CNT	8 | ||||||
| #define GRUB_JFS_FILETYPE_MASK	0170000 | #define GRUB_JFS_FILETYPE_MASK	0170000 | ||||||
| #define GRUB_JFS_FILETYPE_REG	0100000 | #define GRUB_JFS_FILETYPE_REG	0100000 | ||||||
|  |  | ||||||
|  | @ -25,6 +25,8 @@ | ||||||
| #include <grub/dl.h> | #include <grub/dl.h> | ||||||
| #include <grub/types.h> | #include <grub/types.h> | ||||||
| 
 | 
 | ||||||
|  | GRUB_MOD_LICENSE ("GPLv3+"); | ||||||
|  | 
 | ||||||
| #ifdef MODE_MINIX2 | #ifdef MODE_MINIX2 | ||||||
| #define GRUB_MINIX_MAGIC	0x2468 | #define GRUB_MINIX_MAGIC	0x2468 | ||||||
| #define GRUB_MINIX_MAGIC_30	0x2478 | #define GRUB_MINIX_MAGIC_30	0x2478 | ||||||
|  |  | ||||||
Some files were not shown because too many files have changed in this diff Show more
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue