ips_disk.c (3144501a3f777d3bf89df9728d437ae177df47eb) | ips_disk.c (489ba2223676ec251ab1bfe2906d2a62959c8ce3) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Written by: David Jeffery 5 * Copyright (c) 2002 Adaptec Inc. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 25 unchanged lines hidden (view full) --- 34#include <dev/ips/ips.h> 35#include <dev/ips/ips_disk.h> 36#include <sys/stat.h> 37 38static int ipsd_probe(device_t dev); 39static int ipsd_attach(device_t dev); 40static int ipsd_detach(device_t dev); 41 | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Written by: David Jeffery 5 * Copyright (c) 2002 Adaptec Inc. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 25 unchanged lines hidden (view full) --- 34#include <dev/ips/ips.h> 35#include <dev/ips/ips_disk.h> 36#include <sys/stat.h> 37 38static int ipsd_probe(device_t dev); 39static int ipsd_attach(device_t dev); 40static int ipsd_detach(device_t dev); 41 |
42static int ipsd_dump(void *arg, void *virtual, vm_offset_t physical, 43 off_t offset, size_t length); | 42static int ipsd_dump(void *arg, void *virtual, off_t offset, size_t length); |
44static void ipsd_dump_map_sg(void *arg, bus_dma_segment_t *segs, int nsegs, 45 int error); 46static void ipsd_dump_block_complete(ips_command_t *command); 47 48static disk_open_t ipsd_open; 49static disk_close_t ipsd_close; 50static disk_strategy_t ipsd_strategy; 51 --- 128 unchanged lines hidden (view full) --- 180 dsc = (ipsdisk_softc_t *)device_get_softc(dev); 181 if(dsc->state & IPS_DEV_OPEN) 182 return (EBUSY); 183 disk_destroy(dsc->ipsd_disk); 184 return 0; 185} 186 187static int | 43static void ipsd_dump_map_sg(void *arg, bus_dma_segment_t *segs, int nsegs, 44 int error); 45static void ipsd_dump_block_complete(ips_command_t *command); 46 47static disk_open_t ipsd_open; 48static disk_close_t ipsd_close; 49static disk_strategy_t ipsd_strategy; 50 --- 128 unchanged lines hidden (view full) --- 179 dsc = (ipsdisk_softc_t *)device_get_softc(dev); 180 if(dsc->state & IPS_DEV_OPEN) 181 return (EBUSY); 182 disk_destroy(dsc->ipsd_disk); 183 return 0; 184} 185 186static int |
188ipsd_dump(void *arg, void *virtual, vm_offset_t physical, off_t offset, 189 size_t length) | 187ipsd_dump(void *arg, void *virtual, off_t offset, size_t length) |
190{ 191 ipsdisk_softc_t *dsc; 192 ips_softc_t *sc; 193 ips_command_t *command; 194 ips_io_cmd *command_struct; 195 struct disk *dp; 196 void *va; 197 off_t off; --- 114 unchanged lines hidden --- | 188{ 189 ipsdisk_softc_t *dsc; 190 ips_softc_t *sc; 191 ips_command_t *command; 192 ips_io_cmd *command_struct; 193 struct disk *dp; 194 void *va; 195 off_t off; --- 114 unchanged lines hidden --- |