<commit_before>/* Jaguar C library */
/* Copyright (C) 2006 Seb/<NAME> */
/* http://removers.atari.org/ */

/* This library is free software; you can redistribute it and/or */
/* modify it under the terms of the GNU Lesser General Public */
/* License as published by the Free Software Foundation; either */
/* version 2.1 of the License, or (at your option) any later version. */

/* This library is distributed in the hope that it will be useful, */
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU */
/* Lesser General Public License for more details. */

/* You should have received a copy of the GNU Lesser General Public */
/* License along with this library; if not, write to the Free Software */
/* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA */

/** \file jerry.h
 * \brief JERRY hardware registers
 */

#ifndef __JERRY_H
#define __JERRY_H

#include <jagtypes.h>

struct jerry_registers {
  /* 0x00 */
  volatile uint16_t jpit1_wo[2];
  volatile uint16_t jpit2_wo[2];
  volatile uint16_t dummy1[4];
  /* 0x10 */
  volatile uint16_t clk1;
  volatile uint16_t clk2;
  volatile uint16_t clk3;
  volatile uint16_t dummy2[5];
  /* 0x20 */
  volatile uint16_t jint;
  volatile uint16_t dummy3[7];
  /* 0x30 */
  volatile uint16_t asidata;
  union {
    volatile uint16_t asictrl;
    volatile uint16_t asistat;
  };
  volatile uint16_t asiclk;
  volatile uint16_t jpit1_ro[2];
  volatile uint16_t jpit2_ro[2];
  volatile uint16_t dummy4[1+/* 0x40 */8160];
  /* 0x4000 */
  volatile uint16_t joy1;
  volatile uint16_t joy2;
  volatile uint16_t dummy5[12414];
  /* 0xa100 */
  volatile uint32_t dsp_flags;
  volatile uint32_t dsp_mtxc;
  volatile uint32_t dsp_mtxa;
  volatile uint32_t dsp_bigend;
  /* 0xa110 */
  volatile uint32_t dsp_pc;
  volatile uint32_t dsp_ctrl;
  volatile uint32_t dsp_modmask;
  union {
    volatile uint32_t dsp_remain;
    volatile uint32_t dsp_divctrl;
  };
  /* 0xa120 */
  volatile uint32_t dsp_machi;
  volatile uint32_t dummy6[7];
  /* 0xa140 */
  volatile uint32_t l_dac;
  volatile uint32_t r_dac;
  volatile uint32_t l_i2s;
  volatile uint32_t r_i2s;
  /* 0xa150 */
  volatile uint32_t sclk;
  volatile uint32_t smode;
  volatile uint32_t dummy7[938];
  /* 0xb000 */
  volatile uint32_t dsp_ram[2048];
  /* 0xd000 */
  volatile uint32_t rom_tri[128];
  volatile uint32_t rom_sine[128];
  volatile uint32_t rom_amsine[128];
  volatile uint32_t rom_sine12w[128];
  volatile uint32_t rom_chirp16[128];
  volatile uint32_t rom_ntri[128];
  volatile uint32_t rom_delta[128];
  volatile uint32_t rom_noise[128];
};

#define JERRYREGS ((struct jerry_registers *)0xf10000)

#endif<commit_msg>rom space is read only<commit_after>/* Jaguar C library */
/* Copyright (C) 2006 Seb/<NAME> */
/* http://removers.atari.org/ */

/* This library is free software; you can redistribute it and/or */
/* modify it under the terms of the GNU Lesser General Public */
/* License as published by the Free Software Foundation; either */
/* version 2.1 of the License, or (at your option) any later version. */

/* This library is distributed in the hope that it will be useful, */
/* but WITHOUT ANY WARRANTY; without even the implied warranty of */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU */
/* Lesser General Public License for more details. */

/* You should have received a copy of the GNU Lesser General Public */
/* License along with this library; if not, write to the Free Software */
/* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA */

/** \file jerry.h
 * \brief JERRY hardware registers
 */

#ifndef __JERRY_H
#define __JERRY_H

#include <jagtypes.h>

struct jerry_registers {
  /* 0x00 */
  volatile uint16_t jpit1_wo[2];
  volatile uint16_t jpit2_wo[2];
  volatile uint16_t dummy1[4];
  /* 0x10 */
  volatile uint16_t clk1;
  volatile uint16_t clk2;
  volatile uint16_t clk3;
  volatile uint16_t dummy2[5];
  /* 0x20 */
  volatile uint16_t jint;
  volatile uint16_t dummy3[7];
  /* 0x30 */
  volatile uint16_t asidata;
  union {
    volatile uint16_t asictrl;
    volatile uint16_t asistat;
  };
  volatile uint16_t asiclk;
  volatile uint16_t jpit1_ro[2];
  volatile uint16_t jpit2_ro[2];
  volatile uint16_t dummy4[1+/* 0x40 */8160];
  /* 0x4000 */
  volatile uint16_t joy1;
  volatile uint16_t joy2;
  volatile uint16_t dummy5[12414];
  /* 0xa100 */
  volatile uint32_t dsp_flags;
  volatile uint32_t dsp_mtxc;
  volatile uint32_t dsp_mtxa;
  volatile uint32_t dsp_bigend;
  /* 0xa110 */
  volatile uint32_t dsp_pc;
  volatile uint32_t dsp_ctrl;
  volatile uint32_t dsp_modmask;
  union {
    volatile uint32_t dsp_remain;
    volatile uint32_t dsp_divctrl;
  };
  /* 0xa120 */
  volatile uint32_t dsp_machi;
  volatile uint32_t dummy6[7];
  /* 0xa140 */
  volatile uint32_t l_dac;
  volatile uint32_t r_dac;
  volatile uint32_t l_i2s;
  volatile uint32_t r_i2s;
  /* 0xa150 */
  volatile uint32_t sclk;
  volatile uint32_t smode;
  volatile uint32_t dummy7[938];
  /* 0xb000 */
  volatile uint32_t dsp_ram[2048];
  /* 0xd000 */
  const uint32_t rom_tri[128];
  const uint32_t rom_sine[128];
  const uint32_t rom_amsine[128];
  const uint32_t rom_sine12w[128];
  const uint32_t rom_chirp16[128];
  const uint32_t rom_ntri[128];
  const uint32_t rom_delta[128];
  const uint32_t rom_noise[128];
};

#define JERRYREGS ((struct jerry_registers *)0xf10000)

#endif
{'fraction_non_alphanumeric': 0.09530765017345262, 'fraction_numerical': 0.08544823808654373, 'mean_word_length': 3.72648835202761, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4237224', 'n_tokens_mistral': 2231, 'n_tokens_neox': 1978, 'n_words': 601}