📄 h2io.h
字号:
/*
Copyright (c) 2002-2004 Vitesse Semiconductor Corporation "Vitesse".
All Rights Reserved. Unpublished rights reserved under the copyright laws
of the United States of America, other countries and international treaties.
The software is provided without a fee. Permission to use, copy, store and
modify, the software and its source code is granted. Permission to integrate
into other products, disclose, transmit and distribute the software in an
absolute machine readable format (e.g. HEX file) is also granted.
The source code of the software may not be disclosed, transmitted or
distributed without the written permission of Vitesse. The software and its
source code may only be used in products utilizing a Vitesse VSC73xx product.
This copyright notice must appear in any copy, modification, disclosure,
transmission or distribution of the software. Vitesse retains all ownership,
copyright, trade secret and proprietary rights in the software.
THIS SOFTWARE HAS BEEN PROVIDED "AS IS," WITHOUT EXPRESS OR IMPLIED WARRANTY
INCLUDING, WITHOUT LIMITATION, IMPLIED WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR USE AND NON-INFRINGEMENT.
*/
#ifndef __H2IO_H__
#define __H2IO_H__
/* Function to be used for reading registers */
ulong h2_read (uchar block, uchar subblock, uchar addr) small;
/* Macro to be used for writing registers */
#define h2_write(block, subblock, addr, value) \
h2_write_addr((block), (subblock), (addr)); \
h2_write_((value))
/* Assembler functions used by above macro */
void h2_write_addr (uchar block, uchar subblock, uchar addr) small;
void h2_write_ (ulong value) small;
/* Functions to be used for masked writings.
The functions are found in h2ioutil.c */
void h2_write_masked (uchar block, uchar subblock, uchar addr,
ulong value, ulong mask);
void h2_write_bit (uchar block, uchar subblock, uchar addr,
uchar bit_no, uchar status);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -