Print this page
7127  remove -Wno-missing-braces from Makefile.uts


  22  */
  23 
  24 #include "cpqary3.h"
  25 
  26 /*
  27  * Local Functions Declaration
  28  */
  29 
  30 static int32_t cpqary3_ioctl_send_bmiccmd(cpqary3_t *, cpqary3_bmic_pass_t *,
  31     int);
  32 static void cpqary3_ioctl_fil_bmic(CommandList_t *, cpqary3_bmic_pass_t *);
  33 static void cpqary3_ioctl_fil_bmic_sas(CommandList_t *, cpqary3_bmic_pass_t *);
  34 static int32_t cpqary3_ioctl_send_scsicmd(cpqary3_t *, cpqary3_scsi_pass_t *,
  35     int);
  36 static void cpqary3_ioctl_fil_scsi(CommandList_t *, cpqary3_scsi_pass_t *);
  37 
  38 /*
  39  * Global Variables Definitions
  40  */
  41 
  42 cpqary3_driver_info_t gdriver_info = {0};
  43 
  44 /* Function Definitions  */
  45 
  46 /*
  47  * Function     :       cpqary3_ioctl_driver_info
  48  * Description  :       This routine will get major/ minor versions, Number of
  49  *                      controllers detected & MAX Number of controllers
  50  *                      supported
  51  * Called By    :       cpqary3_ioctl
  52  * Parameters   :       ioctl_reqp      - address of the parameter sent from
  53  *                                        the application
  54  *                      cpqary3p        - address of the PerController structure
  55  *                      mode            - mode which comes from application
  56  * Return Values:       EFAULT on Failure, 0 on SUCCESS
  57  */
  58 int32_t
  59 cpqary3_ioctl_driver_info(uintptr_t ioctl_reqp, int mode)
  60 {
  61         cpqary3_ioctl_request_t *request;
  62 




  22  */
  23 
  24 #include "cpqary3.h"
  25 
  26 /*
  27  * Local Functions Declaration
  28  */
  29 
  30 static int32_t cpqary3_ioctl_send_bmiccmd(cpqary3_t *, cpqary3_bmic_pass_t *,
  31     int);
  32 static void cpqary3_ioctl_fil_bmic(CommandList_t *, cpqary3_bmic_pass_t *);
  33 static void cpqary3_ioctl_fil_bmic_sas(CommandList_t *, cpqary3_bmic_pass_t *);
  34 static int32_t cpqary3_ioctl_send_scsicmd(cpqary3_t *, cpqary3_scsi_pass_t *,
  35     int);
  36 static void cpqary3_ioctl_fil_scsi(CommandList_t *, cpqary3_scsi_pass_t *);
  37 
  38 /*
  39  * Global Variables Definitions
  40  */
  41 
  42 cpqary3_driver_info_t gdriver_info = {{0}};
  43 
  44 /* Function Definitions  */
  45 
  46 /*
  47  * Function     :       cpqary3_ioctl_driver_info
  48  * Description  :       This routine will get major/ minor versions, Number of
  49  *                      controllers detected & MAX Number of controllers
  50  *                      supported
  51  * Called By    :       cpqary3_ioctl
  52  * Parameters   :       ioctl_reqp      - address of the parameter sent from
  53  *                                        the application
  54  *                      cpqary3p        - address of the PerController structure
  55  *                      mode            - mode which comes from application
  56  * Return Values:       EFAULT on Failure, 0 on SUCCESS
  57  */
  58 int32_t
  59 cpqary3_ioctl_driver_info(uintptr_t ioctl_reqp, int mode)
  60 {
  61         cpqary3_ioctl_request_t *request;
  62