Deleted Added
full compact
bsd_usbloader_test.c (266894) bsd_usbloader_test.c (298647)
1/* $FreeBSD: head/sys/boot/usb/bsd_usbloader_test.c 266894 2014-05-30 16:49:12Z hselasky $ */
1/* $FreeBSD: head/sys/boot/usb/bsd_usbloader_test.c 298647 2016-04-26 15:33:53Z hselasky $ */
2/*-
3 * Copyright (c) 2013 Hans Petter Selasky. 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 * notice, this list of conditions and the following disclaimer.

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

52#endif
53
54void
55DELAY(unsigned int delay)
56{
57 usleep(delay);
58}
59
2/*-
3 * Copyright (c) 2013 Hans Petter Selasky. 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 * notice, this list of conditions and the following disclaimer.

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

52#endif
53
54void
55DELAY(unsigned int delay)
56{
57 usleep(delay);
58}
59
60void
61delay(unsigned int delay)
62{
63 usleep(delay);
64}
65
60int
61pause(const char *what, int timeout)
62{
63 if (timeout == 0)
64 timeout = 1;
65
66 usleep((1000000 / hz) * timeout);
67

--- 28 unchanged lines hidden ---
66int
67pause(const char *what, int timeout)
68{
69 if (timeout == 0)
70 timeout = 1;
71
72 usleep((1000000 / hz) * timeout);
73

--- 28 unchanged lines hidden ---