########################################################################## ## ## ## Main program for aic78xx driver ## ## ## ## This program is started via the 'kimage load' command. It locks ## ## the image in memory then calls the aic78xx_sys driver's entry ## ## routine to start things going. The aic78xx_sys driver entry ## ## performs initialization required to create the OZONE SCSI ## ## controller devices. ## ## ## ## Input: ## ## ## ## 4(%esp) = argc from kimage load command line ## ## 8(%esp) = argv from kimage load command line ## ## 12(%esp) = pointer to OZ_Image struct ## ## ## ########################################################################## .text name: .string "aic78xx" .globl _start _start: pushl %ebp # make call frame pushl $0 leal 4(%esp),%ebp pushl 16(%ebp) # - pointer to image struct pushl $name # - device name prefix string pushl $aic78xx_start # - aic78xx's DriverEntry routine call scsiport_init # initialize it all movl $1,%eax # return success status leave ret