2 * Copyright (c) 2005-2009 Brocade Communications Systems, Inc.
6 * Linux driver for Brocade Fibre Channel Host Bus Adapter.
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License (GPL) Version 2 as
10 * published by the Free Software Foundation
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
19 * bfad_os.c Linux driver OS specific calls.
22 #include "bfa_os_inc.h"
26 bfa_os_gettimeofday(struct bfa_timeval_s
*tv
)
28 struct timeval tmp_tv
;
30 do_gettimeofday(&tmp_tv
);
31 tv
->tv_sec
= (u32
) tmp_tv
.tv_sec
;
32 tv
->tv_usec
= (u32
) tmp_tv
.tv_usec
;
36 bfa_os_printf(struct bfa_log_mod_s
*log_mod
, u32 msg_id
,
40 #define BFA_STRING_256 256
41 char tmp
[BFA_STRING_256
];
44 vsprintf(tmp
, fmt
, ap
);