sil164_reg.h revision fa225cbc
1/* -*- c-basic-offset: 4 -*- */ 2/************************************************************************** 3 4 Copyright 2006 Dave Airlie <airlied@linux.ie> 5 6Permission is hereby granted, free of charge, to any person obtaining a 7copy of this software and associated documentation files (the "Software"), 8to deal in the Software without restriction, including without limitation 9on the rights to use, copy, modify, merge, publish, distribute, sub 10license, and/or sell copies of the Software, and to permit persons to whom 11the Software is furnished to do so, subject to the following conditions: 12 13The above copyright notice and this permission notice (including the next 14paragraph) shall be included in all copies or substantial portions of the 15Software. 16 17THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 20THE COPYRIGHT HOLDERS AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM, 21DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 22OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE 23USE OR OTHER DEALINGS IN THE SOFTWARE. 24 25**************************************************************************/ 26 27#ifndef SIL164_REG_H 28#define SIL164_REG_H 29 30#define SIL164_VID 0x0001 31#define SIL164_DID 0x0006 32 33#define SIL164_VID_LO 0x00 34#define SIL164_VID_HI 0x01 35#define SIL164_DID_LO 0x02 36#define SIL164_DID_HI 0x03 37#define SIL164_REV 0x04 38#define SIL164_RSVD 0x05 39#define SIL164_FREQ_LO 0x06 40#define SIL164_FREQ_HI 0x07 41 42#define SIL164_REG8 0x08 43#define SIL164_8_VEN (1<<5) 44#define SIL164_8_HEN (1<<4) 45#define SIL164_8_DSEL (1<<3) 46#define SIL164_8_BSEL (1<<2) 47#define SIL164_8_EDGE (1<<1) 48#define SIL164_8_PD (1<<0) 49 50#define SIL164_REG9 0x09 51#define SIL164_9_VLOW (1<<7) 52#define SIL164_9_MSEL_MASK (0x7<<4) 53#define SIL164_9_TSEL (1<<3) 54#define SIL164_9_RSEN (1<<2) 55#define SIL164_9_HTPLG (1<<1) 56#define SIL164_9_MDI (1<<0) 57 58#define SIL164_REGC 0x0c 59 60#endif 61