Vladimir 'phcoder' Serbinenko 
								
							 
						 
						
							
							
							
							
								
							
							
								e8d0a8f85c 
								
							 
						 
						
							
							
								
								Merge mainline into bidi  
							
							
							
						 
						
							2010-07-02 19:35:07 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Colin Watson 
								
							 
						 
						
							
							
							
							
								
							
							
								50f0bcdab5 
								
							 
						 
						
							
							
								
								* include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,  
							
							... 
							
							
							
							suitable for using within the format argument of printf when
converting grub_size_t.
* disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
"x" to convert grub_size_t arguments. 
							
						 
						
							2010-07-02 18:04:54 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Vladimir 'phcoder' Serbinenko 
								
							 
						 
						
							
							
							
							
								
							
							
								919e37b0ac 
								
							 
						 
						
							
							
								
								Inline setcolorstate and move grub_Cls out of kernel.img  
							
							
							
						 
						
							2010-07-02 18:20:48 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Colin Watson 
								
							 
						 
						
							
							
							
							
								
							
							
								e03ed6c1ee 
								
							 
						 
						
							
							
								
								* include/grub/misc.h (grub_reboot): Declare as noreturn.  
							
							... 
							
							
							
							* kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
fails.
(grub_halt): Likewise.
* kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
reset-all fails.
(grub_halt): Don't return, even if all of shut-down, power-off, and
poweroff fail. 
							
						 
						
							2010-07-02 13:47:14 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Vladimir 'phcoder' Serbinenko 
								
							 
						 
						
							
							
							
							
								
							
							
								ec1d04f1de 
								
							 
						 
						
							
							
								
								Yeeloong firmware port.  
							
							... 
							
							
							
							* boot/mips/yeeloong/fwstart.S: New file.
	* bus/cs5536.c (gpiodump): New const.
	(set_io_space): New function.
	(set_iod): Likewise.
	(set_p2d): Likewise.
	(grub_cs5536_init_geode): Likewise.
	* commands/mips/yeeloong/lsspd.c: New file.
	* conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
	(serial_mod_SOURCES): New variable.
	(serial_mod_CFLAGS): Likewise.
	(serial_mod_LDFLAGS): Likewise.
	* conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
	term/terminfo.c and term/tparm.c.
	(pkglib_IMAGES): Add fwstart.img.
	(fwstart_img_SOURCES): New variable.
	(fwstart_img_CFLAGS): Likewise.
	(fwstart_img_ASFLAGS): Likewise.
	(fwstart_img_LDFLAGS): Likewise.
	(fwstart_img_FORMAT): Likewise.
	(pkglib_MODULES): Add lsspd.mod.
	(lsspd_mod_SOURCES): New variable.
	(lsspd_mod_CFLAGS): Likewise.
	(lsspd_mod_LDFLAGS): Likewise.
	(pkglib_MODULES): Add halt.mod.
	(halt_mod_SOURCES): New variable.
	(halt_mod_CFLAGS): Likewise.
	(halt_mod_LDFLAGS): Likewise.
	* conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
	(serial_mod_SOURCES): Removed.
	(serial_mod_CFLAGS): Likewise.
	(serial_mod_LDFLAGS): Likewise.
	* disk/ata.c (check_device): New function.
	(grub_ata_device_initialize): Use check_device.
	(grub_ata_iterate): Recheck devices.
	(grub_ata_open): Likewise.
	(grub_atapi_iterate): Likewise.
	(grub_atapi_open): Likewise.
	* include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
	(GRUB_ATA_CH1_PORT1): Likewise.
	(GRUB_ATA_CH0_PORT2): Likewise.
	(GRUB_ATA_CH1_PORT2): Likewise.
	* include/grub/mips/loongson.h: New file.
	* include/grub/mips/yeeloong/ec.h: Likewise.
	* include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
	(GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
	(GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
	* include/grub/misc.h (grub_halt): Declare as noreturn.
	* include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
	(UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
	(UART_ENABLE_FIFO_TRIGGER1): New definition.
	(UART_ENABLE_DTRRTS): Likewise.
	(UART_ENABLE_MODEM): Removed.
	(UART_ENABLE_OUT2): New const.
	* include/grub/term.h (grub_term_register_input_active): New function.
	(grub_term_register_output_active): Likewise.
	* kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
	argument.
	* kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
	(init_pci): New function.
	(grub_machine_init): Execute platform init when firmware. Init serial.
	(grub_halt): Implement.
	(grub_exit): Likewise.
	(grub_reboot): Likewise.
	* term/serial.c (serial_hw_init): Update macros.
	[GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
	* util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
	(image_targets): New target mipsel-yeeloong-flash.
	(generate_image): Support IMAGE_YEELOONG_FLASH.
	* video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
	(grub_video_sm712_setup): Init card.
	(grub_video_sm712_set_palette): Removed.
	* video/sm712_init.c: New file. 
							
						 
						
							2010-07-01 03:16:56 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Vladimir 'phcoder' Serbinenko 
								
							 
						 
						
							
							
							
							
								
							
							
								b7e79e8a6a 
								
							 
						 
						
							
							
								
								Merge mainline into yeeloongfw  
							
							
							
						 
						
							2010-06-30 02:30:05 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Manoel R. Abranches 
								
							 
						 
						
							
							
							
							
								
							
							
								3ec6213b17 
								
							 
						 
						
							
							
								
								Clean Debug messages  
							
							
							
						 
						
							2010-06-29 06:50:15 -03:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Vladimir 'phcoder' Serbinenko 
								
							 
						 
						
							
							
							
							
								
							
							
								4045dee1b9 
								
							 
						 
						
							
							
								
								Use normal parser for menu entries.  
							
							... 
							
							
							
							Reported by: Thomas Frauendorfer
	* include/grub/parser.h (grub_parser_execute): Don't export.
	* normal/menu.c (grub_menu_execute_entry_real): New function.
	(grub_menu_execute_entry): Use grub_menu_execute_entry_real. 
							
						 
						
							2010-06-28 12:42:50 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Vladimir 'phcoder' Serbinenko 
								
							 
						 
						
							
							
							
							
								
							
							
								2a1d16154d 
								
							 
						 
						
							
							
								
								Merge mainline into newreloc  
							
							
							
						 
						
							2010-06-24 21:22:40 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Manoel R. Abranches 
								
							 
						 
						
							
							
							
							
								
							
							
								1edb7287ff 
								
							 
						 
						
							
							
								
								Parse ipv6 header on incoming packets.  
							
							
							
						 
						
							2010-06-23 14:49:46 -03:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Manoel R. Abranches 
								
							 
						 
						
							
							
							
							
								
							
							
								8c599704a7 
								
							 
						 
						
							
							
								
								Network code specific for ieee1275 machines.  
							
							... 
							
							
							
							Used to parse BOOTP packet from the server and use write/read on the network card.
May be removed later. 
							
						 
						
							2010-06-21 19:20:55 -03:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Manoel R. Abranches 
								
							 
						 
						
							
							
							
							
								
							
							
								60cdb895da 
								
							 
						 
						
							
							
								
								Adaptation for the new protocols and interface structs.  
							
							... 
							
							
							
							implementation of receive in the protocols.
Also all unwanted packets are discarded. 
							
						 
						
							2010-06-21 19:15:45 -03:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Manoel R. Abranches 
								
							 
						 
						
							
							
							
							
								
							
							
								c3639ae731 
								
							 
						 
						
							
							
								
								File manipulation. Based in OF implementation.  
							
							... 
							
							
							
							For debug porpouse and will be changed later. 
							
						 
						
							2010-06-21 19:13:26 -03:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Manoel R. Abranches 
								
							 
						 
						
							
							
							
							
								
							
							
								d17a9fea4a 
								
							 
						 
						
							
							
								
								Add interface struct for communication between protocols and protocols stack.  
							
							... 
							
							
							
							Changed the protocols structs to use one struct for each layer. 
							
						 
						
							2010-06-21 19:05:14 -03:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									starous 
								
							 
						 
						
							
							
							
							
								
							
							
								12cd7239d9 
								
							 
						 
						
							
							
								
								Faster OHCI, USB hub support, UHCI portstatus corr.  
							
							
							
						 
						
							2010-06-21 21:12:20 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Vladimir 'phcoder' Serbinenko 
								
							 
						 
						
							
							
							
							
								
							
							
								8e50ec9f05 
								
							 
						 
						
							
							
								
								Merge mainline into cirrus  
							
							
							
						 
						
							2010-06-21 02:15:49 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Vladimir 'phcoder' Serbinenko 
								
							 
						 
						
							
							
							
							
								
							
							
								de24ab9b0d 
								
							 
						 
						
							
							
								
								Fix grub_vga_palette_write  
							
							
							
						 
						
							2010-06-21 02:07:45 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Vladimir 'phcoder' Serbinenko 
								
							 
						 
						
							
							
							
							
								
							
							
								4d88b9aec7 
								
							 
						 
						
							
							
								
								Init cirrus ourselves instead of calling videobios  
							
							
							
						 
						
							2010-06-21 01:02:48 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Vladimir 'phcoder' Serbinenko 
								
							 
						 
						
							
							
							
							
								
							
							
								8c0346515d 
								
							 
						 
						
							
							
								
								Add GRUB_PCI_REG_STATUS_*_ENABLE  
							
							
							
						 
						
							2010-06-21 01:01:26 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Vladimir 'phcoder' Serbinenko 
								
							 
						 
						
							
							
							
							
								
							
							
								d246fc0368 
								
							 
						 
						
							
							
								
								Improve macroification of VGA registers.  
							
							
							
						 
						
							2010-06-21 00:58:43 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Vladimir 'phcoder' Serbinenko 
								
							 
						 
						
							
							
							
							
								
							
							
								05e5187978 
								
							 
						 
						
							
							
								
								Cirrus 5446 and Bochs video cards support.  
							
							... 
							
							
							
							* conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
	video_bochs.mod
	(video_cirrus_mod_SOURCES): New variable.
	(video_cirrus_mod_CFLAGS): Likewise.
	(video_cirrus_mod_LDFLAGS): Likewise.
	(video_bochs_mod_SOURCES): Likewise.
	(video_bochs_mod_CFLAGS): Likewise.
	(video_bochs_mod_LDFLAGS): Likewise.
	* include/grub/vga.h: New file.
	* include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
	(grub_video_fb_set_page_t): New type.
	(grub_video_fb_setup): New prototype.
	(grub_video_fb_swap_buffers): Likewise.
	(grub_video_fb_get_info_and_fini): Likewise.
	* term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
	(CRTC_DATA_PORT): Likewise.
	(CRTC_CURSOR): Likewise.
	(CRTC_CURSOR_ADDR_HIGH): Likewise.
	(CRTC_CURSOR_ADDR_LOW): Likewise.
	(CRTC_CURSOR_DISABLE): Likewise.
	(update_cursor): Use grub_vga_cr_write.
	(grub_vga_text_setcursor): Likewise.
	* video/bochs.c: New file.
	* video/fb/video_fb.c (render_target): Moved into framebuffer variable.
	(palette): Likewise.
	(palette_size): Likewise.
	(framebuffer): New variable.
	(grub_video_fb_init): Use 'framebuffer'.
	(grub_video_fb_fini): Likewise.
	(grub_video_fb_get_info): Likewise.
	(grub_video_fb_get_palette): Likewise.
	(grub_video_fb_set_palette): Likewise.
	(grub_video_fb_set_viewport): Likewise.
	(grub_video_fb_get_viewport): Likewise.
	(grub_video_fb_map_color): Likewise.
	(grub_video_fb_map_rgb): Likewise.
	(grub_video_fb_map_rgba): Likewise.
	(grub_video_fb_unmap_color): Likewise.
	(grub_video_fb_unmap_color_int): Likewise.
	(grub_video_fb_fill_rect): Likewise.
	(grub_video_fb_blit_bitmap): Likewise.
	(grub_video_fb_blit_render_target): Likewise.
	(grub_video_fb_scroll): Likewise.
	(grub_video_fb_create_render_target): Likewise.
	(grub_video_fb_doublebuf_blit_init): Likewise.
	(grub_video_fb_set_active_render_target): Handle doublebuffering.
	(doublebuf_pageflipping_update_screen): New function.
	(doublebuf_pageflipping_init): Likewise.
	(grub_video_fb_setup): Likewise.
	(grub_video_fb_swap_buffers): Likewise.
	(grub_video_fb_get_info_and_fini): Likewise.
	* video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
	All users updated.
	(doublebuf_pageflipping_commit): Restructured into ...
	(doublebuf_pageflipping_set_page): ... this.
	(doublebuf_pageflipping_update_screen): Removed.
	(doublebuf_pageflipping_init): Likewise.
	(double_buffering_init): Likewise.
	(grub_video_vbe_setup): Use grub_video_fb_setup.
	(grub_video_vbe_swap_buffers): Removed.
	(grub_video_vbe_set_active_render_target): Likewise.
	(grub_video_vbe_get_active_render_target): Likewise.
	(grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
	(grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
	grub_video_fb_set_active_render_target and
	grub_video_fb_get_active_render_target.
	* video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
	(SEQUENCER_DATA_PORT): Likewise.
	(MAP_MASK_REGISTER): Likewise.
	(CRTC_ADDR_PORT): Likewise.
	(CRTC_DATA_PORT): Likewise.
	(START_ADDR_HIGH_REGISTER): Likewise.
	(START_ADDR_LOW_REGISTER): Likewise.
	(GRAPHICS_ADDR_PORT): Likewise.
	(GRAPHICS_DATA_PORT): Likewise.
	(READ_MAP_REGISTER): Likewise.
	(INPUT_STATUS1_REGISTER): Likewise.
	(INPUT_STATUS1_VERTR_BIT): Likewise.
	(get_map_mask): Use grub_vga_sr_read.
	(set_map_mask): Use grub_vga_sr_write.
	(set_read_map): Use grub_vga_gr_write.
	(set_start_address): Use grub_vga_cr_write.
	* video/sm712.c (framebuffer): Remove leftover fields. 
							
						 
						
							2010-06-20 14:15:20 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									BVK Chaitanya 
								
							 
						 
						
							
							
							
							
								
							
							
								2e1310bc7c 
								
							 
						 
						
							
							
								
								merge with mainline  
							
							
							
						 
						
							2010-06-13 10:22:38 +05:30 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									BVK Chaitanya 
								
							 
						 
						
							
							
							
							
								
							
							
								eedda76883 
								
							 
						 
						
							
							
								
								merge with mainline  
							
							
							
						 
						
							2010-06-13 09:58:24 +05:30 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									BVK Chaitanya 
								
							 
						 
						
							
							
							
							
								
							
							
								49e38cf475 
								
							 
						 
						
							
							
								
								merge with mainline  
							
							
							
						 
						
							2010-06-13 09:48:47 +05:30 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Vladimir 'phcoder' Serbinenko 
								
							 
						 
						
							
							
							
							
								
							
							
								d49703d151 
								
							 
						 
						
							
							
								
								Add priorities support  
							
							
							
						 
						
							2010-06-12 17:38:48 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									BVK Chaitanya 
								
							 
						 
						
							
							
							
							
								
							
							
								20ebf73276 
								
							 
						 
						
							
							
								
								merge with mainline  
							
							
							
						 
						
							2010-06-12 20:36:46 +05:30 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Colin Watson 
								
							 
						 
						
							
							
							
							
								
							
							
								9038c767e3 
								
							 
						 
						
							
							
								
								merge mainline  
							
							
							
						 
						
							2010-06-12 15:01:46 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Colin Watson 
								
							 
						 
						
							
							
							
							
								
							
							
								7beac90c5f 
								
							 
						 
						
							
							
								
								Avoid false positives in fs.lst, partmap.lst, and video.lst due to  
							
							... 
							
							
							
							prototype declarations.
* genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
generating fs, partmap, and video lists.
* include/grub/fs.h (grub_fs_register): Omit prototype if
GRUB_LST_GENERATOR is defined.
* include/grub/partition.h (grub_partition_map_register): Likewise.
* include/grub/video.h (grub_video_register): Likewise. 
							
						 
						
							2010-06-12 14:33:09 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Javier Martín 
								
							 
						 
						
							
							
							
							
								
							
							
								1c8f0f8d11 
								
							 
						 
						
							
							
								
								* include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.  
							
							
							
						 
						
							2010-06-12 14:50:07 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Colin Watson 
								
							 
						 
						
							
							
							
							
								
							
							
								934302d00b 
								
							 
						 
						
							
							
								
								merge mainline  
							
							
							
						 
						
							2010-06-12 12:17:28 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									BVK Chaitanya 
								
							 
						 
						
							
							
							
							
								
							
							
								95af254928 
								
							 
						 
						
							
							
								
								merge with mainline  
							
							
							
						 
						
							2010-06-12 16:32:06 +05:30 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Colin Watson 
								
							 
						 
						
							
							
							
							
								
							
							
								8253ee6bd7 
								
							 
						 
						
							
							
								
								merge mainline up to r2075 (videomask merge)  
							
							
							
						 
						
							2010-06-12 11:30:11 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									BVK Chaitanya 
								
							 
						 
						
							
							
							
							
								
							
							
								b2d0e6c3fd 
								
							 
						 
						
							
							
								
								merge with mainline  
							
							
							
						 
						
							2010-06-12 13:55:31 +05:30 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									BVK Chaitanya 
								
							 
						 
						
							
							
							
							
								
							
							
								b06f83e3ba 
								
							 
						 
						
							
							
								
								a better fix  
							
							
							
						 
						
							2010-06-12 11:06:02 +05:30 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Colin Watson 
								
							 
						 
						
							
							
							
							
								
							
							
								283af07aff 
								
							 
						 
						
							
							
								
								* include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...  
							
							... 
							
							
							
							(GRUB_EFI_UGA_BLT_MAX): ... this (typo fix). 
							
						 
						
							2010-06-11 22:15:35 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Vladimir 'phcoder' Serbinenko 
								
							 
						 
						
							
							
							
							
								
							
							
								3a37e3226b 
								
							 
						 
						
							
							
								
								Use FOR_* macros instead of *_iterate whenever possible.  
							
							... 
							
							
							
							* commands/handler.c: Removed.
	* commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
	* commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
	* conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
	* conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
	(grub_probe_SOURCES): Remove kern/parser.c.
	(util/grub-script-check.c_DEPENDENCIES): Removed.
	(grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
	and grub_script_check_init.c.
	(grub_script_check_init.lst): Removed.
	(grub_script_check_init.h): Likewise.
	(grub_script_check_init.c): Likewise.
	(pkglib_MODULES): Remove handler.mod and sh.mod.
	(handler_mod_SOURCES): Removed.
	(handler_mod_CFLAGS): Likewise.
	(handler_mod_LDFLAGS): Likewise.
	(normal_mod_SOURCES): Remove normal/handler.c.
	Add script/main.c, script/script.c, script/execute.c,
	script/function.c, script/lexer.c, grub_script.tab.c
	and grub_script.yy.c.
	* conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
	* conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
	* conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
	(grub_setup_SOURCES): Remove kern/parser.c.
	* conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
	* conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
	* conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
	* conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
	* conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
	(grub_setup_SOURCES): Remove kern/parser.c.
	* conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
	* gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
	* include/grub/command.h (grub_command_iterate): Removed.
	(FOR_COMMANDS): New macro.
	* include/grub/dl.h (grub_dl): New member next.
	(grub_dl_iterate): Removed.
	(grub_dl_head): New variable declaration.
	(FOR_DL_MODULES): New macro.
	* include/grub/fs.h: Include list.h.
	(grub_fs): Make next first element.
	(grub_fs_list): New variable declaration.
	(grub_fs_register): Make inline.
	(grub_fs_unregister): Likewise.
	(grub_fs_iterate): Removed.
	(FOR_FILESYSTEMS): New macro.
	* include/grub/handler.h: Removed.
	* include/grub/list.h (grub_list_hook_t): Removed.
	(grub_list_test_t): Likewise.
	(grub_list_pop): Likewise.
	(grub_list_iterate): Likewise.
	(grub_list_insert): Likewise.
	(FOR_LIST_ELEMENTS): New macro.
	* include/grub/parser.h (grub_parser_class): Removed.
	(grub_parser_register): Likewise.
	(grub_parser_unregister): Likewise.
	(grub_parser_get_current): Likewise.
	(grub_parser_set_current): Likewise.
	(grub_register_rescue_parser): Likewise.
	(grub_rescue_parse_line): New function.
	* include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
	* include/grub/script_sh.h (grub_script_function_list): New variable
	declaration.
	(FOR_SCRIPT_FUNCTIONS): New macro.
	(grub_script_function_iterate): Removed.
	(grub_normal_parse_line): New prototype.
	* include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
	(FOR_DISABLED_TERM_INPUTS): Likewise.
	(FOR_ACTIVE_TERM_OUTPUTS): Likewise.
	(FOR_DISABLED_TERM_OUTPUTS): Likewise.
	* include/grub/video.h (grub_video_adapter): Move 'next' to first
	element.
	(grub_video_register): Inline.
	(grub_video_unregister): Likewise.
	(grub_video_adapter_list): New variable declaration.
	(grub_video_iterate): Removed.
	(FOR_VIDEO_ADAPTERS): New macro.
	* kern/dl.c (grub_dl_list): Removed. All users updated.
	(grub_dl_iterate): Removed.
	* kern/fs.c (grub_fs_list): Make global.
	(grub_fs_register): Removed.
	(grub_fs_unregister): Likewise.
	(grub_fs_iterate): Likewise.
	* kern/handler.c: Removed.
	* kern/list.c (grub_list_pop): Removed.
	(grub_list_iterate): Likewise.
	(grub_list_insert): Likewise.
	(grub_named_list_find): Use FOR_LIST_ELEMENTS.
	(grub_prio_list_insert): Don't use grub_list_insert.
	* kern/main.c (grub_register_rescue_parser): Don't call
	grub_register_rescue_parser.
	* kern/parser.c (grub_parser_class): Removed.
	(grub_parser_execute): Use grub_rescue_parse_line.
	* kern/rescue_parser.c (grub_rescue_parse_line): Make global.
	(grub_rescue_parser): Removed.
	(grub_register_rescue_parser): Likewise.
	* kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
	* normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
	(grub_auth_check_authentication): Likewise.
	* normal/completion.c (iterate_command): Removed.
	(grub_normal_do_completion): Use FOR_COMMANDS.
	* normal/handler.c: Removed.
	* normal/main.c (read_config_file): Remove parser changing.
	(grub_normal_execute): Don't call read_handler_list.
	(grub_normal_read_line_real): Statically allocate prompt.
	(grub_cmdline_run): Use grub_normal_parse_line.
	(GRUB_MOD_FINI): Don't call free_handler_list.
	* normal/menu_entry.c (run): Likewise.
	* script/function.c (grub_script_function_list): Make global.
	(grub_script_function_iterate): Removed.
	* script/main.c (grub_normal_parse_line): Make global.
	(grub_sh_parser): Removed.
	(GRUB_MOD_INIT): Likewise.
	(GRUB_MOD_FINI): Likewise.
	* tests/lib/functional_test.c (grub_functional_test): Use
	FOR_LIST_ELEMENTS.
	* tests/lib/test.c (free_failures): Don't use grub_list_pop.
	(grub_test_run): Use FOR_LIST_ELEMENTS.
	* tests/lib/unit_test.c (main): Likewise.
	* util/deviceiter.c (grub_util_iterate_devices): Don't use
	grub_list_pop.
	* util/grub-fstest.c (grub_term_input_class): Removed.
	(grub_term_output_class): Likewise.
	* util/grub-probe.c: Likewise.
	* util/i386/pc/grub-setup.c: Likewise.
	* util/sparc64/ieee1275/grub-setup.c: Likewise.
	* util/grub-script-check.c (main): Don't call grub_init_all and
	grub_fini_all.
	* video/video.c (grub_video_adapter_list): Make global.
	(grub_video_register): Removed.
	(grub_video_unregister): Likewise.
	(grub_video_iterate): Likewise. 
							
						 
						
							2010-06-11 22:31:16 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									BVK Chaitanya 
								
							 
						 
						
							
							
							
							
								
							
							
								d2039c36f2 
								
							 
						 
						
							
							
								
								merge with mainline  
							
							
							
						 
						
							2010-06-10 21:47:25 +05:30 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									BVK Chaitanya 
								
							 
						 
						
							
							
							
							
								
							
							
								25156d7180 
								
							 
						 
						
							
							
								
								pull-in block-arg branch for loop fixes  
							
							
							
						 
						
							2010-06-10 20:53:20 +05:30 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									BVK Chaitanya 
								
							 
						 
						
							
							
							
							
								
							
							
								a992a71ed8 
								
							 
						 
						
							
							
								
								fix memory issues when used inside loops  
							
							
							
						 
						
							2010-06-10 20:49:57 +05:30 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									BVK Chaitanya 
								
							 
						 
						
							
							
							
							
								
							
							
								9d0bd7407d 
								
							 
						 
						
							
							
								
								remove menuentry from GRUB script  
							
							
							
						 
						
							2010-06-10 18:15:38 +05:30 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									BVK Chaitanya 
								
							 
						 
						
							
							
							
							
								
							
							
								db45b311cc 
								
							 
						 
						
							
							
								
								pull-in block-arg branch  
							
							
							
						 
						
							2010-06-10 17:57:16 +05:30 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									BVK Chaitanya 
								
							 
						 
						
							
							
							
							
								
							
							
								28be0e94db 
								
							 
						 
						
							
							
								
								add example usage to hello command  
							
							
							
						 
						
							2010-06-10 12:12:03 +05:30 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									BVK Chaitanya 
								
							 
						 
						
							
							
							
							
								
							
							
								3db1c9eee4 
								
							 
						 
						
							
							
								
								pull-in func-params branch  
							
							
							
						 
						
							2010-06-09 11:34:01 +05:30 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									BVK Chaitanya 
								
							 
						 
						
							
							
							
							
								
							
							
								6c9aa3df16 
								
							 
						 
						
							
							
								
								block params are grub_script with independent memory  
							
							
							
						 
						
							2010-06-09 11:29:11 +05:30 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Colin Watson 
								
							 
						 
						
							
							
							
							
								
							
							
								e0f4c43882 
								
							 
						 
						
							
							
								
								* kern/emu/misc.c (device_mapper_null_log): New function.  
							
							... 
							
							
							
							(grub_device_mapper_supported): New function.
* include/grub/emu/misc.h (grub_device_mapper_supported): Add
prototype.
* kern/emu/hostdisk.c (find_partition_start): Check whether
device-mapper is supported before trying to use it.
* util/deviceiter.c (grub_util_iterate_devices): Likewise. 
							
						 
						
							2010-06-07 22:41:55 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Vladimir 'phcoder' Serbinenko 
								
							 
						 
						
							
							
							
							
								
							
							
								f5db3949e7 
								
							 
						 
						
							
							
								
								Some hotplug support (buggy)  
							
							
							
						 
						
							2010-06-02 21:54:51 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Vladimir 'phcoder' Serbinenko 
								
							 
						 
						
							
							
							
							
								
							
							
								440ab68551 
								
							 
						 
						
							
							
								
								Restructure usbms as a preparation for hotplug  
							
							
							
						 
						
							2010-06-02 19:52:17 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Aleš Nesrsta 
								
							 
						 
						
							
							
							
							
								
							
							
								1515ec8684 
								
							 
						 
						
							
							
								
								2010-06-02  Aleš Nesrsta <starous@volny.cz>  
							
							... 
							
							
							
							Finally make USB usable.
	* bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
	(GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
	(GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
	(GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
	(GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
	(GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
	(GRUB_OHCI_FSMPS): Likewise.
	(GRUB_OHCI_PERIODIC_START): Likewise.
	(GRUB_OHCI_FRAME_INTERVAL): Likewise.
	(GRUB_OHCI_SET_PORT_ENABLE): Likewise.
	(GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
	(GRUB_OHCI_SET_PORT_RESET): Likewise.
	(GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
	* bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
	(grub_ohci_transaction): Likewise.
	(grub_ohci_transfer): Improve condition detection algorithms.
	Handle toggle property. Program the transactions correctly.
	Improve error handling. Various important fixups.
	(grub_ohci_portstatus): Put register writes in right order.
	* bus/usb/uhci.c (grub_free_queue): Compute last_trans.
	(grub_uhci_transfer): Don't show "failed" message on success.
	* bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
	array.
	(grub_usb_device_initialize): Read first 8 bytes of descriptor to
	determine its size.
	* bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
	before initialization is completed. Use IN direction for empty
	transfers. Use last_trans and compute toggle.
	* include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
	(GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
	(GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
	(GRUB_USB_FEATURE_TEST_MODE): Likewise.
	* include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
	(grub_usb_device): Increase toggle to 256.
	(grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
	GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
	GRUB_USBMS_SUBCLASS_SFF8070.
	* include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
	(grub_scsi_inquiry): New member page and alloc_length.
	(grub_scsi_request_sense): New structure.
	(grub_scsi_request_sense_data): Likewise.
	(grub_scsi_read_capacity): New fields logical_block_addr, PMI and
	control.
	* disk/scsi.c (grub_scsi_request_sense): New function.
	(grub_scsi_test_unit_ready): Likewise.
	(grub_scsi_inquiry): Fill new fields.
	(grub_scsi_read_capacity): Likewise.
	(grub_scsi_read10): Add request sense at the end.
	(grub_scsi_read12): Likewise.
	(grub_scsi_write10): Likewise.
	(grub_scsi_write12): Likewise.
	(grub_scsi_open): Add Test Unit Ready.
	* disk/usbms.c (grub_usbms_finddevs): Check configcnt.
	Support additional subclasses. Con't clear halt yet. Activate the
	proper config. Calculate LUNs correctly.
	(grub_usbms_transfer): Various important fixups.
2010-06-02  Vladimir Serbinenko  <phcoder@gmail.com>
	* bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
	* bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
	(grub_ohci_fini_hw): New function.
	(grub_ohci_restore_hw): Likewise.
	(GRUB_MOD_INIT(ohci)): Register preboot hook.
	(GRUB_MOD_FINI(ohci)): Shutdown OHCI.
	* term/usb_keyboard.c: Remove include of grub/machine/console.h.
2010-06-02  Vladimir Serbinenko  <phcoder@gmail.com>
	Dedicated DMA allocations.
	* bus/pci.c (grub_memalign_dma32): New function
	(grub_dma_free): Likewise.
	(grub_dma_get_virt): Likewise.
	(grub_dma_get_phys): Likewise.
	* bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
	(grub_ohci_pci_iter): Use dma32_alloc.
	(grub_ohci_transfer): Likewise.
	* bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
	(grub_usb_bulk_readwrite): Likewise.
	* include/grub/pci.h: Add declarations.
2010-06-02  Vladimir Serbinenko  <phcoder@gmail.com>
	CS5536 support.
	* bus/cs5536.c: New file.
	* bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
	* conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
	(cs5536_mod_SOURCES): New variable.
	(cs5536_mod_CFLAGS): Likewise.
	(cs5536_mod_LDFLAGS): Likewise.
	* conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
	machine/pci.h.
	(kernel_img_SOURCES): Add bus/cs5536.c.
	(pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
	usb_keyboard.mod.
	(usb_mod_SOURCES): New variable.
	(usb_mod_CFLAGS): New variable.
	(usb_mod_LDFLAGS): New variable.
	(usbtest_mod_SOURCES): New variable.
	(usbtest_mod_CFLAGS): New variable.
	(usbtest_mod_LDFLAGS): New variable.
	(ohci_mod_SOURCES): New variable.
	(ohci_mod_CFLAGS): New variable.
	(ohci_mod_LDFLAGS): New variable.
	(usbms_mod_SOURCES): New variable.
	(usbms_mod_CFLAGS): New variable.
	(usbms_mod_LDFLAGS): New variable.
	(usb_keyboard_mod_SOURCES): New variable.
	(usb_keyboard_mod_CFLAGS): New variable.
	(usb_keyboard_mod_LDFLAGS): New variable.
	* include/grub/smbus.h: New file.
	* include/grub/cs5536.h: New file.
	Also-By: Vladimir Serbinenko <phcoder@gmail.com> 
							
						 
						
							2010-06-02 17:16:20 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Vladimir 'phcoder' Serbinenko 
								
							 
						 
						
							
							
							
							
								
							
							
								11dccbfd4d 
								
							 
						 
						
							
							
								
								Sort scsi_cmd_t.  
							
							
							
						 
						
							2010-06-02 16:45:43 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Aleš Nesrsta 
								
							 
						 
						
							
							
							
							
								
							
							
								7d4873c26a 
								
							 
						 
						
							
							
								
								Merge Aleš' latest patch  
							
							
							
						 
						
							2010-06-01 02:10:19 +02:00