Sat Jun 20 09:40:52 2009 UTC ()
buildfix: don't redefine MIN and MAX. They are defined in <sys/param.h>.


(cegger)
diff -r1.8 -r1.9 src/sys/dev/ieee1394/firewirereg.h

cvs diff -r1.8 -r1.9 src/sys/dev/ieee1394/firewirereg.h (expand / switch to unified diff)

--- src/sys/dev/ieee1394/firewirereg.h 2008/03/29 16:22:53 1.8
+++ src/sys/dev/ieee1394/firewirereg.h 2009/06/20 09:40:52 1.9
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: firewirereg.h,v 1.8 2008/03/29 16:22:53 kiyohara Exp $ */ 1/* $NetBSD: firewirereg.h,v 1.9 2009/06/20 09:40:52 cegger Exp $ */
2/*- 2/*-
3 * Copyright (c) 2003 Hidetoshi Shimokawa 3 * Copyright (c) 2003 Hidetoshi Shimokawa
4 * Copyright (c) 1998-2002 Katsushi Kobayashi and Hidetoshi Shimokawa 4 * Copyright (c) 1998-2002 Katsushi Kobayashi and Hidetoshi Shimokawa
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer. 11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright 12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the 13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution. 14 * documentation and/or other materials provided with the distribution.
@@ -324,19 +324,17 @@ extern int firewire_phydma_enable; @@ -324,19 +324,17 @@ extern int firewire_phydma_enable;
324#define bio_count b_count 324#define bio_count b_count
325#define bio_data b_data 325#define bio_data b_data
326#define bio_dev b_dev 326#define bio_dev b_dev
327#define bio_error b_error 327#define bio_error b_error
328#define bio_flags b_flags 328#define bio_flags b_flags
329#if defined(__FreeBSD__) 329#if defined(__FreeBSD__)
330#define bio_offset b_offset 330#define bio_offset b_offset
331#elif defined(__NetBSD__) 331#elif defined(__NetBSD__)
332#define bio_offset b_blkno 332#define bio_offset b_blkno
333#endif 333#endif
334#define bio_resid b_resid 334#define bio_resid b_resid
335#define BIO_READ B_READ 335#define BIO_READ B_READ
336#define BIO_WRITE B_WRITE 336#define BIO_WRITE B_WRITE
337#define MIN(a,b) (((a)<(b))?(a):(b)) 
338#define MAX(a,b) (((a)>(b))?(a):(b)) 
339#endif 337#endif
340 338
341MALLOC_DECLARE(M_FW); 339MALLOC_DECLARE(M_FW);
342MALLOC_DECLARE(M_FWXFER); 340MALLOC_DECLARE(M_FWXFER);