ps3cdrom.c (b64b31338f702c25d4542248b1a2ee2420d4dae8) | ps3cdrom.c (8dc96b74edb844bb621afeba38fe4af104b13120) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (C) 2010 Nathan Whitehorn 5 * Copyright (C) 2011 glevand <geoffrey.levand@mail.ru> 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 248 unchanged lines hidden (view full) --- 257 CAM_TARGET_WILDCARD, CAM_LUN_WILDCARD); 258 if (err != CAM_REQ_CMP) { 259 device_printf(dev, "Could not create XPT path\n"); 260 err = ENOMEM; 261 PS3CDROM_UNLOCK(sc); 262 goto fail_unregister_xpt_bus; 263 } 264 | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (C) 2010 Nathan Whitehorn 5 * Copyright (C) 2011 glevand <geoffrey.levand@mail.ru> 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 248 unchanged lines hidden (view full) --- 257 CAM_TARGET_WILDCARD, CAM_LUN_WILDCARD); 258 if (err != CAM_REQ_CMP) { 259 device_printf(dev, "Could not create XPT path\n"); 260 err = ENOMEM; 261 PS3CDROM_UNLOCK(sc); 262 goto fail_unregister_xpt_bus; 263 } 264 |
265 memset(&csa, 0, sizeof(csa)); |
|
265 xpt_setup_ccb(&csa.ccb_h, sc->sc_path, 5); 266 csa.ccb_h.func_code = XPT_SASYNC_CB; 267 csa.event_enable = AC_LOST_DEVICE; 268 csa.callback = ps3cdrom_async; 269 csa.callback_arg = sc->sc_sim; 270 xpt_action((union ccb *) &csa); 271 272 CAM_DEBUG(sc->sc_path, CAM_DEBUG_TRACE, --- 438 unchanged lines hidden --- | 266 xpt_setup_ccb(&csa.ccb_h, sc->sc_path, 5); 267 csa.ccb_h.func_code = XPT_SASYNC_CB; 268 csa.event_enable = AC_LOST_DEVICE; 269 csa.callback = ps3cdrom_async; 270 csa.callback_arg = sc->sc_sim; 271 xpt_action((union ccb *) &csa); 272 273 CAM_DEBUG(sc->sc_path, CAM_DEBUG_TRACE, --- 438 unchanged lines hidden --- |