hptiop.c (9268022b74279434ed6300244e3f977e56a8ceb5) | hptiop.c (43cd61606b6bfae52bb09856277751103bfa28fd) |
---|---|
1/* 2 * HighPoint RR3xxx/4xxx RAID Driver for FreeBSD 3 * Copyright (C) 2007-2012 HighPoint Technologies, Inc. All Rights Reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 2038 unchanged lines hidden (view full) --- 2047 xpt_setup_ccb(&ccb.ccb_h, hba->path, /*priority*/5); 2048 ccb.ccb_h.func_code = XPT_SASYNC_CB; 2049 ccb.event_enable = (AC_FOUND_DEVICE | AC_LOST_DEVICE); 2050 ccb.callback = hptiop_async; 2051 ccb.callback_arg = hba->sim; 2052 xpt_action((union ccb *)&ccb); 2053 2054 rid = 0; | 1/* 2 * HighPoint RR3xxx/4xxx RAID Driver for FreeBSD 3 * Copyright (C) 2007-2012 HighPoint Technologies, Inc. All Rights Reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 2038 unchanged lines hidden (view full) --- 2047 xpt_setup_ccb(&ccb.ccb_h, hba->path, /*priority*/5); 2048 ccb.ccb_h.func_code = XPT_SASYNC_CB; 2049 ccb.event_enable = (AC_FOUND_DEVICE | AC_LOST_DEVICE); 2050 ccb.callback = hptiop_async; 2051 ccb.callback_arg = hba->sim; 2052 xpt_action((union ccb *)&ccb); 2053 2054 rid = 0; |
2055 if ((hba->irq_res = bus_alloc_resource(hba->pcidev, SYS_RES_IRQ, 2056 &rid, 0, ~0ul, 1, RF_SHAREABLE | RF_ACTIVE)) == NULL) { | 2055 if ((hba->irq_res = bus_alloc_resource_any(hba->pcidev, SYS_RES_IRQ, 2056 &rid, RF_SHAREABLE | RF_ACTIVE)) == NULL) { |
2057 device_printf(dev, "allocate irq failed!\n"); 2058 goto free_hba_path; 2059 } 2060 2061 if (bus_setup_intr(hba->pcidev, hba->irq_res, INTR_TYPE_CAM | INTR_MPSAFE, 2062 NULL, hptiop_pci_intr, hba, &hba->irq_handle)) 2063 { 2064 device_printf(dev, "allocate intr function failed!\n"); --- 790 unchanged lines hidden --- | 2057 device_printf(dev, "allocate irq failed!\n"); 2058 goto free_hba_path; 2059 } 2060 2061 if (bus_setup_intr(hba->pcidev, hba->irq_res, INTR_TYPE_CAM | INTR_MPSAFE, 2062 NULL, hptiop_pci_intr, hba, &hba->irq_handle)) 2063 { 2064 device_printf(dev, "allocate intr function failed!\n"); --- 790 unchanged lines hidden --- |