Deleted Added
full compact
ata_all.h (199178) ata_all.h (199747)
1/*-
2 * Copyright (c) 2009 Alexander Motin <mav@FreeBSD.org>
3 * 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

--- 9 unchanged lines hidden (view full) ---

18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 2009 Alexander Motin <mav@FreeBSD.org>
3 * 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

--- 9 unchanged lines hidden (view full) ---

18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 *
26 * $FreeBSD: head/sys/cam/ata/ata_all.h 199178 2009-11-11 11:10:36Z mav $
26 * $FreeBSD: head/sys/cam/ata/ata_all.h 199747 2009-11-24 12:47:58Z mav $
27 */
28
29#ifndef CAM_ATA_ALL_H
30#define CAM_ATA_ALL_H 1
31
32#include <sys/ata.h>
33
34struct ccb_ataio;

--- 72 unchanged lines hidden (view full) ---

107
108void ata_bswap(int8_t *buf, int len);
109void ata_btrim(int8_t *buf, int len);
110void ata_bpack(int8_t *src, int8_t *dst, int len);
111
112int ata_max_pmode(struct ata_params *ap);
113int ata_max_wmode(struct ata_params *ap);
114int ata_max_umode(struct ata_params *ap);
27 */
28
29#ifndef CAM_ATA_ALL_H
30#define CAM_ATA_ALL_H 1
31
32#include <sys/ata.h>
33
34struct ccb_ataio;

--- 72 unchanged lines hidden (view full) ---

107
108void ata_bswap(int8_t *buf, int len);
109void ata_btrim(int8_t *buf, int len);
110void ata_bpack(int8_t *src, int8_t *dst, int len);
111
112int ata_max_pmode(struct ata_params *ap);
113int ata_max_wmode(struct ata_params *ap);
114int ata_max_umode(struct ata_params *ap);
115int ata_max_mode(struct ata_params *ap, int mode, int maxmode);
115int ata_max_mode(struct ata_params *ap, int maxmode);
116
116
117char * ata_mode2string(int mode);
118u_int ata_mode2speed(int mode);
119u_int ata_revision2speed(int revision);
120int ata_speed2revision(u_int speed);
121
117int ata_identify_match(caddr_t identbuffer, caddr_t table_entry);
118int ata_static_identify_match(caddr_t identbuffer, caddr_t table_entry);
119
120#endif
122int ata_identify_match(caddr_t identbuffer, caddr_t table_entry);
123int ata_static_identify_match(caddr_t identbuffer, caddr_t table_entry);
124
125#endif