mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-13 14:14:37 +00:00
dbc9f36cf7
Now that the SPDX tag is in all vt6655 files, that identifies the license in a specific and legally-defined manner. So the extra GPL text wording can be removed as it is no longer needed at all. This is done on a quest to remove the 700+ different ways that files in the kernel describe the GPL license text. And there's unneeded stuff like the address (sometimes incorrect) for the FSF which is never needed. No copyright headers or other non-license-description text was removed. Cc: Forest Bond <forest@alittletooquiet.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
45 lines
1.2 KiB
C
45 lines
1.2 KiB
C
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Copyright (c) 1996, 2003 VIA Networking Technologies, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* File: tmacro.h
|
|
*
|
|
* Purpose: define basic common types and macros
|
|
*
|
|
* Author: Tevin Chen
|
|
*
|
|
* Date: May 21, 1996
|
|
*
|
|
*/
|
|
|
|
#ifndef __TMACRO_H__
|
|
#define __TMACRO_H__
|
|
|
|
/****** Common helper macros ***********************************************/
|
|
|
|
#if !defined(LOBYTE)
|
|
#define LOBYTE(w) ((unsigned char)(w))
|
|
#endif
|
|
#if !defined(HIBYTE)
|
|
#define HIBYTE(w) ((unsigned char)(((unsigned short)(w) >> 8) & 0xFF))
|
|
#endif
|
|
|
|
#if !defined(LOWORD)
|
|
#define LOWORD(d) ((unsigned short)(d))
|
|
#endif
|
|
#if !defined(HIWORD)
|
|
#define HIWORD(d) ((unsigned short)((((unsigned long)(d)) >> 16) & 0xFFFF))
|
|
#endif
|
|
|
|
#define LODWORD(q) ((q).u.dwLowDword)
|
|
#define HIDWORD(q) ((q).u.dwHighDword)
|
|
|
|
#if !defined(MAKEWORD)
|
|
#define MAKEWORD(lb, hb) ((unsigned short)(((unsigned char)(lb)) | (((unsigned short)((unsigned char)(hb))) << 8)))
|
|
#endif
|
|
#if !defined(MAKEDWORD)
|
|
#define MAKEDWORD(lw, hw) ((unsigned long)(((unsigned short)(lw)) | (((unsigned long)((unsigned short)(hw))) << 16)))
|
|
#endif
|
|
|
|
#endif /* __TMACRO_H__ */
|