요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
Aeroflex Gaisler GRGPIO General Purpose I/O cores.
The GRGPIO GPIO core is available in the GRLIB VHDL IP core library.
Note: In the ordinary environment for the GRGPIO core, a Leon SPARC system,
these properties are built from information in the AMBA plug&play.
Required properties:
- name : Should be "GAISLER_GPIO" or "01_01a"
- reg : Address and length of the register set for the device
- interrupts : Interrupt numbers for this device
Optional properties:
- nbits : The number of gpio lines. If not present driver assumes 32 lines.
- irqmap : An array with an index for each gpio line. An index is either a valid
index into the interrupts property array, or 0xffffffff that indicates
no irq for that line. Driver provides no interrupt support if not
present.
For further information look in the documentation for the GLIB IP core library:
http://www.gaisler.com/products/grlib/grip.pdf
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
Aeroflex Gaisler GRGPIO 필수 속성
1-15Aeroflex Gaisler GRGPIO General Purpose I/O core는 GRLIB VHDL IP core library에서 제공합니다. 일반적인 GRGPIO 환경인 Leon SPARC system에서는 이 속성을 AMBA plug-and-play 정보에서 구성합니다.
필수 `name`은 `GAISLER_GPIO` 또는 `01_01a`입니다. `reg`는 device register set의 address와 length이고, `interrupts`는 device interrupt 번호입니다.
AMBA 정보에서 얻는 필수 자원과 선택 GPIO/IRQ 구성을 정리합니다.
GRGPIO 선택 속성
16-26선택 `nbits`는 GPIO line 수이며 생략하면 driver는 32 line으로 가정합니다.
`irqmap`은 GPIO line마다 하나의 index를 갖는 array입니다. 각 index는 `interrupts` property array의 유효한 index이거나, 해당 line에 IRQ가 없음을 나타내는 `0xffffffff`입니다. `irqmap`이 없으면 driver는 interrupt를 지원하지 않습니다.
추가 정보는 GRLIB IP core library 문서 `http://www.gaisler.com/products/grlib/grip.pdf`를 참조합니다.
요약과 해설
gpio-grgpio.txt:1-26AMBA resource와 irqmap의 line별 interrupt index를 설명합니다.