diff --git a/.github/workflows/build_esptool.yml b/.github/workflows/build_esptool.yml index b5efd34db..850abd344 100644 --- a/.github/workflows/build_esptool.yml +++ b/.github/workflows/build_esptool.yml @@ -56,7 +56,7 @@ jobs: pip install --user -e . - name: Build with PyInstaller run: | - pyinstaller --distpath ./${{ env.DISTPATH }} -F --icon=ci/espressif.ico --add-data="${{ env.STUBS_DIR }}*.json${{ matrix.SEPARATOR }}${{ env.STUBS_DIR }}" esptool.py + pyinstaller --distpath ./${{ env.DISTPATH }} -F --icon=ci/espressif.ico --add-data="${{ env.STUBS_DIR }}1/*.json${{ matrix.SEPARATOR }}${{ env.STUBS_DIR }}1/" --add-data="${{ env.STUBS_DIR }}2/*.json${{ matrix.SEPARATOR }}${{ env.STUBS_DIR }}2/" esptool.py pyinstaller --distpath ./${{ env.DISTPATH }} -F --icon=ci/espressif.ico --add-data="${{ env.EFUSE_DIR }}*.yaml${{ matrix.SEPARATOR }}${{ env.EFUSE_DIR }}" espefuse.py pyinstaller --distpath ./${{ env.DISTPATH }} -F --icon=ci/espressif.ico espsecure.py pyinstaller --distpath ./${{ env.DISTPATH }} -F --icon=ci/espressif.ico esp_rfc2217_server.py diff --git a/.github/workflows/test_esptool.yml b/.github/workflows/test_esptool.yml index f398f650c..adc4a3b0c 100644 --- a/.github/workflows/test_esptool.yml +++ b/.github/workflows/test_esptool.yml @@ -46,22 +46,21 @@ jobs: pytest -m host_test pytest test/test_espsecure_hsm.py - - name: Build stub (Python 3.7 only) - if: matrix.python-version == 3.7 - run: | - export TOOLCHAIN_DIR=$HOME/toolchain - - export ESP8266_BINDIR=$TOOLCHAIN_DIR/xtensa-lx106-elf/bin - export ESP32_BINDIR=$TOOLCHAIN_DIR/xtensa-esp32-elf/bin - export ESP32S2_BINDIR=$TOOLCHAIN_DIR/xtensa-esp32s2-elf/bin - export ESP32S3_BINDIR=$TOOLCHAIN_DIR/xtensa-esp32s3-elf/bin - export ESP32C3_BINDIR=$TOOLCHAIN_DIR/riscv32-esp-elf/bin + check_stubs: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@master - export PATH=$PATH:$ESP8266_BINDIR:$ESP32_BINDIR:$ESP32S2_BINDIR:$ESP32S3_BINDIR:$ESP32C3_BINDIR + - name: Set up Python 3.12 + uses: actions/setup-python@master + with: + python-version: 3.12 - ./ci/setup_ci_build_env.sh - make -C flasher_stub V=1 - cd flasher_stub && python ./compare_stubs.py + - name: Check if flasher stubs are up-to-date + run: | + ./ci/download_flasher_stubs.py + git diff --exit-code lint_esptool: runs-on: ubuntu-latest diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e247a38bf..7721efab3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -34,19 +34,6 @@ cache: paths: - "$CI_PROJECT_DIR/.cache/pip" -.use_esp_flasher_stub: &use_esp_flasher_stub | - if [[ "$CI_USE_ESP_FLASHER_STUB" = "1" ]] - then - apt-get update && apt-get install -y jq - wget https://api.github.com/repos/esp-rs/esp-flasher-stub/releases/latest -O /tmp/esp_flasher_stub.json - echo "esp-flasher-stub version:"; cat /tmp/esp_flasher_stub.json | jq -r .tag_name - mkdir /tmp/assets - cat /tmp/esp_flasher_stub.json | jq -r .assets[].browser_download_url | while read -r url; do wget $url -P /tmp/assets; done - for f in /tmp/assets/*.json; do fname=$(basename $f); cp $f esptool/targets/stub_flasher/stub_flasher_${fname#esp}; done - echo "These are the changes in the repository:" - git diff --stat - fi - .test_template: &test_template stage: test image: python:3.7-bullseye @@ -73,7 +60,7 @@ version_check: .host_tests_template: &host_tests_template <<: *test_template rules: - - if: $CI_USE_ESP_FLASHER_STUB != "1" + - if: $CI_PIPELINE_SOURCE != "schedule" artifacts: when: always paths: @@ -170,7 +157,7 @@ run_pre_commit_hooks: stage: test image: python:3.7-bullseye rules: - - if: $CI_USE_ESP_FLASHER_STUB != "1" + - if: $CI_PIPELINE_SOURCE != "schedule" tags: - host_test script: @@ -192,7 +179,7 @@ run_pre_commit_hooks: check_install_coverage: <<: *test_template rules: - - if: $CI_USE_ESP_FLASHER_STUB != "1" + - if: $CI_PIPELINE_SOURCE != "schedule" artifacts: when: always paths: @@ -210,7 +197,7 @@ check_install_coverage: check_install: <<: *test_template rules: - - if: $CI_USE_ESP_FLASHER_STUB != "1" + - if: $CI_PIPELINE_SOURCE != "schedule" before_script: - pip install . script: @@ -220,7 +207,7 @@ check_install: check_install_editable: <<: *test_template rules: - - if: $CI_USE_ESP_FLASHER_STUB != "1" + - if: $CI_PIPELINE_SOURCE != "schedule" before_script: - pip install -e . script: @@ -230,7 +217,7 @@ check_install_editable: check_install_system: <<: *test_template rules: - - if: $CI_USE_ESP_FLASHER_STUB != "1" + - if: $CI_PIPELINE_SOURCE != "schedule" before_script: - pip install --user . script: @@ -245,7 +232,7 @@ check_install_system: check_install_venv: <<: *test_template rules: - - if: $CI_USE_ESP_FLASHER_STUB != "1" + - if: $CI_PIPELINE_SOURCE != "schedule" before_script: - python -m venv test_env - source test_env/bin/activate @@ -253,33 +240,11 @@ check_install_venv: script: - *run_esptool -# Check the stub can build and that a stub built in CI has the same contents -# as the one embedded in esptool check_stub_build: <<: *test_template - rules: - - if: $CI_USE_ESP_FLASHER_STUB != "1" - artifacts: - when: always - paths: - - flasher_stub/build/ - - "**/.coverage*" - - ".coverage*" - expire_in: 1 week - variables: - TOOLCHAIN_DIR: "/root/.espressif/dist" - - ESP8266_BINDIR: "${TOOLCHAIN_DIR}/xtensa-lx106-elf/bin" - ESP32_BINDIR: "${TOOLCHAIN_DIR}/xtensa-esp32-elf/bin" - ESP32S2_BINDIR: "${TOOLCHAIN_DIR}/xtensa-esp32s2-elf/bin" - ESP32S3_BINDIR: "${TOOLCHAIN_DIR}/xtensa-esp32s3-elf/bin" - ESP32C3_BINDIR: "${TOOLCHAIN_DIR}/riscv32-esp-elf/bin" - - TOOLCHAIN_PATHS: "${ESP8266_BINDIR}:${ESP32_BINDIR}:${ESP32S2_BINDIR}:${ESP32S3_BINDIR}:${ESP32C3_BINDIR}" script: - - ./ci/setup_ci_build_env.sh - - make -C flasher_stub V=1 PATH="${TOOLCHAIN_PATHS}:${PATH}" - - cd flasher_stub && coverage run --parallel-mode ./compare_stubs.py + - ./ci/download_flasher_stubs.py + - git diff --exit-code .target_esptool_test: stage: test @@ -292,7 +257,6 @@ check_stub_build: - pip install -e .[dev] --prefer-binary # libffi (needed for espsecure) version keeps changing in python docker images. Add a symlink to the installed version on Raspberry Pi - if [ $(uname -m) = "armv7l" ]; then ln -sfn /usr/lib/arm-linux-gnueabihf/libffi.so.7.1.0 /usr/lib/arm-linux-gnueabihf/libffi.so.6; fi - - *use_esp_flasher_stub artifacts: reports: junit: test/report.xml @@ -460,7 +424,7 @@ target_esp32p4: PYTHONPATH: "$PYTHONPATH:${CI_PROJECT_DIR}/test" COVERAGE_PROCESS_START: "${CI_PROJECT_DIR}/test/.covconf" rules: - - if: $CI_USE_ESP_FLASHER_STUB != "1" + - if: $CI_PIPELINE_SOURCE != "schedule" before_script: - pip install -e .[dev] --prefer-binary artifacts: @@ -526,7 +490,7 @@ build_docs: tags: - build_docs rules: - - if: $CI_PIPELINE_SOURCE == "schedule" && $CI_USE_ESP_FLASHER_STUB == "1" + - if: $CI_PIPELINE_SOURCE == "schedule" when: never - changes: - "docs/**/*" @@ -561,7 +525,7 @@ deploy_docs_preview: extends: - .deploy_docs_template rules: - - if: $CI_COMMIT_REF_NAME == "master" || ($CI_PIPELINE_SOURCE == "schedule" && $CI_USE_ESP_FLASHER_STUB == "1") + - if: $CI_COMMIT_REF_NAME == "master" || $CI_PIPELINE_SOURCE == "schedule" when: never - changes: - "docs/**/*" @@ -579,7 +543,7 @@ deploy_docs_production: extends: - .deploy_docs_template rules: - - if: $CI_COMMIT_REF_NAME == "master" && $CI_USE_ESP_FLASHER_STUB != "1" + - if: $CI_COMMIT_REF_NAME == "master" && $CI_PIPELINE_SOURCE != "schedule" changes: - "docs/**/*" - "CONTRIBUTING.rst" diff --git a/MANIFEST.in b/MANIFEST.in index 42ef8ccff..f135efaa6 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,11 +1,11 @@ include README.md include LICENSE -include esptool/targets/stub_flasher/*.json +include esptool/targets/stub_flasher/1/* +include esptool/targets/stub_flasher/2/* include espefuse/efuse_defs/*.yaml # sdist includes test/test*.py by default, but esptool.py tests # are so far only intended to run from the git repo itself prune test -prune flasher_stub prune .github prune docs exclude .git* diff --git a/ci/download_flasher_stubs.py b/ci/download_flasher_stubs.py new file mode 100755 index 000000000..1b3ae4cb4 --- /dev/null +++ b/ci/download_flasher_stubs.py @@ -0,0 +1,90 @@ +#!/usr/bin/env python +# +# SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD +# SPDX-License-Identifier: GPL-2.0-or-later + +import glob +import os +import urllib.request + +STUBS = ( + { + "STUB_SET_VERSION": "1", + "DOWNLOAD_URL": "https://github.com/espressif/esptool-legacy-flasher-stub/releases/download", + "TAG_URL": "https://github.com/espressif/esptool-legacy-flasher-stub/releases/tag", + "VERSION": "v1.2.0", + "FILE_LIST": ( + "esp32", + "esp32c2", + "esp32c3", + "esp32c5", + "esp32c5beta3", + "esp32c6", + "esp32c6beta", + "esp32h2", + "esp32h2beta1", + "esp32h2beta2", + "esp32p4", + "esp32s2", + "esp32s3", + "esp32s3beta2", + "esp8266", + ), + "LICENSE": "released as Free Software under GNU General Public License Version 2 or later", + }, + { + "STUB_SET_VERSION": "2", + "DOWNLOAD_URL": "https://github.com/esp-rs/esp-flasher-stub/releases/download", + "TAG_URL": "https://github.com/esp-rs/esp-flasher-stub/releases/tag", + "VERSION": "v0.3.0", + "FILE_LIST": ( + "esp32", + "esp32c2", + "esp32c3", + "esp32c6", + "esp32h2", + "esp32s2", + "esp32s3", + ), + "LICENSE": "dual licensed under the Apache License Version 2.0 or the MIT license", + }, +) + +DESTINATION_DIR = "esptool/targets/stub_flasher" + +README_TEMPLATE = """# Licensing + +The binaries in JSON format distributed in this directory are {LICENSE}. They were released at {URL} from where the sources can be obtained. +""" + + +def main(): + for stub_set in STUBS: + dest_sub_dir = os.path.join(DESTINATION_DIR, stub_set["STUB_SET_VERSION"]) + + """ The directory is cleaned up so we would detect if a stub was just committed into the repository but the + name was not added into the FILE_LIST of STUBS. This would be an unwanted state because the checker would not + detect any changes in that stub.""" + for old_file in glob.glob(os.path.join(dest_sub_dir, "*.json")): + print(f"Removing old file {old_file}") + os.remove(old_file) + + for file_name in stub_set["FILE_LIST"]: + file = ".".join((file_name, "json")) + url = "/".join((stub_set["DOWNLOAD_URL"], stub_set["VERSION"], file)) + dest = os.path.join(dest_sub_dir, file) + print(f"Downloading {url} to {dest}") + urllib.request.urlretrieve(url, dest) + + with open(os.path.join(dest_sub_dir, "README.md"), "w") as f: + print(f"Writing README to {f.name}") + f.write( + README_TEMPLATE.format( + LICENSE=stub_set["LICENSE"], + URL="/".join((stub_set["TAG_URL"], stub_set["VERSION"])), + ) + ) + + +if __name__ == "__main__": + main() diff --git a/ci/setup_ci_build_env.sh b/ci/setup_ci_build_env.sh deleted file mode 100755 index 178bd0eb5..000000000 --- a/ci/setup_ci_build_env.sh +++ /dev/null @@ -1,44 +0,0 @@ -#!/bin/bash - -set -exuo pipefail - -ESP8266_TOOLCHAIN_URL="https://dl.espressif.com/dl/xtensa-lx106-elf-linux64-1.22.0-92-g8facf4c-5.2.0.tar.gz" -ESP32_TOOLCHAIN_URL="https://github.com/espressif/crosstool-NG/releases/download/esp-2022r1/xtensa-esp32-elf-gcc11_2_0-esp-2022r1-linux-amd64.tar.xz" -ESP32S2_TOOLCHAIN_URL="https://github.com/espressif/crosstool-NG/releases/download/esp-2022r1/xtensa-esp32s2-elf-gcc11_2_0-esp-2022r1-linux-amd64.tar.xz" -ESP32S3_TOOLCHAIN_URL="https://github.com/espressif/crosstool-NG/releases/download/esp-2022r1/xtensa-esp32s3-elf-gcc11_2_0-esp-2022r1-linux-amd64.tar.xz" -ESP32C3_TOOLCHAIN_URL="https://github.com/espressif/crosstool-NG/releases/download/esp-2022r1/riscv32-esp-elf-gcc11_2_0-esp-2022r1-linux-amd64.tar.xz" - -# Setup shell script to download & configure ESP8266 & ESP32 toolchains -# for building the flasher stub program - -mkdir -p ${TOOLCHAIN_DIR} -cd ${TOOLCHAIN_DIR} - -if ! [ -d ${ESP8266_BINDIR} ]; then - wget --continue --no-verbose "${ESP8266_TOOLCHAIN_URL}" - tar zxf $(basename ${ESP8266_TOOLCHAIN_URL}) -fi - -if ! [ -d ${ESP32_BINDIR} ]; then - # gitlab CI image may already have this file - wget --continue --no-verbose "${ESP32_TOOLCHAIN_URL}" - tar Jxf $(basename ${ESP32_TOOLCHAIN_URL}) -fi - -if ! [ -d ${ESP32S2_BINDIR} ]; then - # gitlab CI image may already have this file - wget --continue --no-verbose "${ESP32S2_TOOLCHAIN_URL}" - tar Jxf $(basename ${ESP32S2_TOOLCHAIN_URL}) -fi - -if ! [ -d ${ESP32S3_BINDIR} ]; then - # gitlab CI image may already have this file - wget --continue --no-verbose "${ESP32S3_TOOLCHAIN_URL}" - tar Jxf $(basename ${ESP32S3_TOOLCHAIN_URL}) -fi - -if ! [ -d ${ESP32C3_BINDIR} ]; then - # gitlab CI image may already have this file - wget --continue --no-verbose "${ESP32C3_TOOLCHAIN_URL}" - tar Jxf $(basename ${ESP32C3_TOOLCHAIN_URL}) -fi diff --git a/esptool/__init__.py b/esptool/__init__.py index b66a2f1b0..87fd19569 100644 --- a/esptool/__init__.py +++ b/esptool/__init__.py @@ -66,7 +66,7 @@ write_mem, ) from esptool.config import load_config_file -from esptool.loader import DEFAULT_CONNECT_ATTEMPTS, ESPLoader, list_ports +from esptool.loader import DEFAULT_CONNECT_ATTEMPTS, StubFlasher, ESPLoader, list_ports from esptool.targets import CHIP_DEFS, CHIP_LIST, ESP32ROM from esptool.util import ( FatalError, @@ -145,6 +145,15 @@ def main(argv=None, esp=None): action="store_true", ) + # --stub-version can be set with --no-stub so the tests wouldn't fail if this option is implied globally + parser.add_argument( + "--stub-version", + default=os.environ.get("ESPTOOL_STUB_VERSION", StubFlasher.STUB_SUBDIRS[0]), + choices=StubFlasher.STUB_SUBDIRS, + # not a public option and is not subject to the semantic versioning policy + help=argparse.SUPPRESS, + ) + parser.add_argument( "--trace", "-t", @@ -679,6 +688,8 @@ def add_spi_flash_subparsers( print("esptool.py v%s" % __version__) load_config_file(verbose=True) + StubFlasher.set_preferred_stub_subdir(args.stub_version) + # operation function can take 1 arg (args), 2 args (esp, arg) # or be a member function of the ESPLoader class. diff --git a/esptool/loader.py b/esptool/loader.py index 8cfc3a43e..bb9ddcb60 100644 --- a/esptool/loader.py +++ b/esptool/loader.py @@ -99,14 +99,6 @@ # Number of times to try writing a data block WRITE_BLOCK_ATTEMPTS = cfg.getint("write_block_attempts", 3) -STUBS_DIR = os.path.join(os.path.dirname(__file__), "targets", "stub_flasher") - - -def get_stub_json_path(chip_name): - chip_name = strip_chip_name(chip_name) - chip_name = chip_name.replace("esp", "") - return os.path.join(STUBS_DIR, f"stub_flasher_{chip_name}.json") - def timeout_per_mb(seconds_per_mb, size_bytes): """Scales timeouts which are size-specific""" @@ -157,8 +149,12 @@ def esp32s3_or_newer_function_only(func): class StubFlasher: - def __init__(self, json_path): - with open(json_path) as json_file: + STUB_DIR = os.path.join(os.path.dirname(__file__), "targets", "stub_flasher") + # directories will be searched in the order of STUB_SUBDIRS + STUB_SUBDIRS = ["1", "2"] + + def __init__(self, chip_name): + with open(self.get_json_path(chip_name)) as json_file: stub = json.load(json_file) self.text = base64.b64decode(stub["text"]) @@ -174,6 +170,26 @@ def __init__(self, json_path): self.bss_start = stub.get("bss_start") + def get_json_path(self, chip_name): + chip_name = strip_chip_name(chip_name) + for i, subdir in enumerate(self.STUB_SUBDIRS): + json_path = os.path.join(self.STUB_DIR, subdir, f"{chip_name}.json") + if os.path.exists(json_path): + if i: + print( + f"Warning: Stub version {self.STUB_SUBDIRS[0]} doesn't exist, using {subdir} instead" + ) + + return json_path + else: + raise FileNotFoundError(f"Stub flasher JSON file for {chip_name} not found") + + @classmethod + def set_preferred_stub_subdir(cls, subdir): + if subdir in cls.STUB_SUBDIRS: + cls.STUB_SUBDIRS.remove(subdir) + cls.STUB_SUBDIRS.insert(0, subdir) + class ESPLoader(object): """Base class providing access to ESP ROM & software stub bootloaders. @@ -813,11 +829,14 @@ def mem_begin(self, size, blocks, blocksize, offset): """Start downloading an application image to RAM""" # check we're not going to overwrite a running stub with this data if self.IS_STUB: - stub = StubFlasher(get_stub_json_path(self.CHIP_NAME)) + stub = StubFlasher(self.CHIP_NAME) load_start = offset load_end = offset + size for stub_start, stub_end in [ - (stub.bss_start, stub.data_start + len(stub.data)), # DRAM = bss+data + ( + stub.bss_start or stub.data_start, + stub.data_start + len(stub.data), + ), # DRAM = bss+data (stub.text_start, stub.text_start + len(stub.text)), # IRAM ]: if load_start < stub_end and load_end > stub_start: @@ -1018,7 +1037,7 @@ def parse_flash_freq_arg(cls, arg): def run_stub(self, stub=None): if stub is None: - stub = StubFlasher(get_stub_json_path(self.CHIP_NAME)) + stub = StubFlasher(self.CHIP_NAME) if self.sync_stub_detected: print("Stub is already running. No upload is necessary.") diff --git a/esptool/targets/stub_flasher/1/README.md b/esptool/targets/stub_flasher/1/README.md new file mode 100644 index 000000000..0d5ca3834 --- /dev/null +++ b/esptool/targets/stub_flasher/1/README.md @@ -0,0 +1,3 @@ +# Licensing + +The binaries in JSON format distributed in this directory are released as Free Software under GNU General Public License Version 2 or later. They were released at https://github.com/espressif/esptool-legacy-flasher-stub/releases/tag/v1.2.0 from where the sources can be obtained. diff --git a/esptool/targets/stub_flasher/stub_flasher_32.json b/esptool/targets/stub_flasher/1/esp32.json similarity index 100% rename from esptool/targets/stub_flasher/stub_flasher_32.json rename to esptool/targets/stub_flasher/1/esp32.json diff --git a/esptool/targets/stub_flasher/stub_flasher_32c2.json b/esptool/targets/stub_flasher/1/esp32c2.json similarity index 100% rename from esptool/targets/stub_flasher/stub_flasher_32c2.json rename to esptool/targets/stub_flasher/1/esp32c2.json diff --git a/esptool/targets/stub_flasher/stub_flasher_32c3.json b/esptool/targets/stub_flasher/1/esp32c3.json similarity index 100% rename from esptool/targets/stub_flasher/stub_flasher_32c3.json rename to esptool/targets/stub_flasher/1/esp32c3.json diff --git a/esptool/targets/stub_flasher/stub_flasher_32c5.json b/esptool/targets/stub_flasher/1/esp32c5.json similarity index 100% rename from esptool/targets/stub_flasher/stub_flasher_32c5.json rename to esptool/targets/stub_flasher/1/esp32c5.json diff --git a/esptool/targets/stub_flasher/stub_flasher_32c5beta3.json b/esptool/targets/stub_flasher/1/esp32c5beta3.json similarity index 100% rename from esptool/targets/stub_flasher/stub_flasher_32c5beta3.json rename to esptool/targets/stub_flasher/1/esp32c5beta3.json diff --git a/esptool/targets/stub_flasher/stub_flasher_32c6.json b/esptool/targets/stub_flasher/1/esp32c6.json similarity index 100% rename from esptool/targets/stub_flasher/stub_flasher_32c6.json rename to esptool/targets/stub_flasher/1/esp32c6.json diff --git a/esptool/targets/stub_flasher/stub_flasher_32c6beta.json b/esptool/targets/stub_flasher/1/esp32c6beta.json similarity index 100% rename from esptool/targets/stub_flasher/stub_flasher_32c6beta.json rename to esptool/targets/stub_flasher/1/esp32c6beta.json diff --git a/esptool/targets/stub_flasher/stub_flasher_32h2.json b/esptool/targets/stub_flasher/1/esp32h2.json similarity index 100% rename from esptool/targets/stub_flasher/stub_flasher_32h2.json rename to esptool/targets/stub_flasher/1/esp32h2.json diff --git a/esptool/targets/stub_flasher/stub_flasher_32h2beta1.json b/esptool/targets/stub_flasher/1/esp32h2beta1.json similarity index 100% rename from esptool/targets/stub_flasher/stub_flasher_32h2beta1.json rename to esptool/targets/stub_flasher/1/esp32h2beta1.json diff --git a/esptool/targets/stub_flasher/stub_flasher_32h2beta2.json b/esptool/targets/stub_flasher/1/esp32h2beta2.json similarity index 100% rename from esptool/targets/stub_flasher/stub_flasher_32h2beta2.json rename to esptool/targets/stub_flasher/1/esp32h2beta2.json diff --git a/esptool/targets/stub_flasher/stub_flasher_32p4.json b/esptool/targets/stub_flasher/1/esp32p4.json similarity index 100% rename from esptool/targets/stub_flasher/stub_flasher_32p4.json rename to esptool/targets/stub_flasher/1/esp32p4.json diff --git a/esptool/targets/stub_flasher/stub_flasher_32s2.json b/esptool/targets/stub_flasher/1/esp32s2.json similarity index 100% rename from esptool/targets/stub_flasher/stub_flasher_32s2.json rename to esptool/targets/stub_flasher/1/esp32s2.json diff --git a/esptool/targets/stub_flasher/stub_flasher_32s3.json b/esptool/targets/stub_flasher/1/esp32s3.json similarity index 100% rename from esptool/targets/stub_flasher/stub_flasher_32s3.json rename to esptool/targets/stub_flasher/1/esp32s3.json diff --git a/esptool/targets/stub_flasher/stub_flasher_32s3beta2.json b/esptool/targets/stub_flasher/1/esp32s3beta2.json similarity index 100% rename from esptool/targets/stub_flasher/stub_flasher_32s3beta2.json rename to esptool/targets/stub_flasher/1/esp32s3beta2.json diff --git a/esptool/targets/stub_flasher/stub_flasher_8266.json b/esptool/targets/stub_flasher/1/esp8266.json similarity index 100% rename from esptool/targets/stub_flasher/stub_flasher_8266.json rename to esptool/targets/stub_flasher/1/esp8266.json diff --git a/esptool/targets/stub_flasher/2/LICENSE-APACHE b/esptool/targets/stub_flasher/2/LICENSE-APACHE new file mode 100644 index 000000000..f8e5e5ea0 --- /dev/null +++ b/esptool/targets/stub_flasher/2/LICENSE-APACHE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. \ No newline at end of file diff --git a/esptool/targets/stub_flasher/2/LICENSE-MIT b/esptool/targets/stub_flasher/2/LICENSE-MIT new file mode 100644 index 000000000..3e8a08534 --- /dev/null +++ b/esptool/targets/stub_flasher/2/LICENSE-MIT @@ -0,0 +1,25 @@ +Copyright 2022 esp-rs + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. diff --git a/esptool/targets/stub_flasher/2/README.md b/esptool/targets/stub_flasher/2/README.md new file mode 100644 index 000000000..eae371e43 --- /dev/null +++ b/esptool/targets/stub_flasher/2/README.md @@ -0,0 +1,3 @@ +# Licensing + +The binaries in JSON format distributed in this directory are dual licensed under the Apache License Version 2.0 or the MIT license. They were released at https://github.com/esp-rs/esp-flasher-stub/releases/tag/v0.3.0 from where the sources can be obtained. diff --git a/esptool/targets/stub_flasher/2/esp32.json b/esptool/targets/stub_flasher/2/esp32.json new file mode 100644 index 000000000..8e6bd0538 --- /dev/null +++ b/esptool/targets/stub_flasher/2/esp32.json @@ -0,0 +1 @@ +{"entry":1074274996,"text":"AMVJENVJIOVJMPVJADQA8EEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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IQKkeCEAMFwhAqR4IQD4XCEDmEwhA7RQIQEYVCEDoFwhAlRwIQN4UCEAWGQhAaRkIQKIVCEDtFAhATisIQA4pCEAGLAhABiwIQAYsCEA5KwhABiwIQAYsCEA/KwhARSsIQEsrCEDA29zb3QA6ADsAPAA9AD4APwBAAEEAAAAAAAAA/zcGAAAAOAAAiMAoAAAAUwAAAYQAAAAAAEAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAwAAAAEAAAABAAAAAAAAAAMAAAAAAAAAAQAAAAEAAAACAAAAAgAAAAIAAAADAAAAAwAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAwAAAAAAAAAAAAAAAAABAAIAAwAEAAUABgAHAAgACQBFAEUADAANAA4ADwAQABEAEgATABQAFQAWABcAGAAZABoAGwAcAB0AHgAfACAAIQAiACMAJAAlACYAJwAoACkAKgArACwALQAuAC8AMAAxADIAMwA0ADUANgA3ADgAOQA6ADsAPAA9AD4APwBAAEEAQgBDAEQAAAAAAQAA","data_start":1073414144} \ No newline at end of file diff --git a/esptool/targets/stub_flasher/2/esp32c2.json b/esptool/targets/stub_flasher/2/esp32c2.json new file mode 100644 index 000000000..72c2ac6cc --- /dev/null +++ b/esptool/targets/stub_flasher/2/esp32c2.json @@ -0,0 +1 @@ +{"entry":1077411840,"text":"twA4QGeAgAAXFZP/EwVFsJfVk/+ThYXyY1e1AIFGFMERBeNOtf6BQAFBgUEBQoFCAUOBQwFEgUQBRYFFAUaBRgFHgUcBSIFIAUmBSQFKgUoBS4FLAUyBTAFNgU0BToFOAU+BT5cRk/+TgYEq8yNA8bcCAACTggIAY/RyAG8AgAQXAZX/EwEB+JFCMwFRQBNxAf8KhG8AQABBEQbGlxAAAOeAQHWXEAAA54DATTflyz+3xa3ek4XlqyMstfKXAAAA54DgTm8AAABBEQbGlwDI/+eAAAcTNRUAfRUTdTUGskBBAYKAQREGxoNFFQADRgUAg0YlAANHNQCiBdGNwgZiB9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hAPho4QD4aOEA+GjhAPho4QD4aOEA+GjhAPho4QD4aOEA+GjhAPho4QD4aOEA+GjhAPho4QD4aOEA+GjhAPho4QD4aOEA+GjhAPho4QD4aOEA+GjhAPho4QD4aOEA+GjhAPho4QD4aOEA+GjhAPho4QD4aOEA+GjhAPho4QD4aOEA+GjhAPho4QD4aOEA+GjhAPho4QA==","text_start":1077411840,"data":"0As4QKIMOEDeDDhA0As4QIoOOECiDDhATA04QLQNOEDoDjhAFA84QOIUOEAyDThA4hQ4QOgNOEDQCzhAogw4QN4MOEBeDzhAgA04QI4MOED4EThAZBA4QCgNOECiDDhAAAEcAh0OGAMeFhQPGREECB8bDRcVExAHGgwSBgsFCgnA29zb3QAAAAEAAAACAAAAAwAAAAQAAAAFAAAABgAAAAcAAAAIAAAACQAAAAoAAAALAAAADAAAAA0AAAAOAAAADwAAAD4aOEA+GjhAAAAAAD4aOEA+GjhAPho4QAAAAAA+GjhAPho4QD4aOEAAAAAAPho4QAQAAAAEAAAABAAAAAQAAAAMAAAABAAAAAwAAAAEAAAABAAAAAwAAABAAAAAgAAAAAAIAAAAAAAQQAAAAAAgAAAEAAAABAAAACAAAAACAAAACAAAAAgAAAAIAAAACAAAABAAAAAIAAAAEAAAAAgAAAAIAAAAEAAAAL////9///////f//////++//////9////v////7////3/////3///8=","data_start":1070268448} \ No newline at end of file diff --git a/esptool/targets/stub_flasher/2/esp32c3.json b/esptool/targets/stub_flasher/2/esp32c3.json new file mode 100644 index 000000000..97538d65a --- /dev/null +++ b/esptool/targets/stub_flasher/2/esp32c3.json @@ -0,0 +1 @@ +{"entry":1077411840,"text":"twA4QGeAgAAXFZH/EwVFq5fVkf+ThYXtY1e1AIFGFMERBeNOtf4XBcgPEwWl/ZcFyA+ThSX9Y1e1AIFGFMERBeNOtf6BQAFBgUEBQoFCAUOBQwFEgUQBRYFFAUaBRgFHgUcBSIFIAUmBSQFKgUoBS4FLAUyBTAFNgU0BToFOAU+BT5cRkf+TgaEj8yNA8bcCA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DKQUEgynFAwMqhQODKkUDAysFA4MrxQIDLIUCgyxFAgMtBQKDLcUBcWGCgAAAQgVBgTc2OEATBgarCgUylRxBNyU4QBMFBddjhKcALoWChwAAqoUJRRcDAABnACPAqoUNRRcDAABnAGO/qoURRRcDAABnAKO+qoUVRRcDAABnAOO9qoUZRRcDAABnACO9qoUdRRcDAABnAGO8qoUhRRcDAABnAKO7qoUlRRcDAABnAOO6qoUpRRcDAABnACO6qoUtRRcDAABnAGO5qoUxRRcDAABnAKO4qoU1RRcDAABnAOO3qoU5RRcDAABnACO3qoU9RRcDAABnAGO2AABwHThAcB04QHAdOEBwHThAcB04QHAdOEBwHThAcB04QHAdOEBwHThAcB04QHAdOEBwHThAcB04QHAdOEBwHThAcB04QHAdOEBwHThAcB04QHAdOEBwHThAcB04QHAdOEBwHThAcB04QHAdOEBwHThAcB04QHAdOEBwHThAcB04QHAdOEBwHThAcB04QHAdOEBwHThAcB04QHAdOEBwHThAcB04QHAdOEBwHThAcB04QHAdOEBwHThAcB04QHAdOEBwHThAcB04QHAdOEBwHThAcB04QHAdOEBwHThAcB04QHAdOEBwHThAcB04QHAdOEBwHThAcB04QA==","text_start":1077411840,"data":"4Aw4QLYNOEDyDThA4Aw4QJwPOEC2DThAXg44QMYOOED6DzhAJhA4QJwKOEBEDjhAnAo4QPoOOEDgDDhAtg04QPINOEBwEDhAkg44QKINOEAKEzhAdhE4QDoOOEC2DThAAAEcAh0OGAMeFhQPGREECB8bDRcVExAHGgwSBgsFCgnA29zb3QAAAAEAAAACAAAAAwAAAAQAAAAFAAAABgAAAAcAAAAIAAAACQAAAAoAAAALAAAADAAAAA0AAAAOAAAADwAAAHAdOEBwHThAAAAAAHAdOEBwHThAcB04QAAAAABwHThAcB04QHAdOEAAAAAAcB04QA==","data_start":1070137376} \ No newline at end of file diff --git a/esptool/targets/stub_flasher/2/esp32c6.json b/esptool/targets/stub_flasher/2/esp32c6.json new file mode 100644 index 000000000..25c771065 --- /dev/null +++ b/esptool/targets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UhUUihZcAAADngACUhUUihZcAAADngACUIoWBRZcAAADngECQIoWBRZcAAADngECQSkVFjSrJABECywLNAtG3BABAJs8ihZcAAADngOCShUUihZcAAADngKCNhUUihZcAAADngKChhUUihZcAAADngKCNClUzdSUBRY2q1CrRAtkIGYVFlwAAAOeAgI0IGZcAAADngKCNCBmXAAAA54DAjQgZgUWXAAAA54CAiAgZhUWXAAAA54CAnAgZhUWXAAAA54CAiALTIBEC1QLXSBGBRZcAAADngACLGlUzdXUB3t4q00gRlwAAAOeAgIFIEZcAAADngKCBIoWXAAAA54BAiSKFlwAAAOeAYIkihZcAAADngICJKlWDRcEKM3W1ATNlhQGq1irVLtdBRSrbSBmpRZfw///ngOBISBmtRZfw///ngCBIWlW3RY///RVtjbcFEABNjSrbSBn1RZfw///ngEBGAt0oGZcAAADngKCEKBmXAAAA54CghCgZlwAAAOeAoIQoGZcAAADngKCEKBmXAAAA54CghCgZlwAAAOeAoIQoGZcAAADngKCEKBmXAAAA54CghCgZlwAAAOeAoIRKXFpVqs5qVarMKkUq0DpFKtJaRSrYakUq1npFKtQaVSreAsVkAQLHAskoAYVFl/D//+eAQHAoAZfw///ngOBxKkUzdWUBKsUoAYVFl/D//+eAIHIoAYFFl/D//+eA4HIoAZfw///ngMBtKAGX8P//54DgbYVFJoWX8P//54CgboVFJoWX8P//54CgbiaFl/D//+eAwG4mhYFFl/D//+eAwG4mhYFFl/D//+eAwG5KRTN1NQEqyQQRAssCzQLPAtEmhZfw///ngEBvJoWBRZfw///ngABqhUUmhZfw///ngAB+hUUmhZfw///ngABqClVKxDN9JQFq0QLTJBEC1QLXSBGBRZfw///ngOBrGlUzdXUBKtNIEZfw///ngIBiSBGX8P//54CgYiaFl/D//+eAQGomhZfw///ngGBqJoWX8P//54CAaipVM3W1AYNFwQo3BgAIUY2qyirVLtcTBQAgKtkIGalFl/D//+eAoCkIGbFFl/D//+eA4CgIGbVFl/D//+eAIChKVbcFceD9FW2NtwWAEk2NKtkIGflFl/D//+eA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CAQNwwgEDcMIBA3DCAQNwwgEDcMIBA3DCAQNwwgEDcMIBA3DCAQNwwgEDcMIBA3DCAQNwwgEDcMIBA3DCAQNwwgEDcMIBA3DCAQNwwgEDcMIBA3DCAQNwwgEDcMIBA3DCAQA==","text_start":1082130432,"data":"4AuAQLYMgEDyDIBA4AuAQJwOgEC2DIBAXg2AQMYNgED6DoBAJg+AQPYUgEBEDYBA9hSAQPoNgEDgC4BAtgyAQPIMgEBwD4BAkg2AQKIMgEAKEoBAdhCAQDoNgEC2DIBA3////9/////f////f////+/////f////3//////+//8gAAAAIAAAACAAAACAAAAAEAAAACAAAAAgAAAAAAEAAAABHAIdDhgDHhYUDxkRBAgfGw0XFRMQBxoMEgYLBQoJwNvc290AAAABAAAAAgAAAAAAAAAAAAAAAwAAAAQAAAAAAAAAAAAAAAUAAAAGAAAABwAAAAgAAAAJAAAACgAAAAsAAAAMAAAADQAAAA4AAAAPAAAAAQAAAAIAAAAFAAAABgAAAAkAAAAKAAAACwAAAAwAAAANAAAADgAAAA8AAAAQAAAAEQAAABIAAAATAAAA3DCAQNwwgEAAAAAA3DCAQNwwgEDcMIBAAAAAANwwgEDcMIBA3DCAQAAAAADcMIBA","data_start":1082146852} \ No newline at end of file diff --git a/esptool/targets/stub_flasher/2/esp32h2.json b/esptool/targets/stub_flasher/2/esp32h2.json new file mode 100644 index 000000000..310e523e2 --- /dev/null +++ b/esptool/targets/stub_flasher/2/esp32h2.json @@ -0,0 +1 @@ +{"entry":1082130432,"text":"twCAQGeAgAAXNQAAEwUFtpf1AACThUX4Y1e1AIFGFMERBeNOtf4XBYAPEwWl/ZcFgA+ThSX9Y1e1AIFGFMERBeNOtf6BQAFBgUEBQoFCAUOBQwFEgUQBRYFFAUaBRgFHgUcBSIFIAUmBSQFKgUoBS4FLAUyBTAFNgU0BToFOAU+BT5cxAACTgWEu8yNA8bcCAACTggIAY/RyAG8AgAQX8QMAEwEh85FCMwFRQBNxAf8KhG8AQABBEQbGlxAAAOeAQG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G4BA","text_start":1082130432,"data":"vAuAQJIMgEDODIBAvAuAQHgOgECSDIBAOg2AQKINgEDWDoBAAg+AQNIUgEAgDYBA0hSAQNYNgEC8C4BAkgyAQM4MgEBMD4BAbg2AQH4MgEDmEYBAUhCAQBYNgECSDIBAAAIAAAACAAAAAgAAAAgAAAABAAAAAgAAAAIAAAAQAAD//f////3////9////9/////7////9/////f///+///wABHAIdDhgDHhYUDxkRBAgfGw0XFRMQBxoMEgYLBQoJwNvc290AAAABAAAAAgAAAAAAAAAAAAAAAwAAAAQAAAAAAAAAAAAAAAUAAAAGAAAABwAAAAgAAAAJAAAACgAAAAsAAAAMAAAADQAAAA4AAAAPAAAAAQAAAAIAAAAFAAAABgAAAAkAAAAKAAAACwAAAAwAAAANAAAADgAAAA8AAAAQAAAAEQAAABIAAAATAAAAKBuAQCgbgEAAAAAAKBuAQCgbgEAoG4BAAAAAACgbgEAoG4BAKBuAQAAAAAAoG4BA","data_start":1082141160} \ No newline at end of file diff --git a/esptool/targets/stub_flasher/2/esp32s2.json b/esptool/targets/stub_flasher/2/esp32s2.json new file mode 100644 index 000000000..23ffd983c --- /dev/null +++ b/esptool/targets/stub_flasher/2/esp32s2.json @@ -0,0 +1 @@ +{"entry":1073913140,"text":"AMVJENVJIOVJMPVJADQA8EEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADFCRDVCSDlCTD1CQA1AAAASAPwgEAg5gMgODRAMzBA0QOAMxEwIjAg5hMQIAD3dM7wgEDneEjwgECGMADwQQAAyUkA0QkQ2Ukg6Ukw+UlAgElQkElgoElwsEkANADwQQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMkJENkJIOkJcNEJMPkJQIcJUJcJYKcJcLcJADUA8EEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADNSQDRCRDdSSDtSTD9SUBASVBQSWBgSXBwSYCASZCQSaCgSbCwSQA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W/4A5hMQIABioAUQcSCV0P8F3P8CIQEAxRMCIQAAtRMCIQISIQMQIAAQNQDwQQAQASAS0f8CYQMA0UkAxgMCYQEAtgMCYQAAwUkA1gMCYQJFz/8BR/4A5hMQIABioAYQcSBVzP/F1v8CIQEAxhMCIQAAthMCIQISIQMQIAAQNgDwQQAQASAS0f8CYQMA0UkAxwMCYQEAtwMCYQAAwUkA1wMCYQIFyv8BM/4A5hMQIABioAcQcSAVyP+F0f8CIQEAxxMCIQAAtxMCIQISIQMQIAAQNwDwQQA2QQCBEP6tAr0D4AgAHfAANkEA8EEAAAAEowJABKMCQASjAkAEowJABKMCQASjAkAEowJABKMCQASjAkAEowJABKMCQASjAkAEowJABKMCQASjAkAEowJABKMCQASjAkAEowJABKMCQASjAkAEowJABKMCQASjAkAEowJABKMCQASjAkAEowJABKMCQASjAkAEowJABKMCQASjAkAEowJABKMCQASjAkAEowJABKMCQASjAkAEowJABKMCQAAAAAAAAAAAAAAAAAAAAAAEowJABKMCQASjAkAEowJABKMCQASjAkAEowJABKMCQASjAkAEowJABKMCQASjAkAEowJABKMCQASjAkAEowJABKMCQASjAkAEowJABKMCQASjAkAEowJABKMCQASjAkAEowJABKMCQASjAkAEowJABKMCQAAAAAAEowJABKMCQASjAkAEowJABKMCQASjAkAEowJABKMCQASjAkAAAAAABKMCQASjAkAEowJABKMCQASjAkAAAAAABKMCQASjAkAEowJABKMCQA==","text_start":1073905664,"data":"a5ACQG+RAkAbkgJAa5ACQGuSAkBvkQJA2pICQBCTAkBgkwJAvpMCQMCaAkDtkwJAwJoCQByUAkBrkAJAb5ECQBuSAkDGlAJA0pUCQF2RAkAClgJAWJYCQFmYAkBvkQJAvKYCQCKkAkADpwJAA6cCQAOnAkCnpgJAA6cCQAOnAkCtpgJAs6YCQLmmAkDA29zb3QA+AD8AQABBAEIAQwBEAEUARwBIAEkAAAAAAP83BgAAADgAAIjAKAAAAFMAAAGEAAAAAABAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAMAAAABAAAAAQAAAAAAAAADAAAAAAAAAAEAAAABAAAAAgAAAAIAAAACAAAAAwAAAAMAAAAAAAAAAAAAAAAAAAADAAAAAAAAAAMAAAAAAAAAAAAAAAAAAQACAAMABAAFAAYABwAIAAkACgALAAwADQAOAA8AEAARABIAEwAUABUAFgAXABgAGQAaABsAHAAdAB4AHwAgACEAIgAjACQAJQAmACcAKABfAF8AXwBfAC0ALgAvADAAMQAyADMANAA1ADYANwA4ADkAOgA7ADwAPQA+AD8AQABBAEIAQwBEAEUARgBHAEgASQBfAEsATABNAE4ATwBQAFEAUgBTAF8AVQBWAFcAWABZAF8AWwBcAF0AXgAAAA==","data_start":1073464320} \ No newline at end of file diff --git a/esptool/targets/stub_flasher/2/esp32s3.json b/esptool/targets/stub_flasher/2/esp32s3.json new file mode 100644 index 000000000..8be985b1b --- /dev/null +++ b/esptool/targets/stub_flasher/2/esp32s3.json @@ -0,0 +1 @@ +{"entry":1077391268,"text":"AMVJENVJIOVJMPVJADQA8EEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADFCRDVCSDlCTD1CQA1AAAASAPwgEAg5gMgODRAMzBA0QOAMxEwIjAg5hMQIAD3dM7wgEDneEjwgECGMADwQQAAyUkA0QkQ2Ukg6Ukw+UlAgElQkElgoElwsEkANADwQQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMkJENkJIOkJcNEJMPkJQIcJUJcJYKcJcLcJADUA8EEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADNSQDRCRDdSSDtSTD9SUBASVBQSWBgSXBwSYCASZCQSaCgSbCwSQA0APBBAAAAAAAAAAAAAAAAAAAAAAAAAAAAzQkQ3Qkg7Qmw0Qkw/QlASwlQWwlgawlwewmAiwmQmwmgqwmwuwkANQDwQQAAAAAAAAAAAAAAAAAAAAAAAAAAANIThR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AAYDRwAGD0EQBAGIADYP/0//+ctDdAoKk3QJifN0CmD8k/GAAMYAAAAAEQAABgEQEEAAwAAGACcAAAeAAAYAAAcAMUAABgWwEwACAAAGAkqTdAAAAABAAABACAAABgAAAAgP//+/8AAAIA///9/wAGAECQD8k/4CgAAKANAADoEQBAdB8AQDhAAGDsCgBAvIc3QD4pAACEijdADIo3QAD/AACsAMk/IADJP2wAyT/YBgBAnIg3QFwcAEAIizdAARAAAKCHN0BoHABAOAoAQJwJAEB0gQRA/Ig3QJg6AADw//8AqAYAQBAnAACECQBAkAkAQLTTyT8AgAAAAYAAALRTyT8oCABAhIg3QADw//8AQAAALAoAQHCZAAAYmQAAo5gAAKKYAAChmAAAoJgAAJmYAACYmAAAl5gAAJaYAACVmAAAlJgAAJuYAACamAAAkpgAAJyYAACfmAAAnpgAAJ2YAACTmAAApJgAAKiYAAAAmQAAHAAMYCQADGAgAAxgACAAAAAoDGAAIAxg1ADJP1QByT/AgABg9KE3QPz/AwAcojdAdIAAYAAAACD//v87aPABYIDwAWD/jwCAQBMCAAcLAQAAAAk9bPABYP///38ASOgBQEIPAD9CDwAAWmICbKw3QFSAAGCQgABgbF0AQDSAAGD////7HIAAYD/A/wAABQAULIAAYP8A//8kgABgAQIBAjCAAGAAAP//KIAAYAAAAQIggABg/38A/wAACAAsQQxgqGACYAhADGBoQAxg6DAAYOggAGAAgABg/9///3/1//+IgABg///3/4SAAGD///9fAAAAEBQADGD/9v//nGACYFTQAWDUzAFgkGAAYPBQAGCwYAJgAMD/////7/+UgABg////P////8///z///+////////P//7///////P+////P//f//6///0CAAGBMgABgsIAAYKE62FCYgABg/+//f2TwAWBI8AFgZAACYEgAAmBcqTdAoKw3QKisN0CQD8k/uNPJPwCAN0CwojdACI03QGiqN0A2QQCBF/+tAr0DzQTgCAAMAicaAiKgYx3wAAAANkEAggIAkgIBgJkRgIkgkgICAJkRogIDgKoBkJoggKkgggIEkgIFgJkRgIkgkgIGAJkRsgIHgLsBkJsggLkgggI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AwJhAQC3AwJhAADBSQDXAwJhAkW6/wFE/gDmExAgAGKgBxBxIBWz/4XJ/wIhAQDHEwIhAAC3EwIhAhIhAxAgABA3APBBADZBAIEQ/q0CvQPgCAAd8AA2QQDwQQAAAISsN0CErDdAhKw3QISsN0CErDdAhKw3QISsN0CErDdAhKw3QISsN0CErDdAhKw3QISsN0CErDdAhKw3QISsN0CErDdAhKw3QISsN0CErDdAhKw3QISsN0CErDdAAAAAAISsN0CErDdAhKw3QISsN0CErDdAhKw3QISsN0CErDdAhKw3QAAAAAAAAAAAhKw3QISsN0CErDdAhKw3QISsN0CErDdAhKw3QISsN0CErDdAhKw3QISsN0AAAAAAhKw3QISsN0CErDdAhKw3QISsN0CErDdAhKw3QISsN0CErDdAhKw3QISsN0CErDdAhKw3QISsN0CErDdAhKw3QISsN0CErDdAhKw3QISsN0CErDdAhKw3QISsN0CErDdAhKw3QISsN0CErDdAhKw3QISsN0CErDdAhKw3QAAAAACErDdAhKw3QISsN0CErDdAhKw3QISsN0CErDdAhKw3QISsN0CErDdAhKw3QISsN0CErDdAhKw3QISsN0CErDdAhKw3QISsN0CErDdAhKw3QA==","text_start":1077379072,"data":"lZQ3QJmVN0BFljdAlZQ3QJWWN0CZlTdABJc3QDqXN0CKlzdA6Jc3QOmeN0AXmDdA6Z43QEaYN0CVlDdAmZU3QEWWN0DvmDdA+5k3QIeVN0ArmjdAgZo3QIGcN0CZlTdATK43QN+tN0BTrjdAU643QFOuN0A3rjdAU643QFOuN0A9rjdAQ643QEmuN0DA29zb3QAAAAAAAAD/NwYAAAA4AACIwCgAAABTAAABhAAAAAAAQAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAADAAAAAQAAAAEAAAAAAAAAAwAAAAAAAAABAAAAAQAAAAIAAAACAAAAAgAAAAMAAAADAAAAAAAAAAAAAAAAAAAAAwAAAAAAAAADAAAAAAAAAAAAAAAAAAEAAgADAAQABQAGAAcACAAJAAoACwA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAA==","data_start":1070137376} \ No newline at end of file diff --git a/flasher_stub/Makefile b/flasher_stub/Makefile deleted file mode 100644 index b1ca91207..000000000 --- a/flasher_stub/Makefile +++ /dev/null @@ -1,193 +0,0 @@ -# Makefile to compile the flasher stub program -# -# Note that YOU DO NOT NEED TO COMPILE THIS IN ORDER TO JUST USE -# esptool.py - a precompiled version is included in esptool.py, -# so if you don't want to modify the stub code then you are good to go. -# -# See the comments in the top of the Makefile for parameters that -# you probably want to override. -# -# Copyright (c) 2016 Cesanta Software Limited & Angus Gratton -# All rights reserved -# -# -# This program is free software; you can redistribute it and/or modify it under -# the terms of the GNU General Public License as published by the Free Software -# Foundation; either version 2 of the License, or (at your option) any later version. -# -# This program 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 General Public License for more details. -# -# You should have received a copy of the GNU General Public License along with -# this program; if not, write to the Free Software Foundation, Inc., 51 Franklin -# Street, Fifth Floor, Boston, MA 02110-1301 USA. - -# Adapted from Cesanta's original Makefile at -# https://github.com/cesanta/fnc/tree/master/common/platforms/esp8266/stubs - -# Override these variables on the command line -# or set them in a local.mk --include local.mk - -# Prefix for each cross compiler (can include a directory path) -# These can be overridden via environment variables or on the make command line -CROSS_8266 ?= xtensa-lx106-elf- -CROSS_32 ?= xtensa-esp32-elf- -CROSS_32S2 ?= xtensa-esp32s2-elf- -CROSS_32S3 ?= xtensa-esp32s3-elf- -CROSS_ESPRISCV32 ?= riscv32-esp-elf- - -# extra CFLAGS to be passed on the compiler, in addition to the stock ones -EXTRA_CFLAGS ?= -EXTRA_CFLAGS_ESPRISCV32 ?= - -# Python command to invoke wrap_stub.py -WRAP_STUB ?= ./wrap_stub.py - -# Pass V=1 to see the commands being executed by make -ifneq ("$(V)","1") -Q = @ -endif - -STUB = stub_flasher -SRCS = stub_flasher.c slip.c stub_commands.c stub_write_flash.c stub_io.c -SRCS_8266 = miniz.c - -BUILD_DIR = build -ESPTOOL_STUBS_DIR = ../esptool/targets/stub_flasher - -STUB_ELF_8266 = $(BUILD_DIR)/$(STUB)_8266.elf -STUB_ELF_32 = $(BUILD_DIR)/$(STUB)_32.elf -STUB_ELF_32S2 = $(BUILD_DIR)/$(STUB)_32s2.elf -STUB_ELF_32S3_BETA_2 = $(BUILD_DIR)/$(STUB)_32s3beta2.elf -STUB_ELF_32S3 = $(BUILD_DIR)/$(STUB)_32s3.elf -STUB_ELF_32C3 = $(BUILD_DIR)/$(STUB)_32c3.elf -STUB_ELF_32C6BETA = $(BUILD_DIR)/$(STUB)_32c6beta.elf -STUB_ELF_32H2_BETA_1 = $(BUILD_DIR)/$(STUB)_32h2beta1.elf -STUB_ELF_32H2_BETA_2 = $(BUILD_DIR)/$(STUB)_32h2beta2.elf -STUB_ELF_32C2 = $(BUILD_DIR)/$(STUB)_32c2.elf -STUB_ELF_32C6 = $(BUILD_DIR)/$(STUB)_32c6.elf -STUB_ELF_32C5 = $(BUILD_DIR)/$(STUB)_32c5.elf -STUB_ELF_32C5_BETA_3 = $(BUILD_DIR)/$(STUB)_32c5beta3.elf -STUB_ELF_32H2 = $(BUILD_DIR)/$(STUB)_32h2.elf -STUB_ELF_32P4 = $(BUILD_DIR)/$(STUB)_32p4.elf - -STUBS_ELF = -ifneq ($(WITHOUT_ESP8266),1) -STUBS_ELF += \ - $(STUB_ELF_8266) -endif - -ifneq ($(WITHOUT_ESP32_XTENSA),1) -STUBS_ELF += \ - $(STUB_ELF_32) \ - $(STUB_ELF_32S2) \ - $(STUB_ELF_32S3_BETA_2) \ - $(STUB_ELF_32S3) -endif - -ifneq ($(WITHOUT_ESP32_RISCV32),1) -STUBS_ELF += \ - $(STUB_ELF_32C3) \ - $(STUB_ELF_32C6BETA) \ - $(STUB_ELF_32H2_BETA_1) \ - $(STUB_ELF_32H2_BETA_2) \ - $(STUB_ELF_32C2) \ - $(STUB_ELF_32C6) \ - $(STUB_ELF_32C5) \ - $(STUB_ELF_32C5_BETA_3) \ - $(STUB_ELF_32H2) \ - $(STUB_ELF_32P4) -endif - -.PHONY: all clean install - -all: $(STUBS_ELF:.elf=.json) - -install: $(patsubst $(BUILD_DIR)/%.elf,$(ESPTOOL_STUBS_DIR)/%.json,$(STUBS_ELF)) - -$(BUILD_DIR): - $(Q) mkdir $@ - -$(BUILD_DIR)/%.json: $(BUILD_DIR)/%.elf - @echo " WRAP $^ -> $(BUILD_DIR)" - $(Q) $(WRAP_STUB) $^ - -$(ESPTOOL_STUBS_DIR)/%.json: $(BUILD_DIR)/%.json - @echo " INSTALL $^ -> $@" - $(Q) cp $^ $@ - -CFLAGS = -std=c99 -Wall -Werror -Os \ - -mtext-section-literals -mlongcalls -nostdlib -fno-builtin -flto \ - -Wl,-static -g -ffunction-sections -Wl,--gc-sections -Iinclude -Lld \ - $(EXTRA_CFLAGS) -CFLAGS_ESPRISCV32 = -std=c99 -Wall -Werror -Os \ - -march=rv32imc -mabi=ilp32 -msmall-data-limit=0 \ - -nostdlib -fno-builtin -flto \ - -Wl,-static -g -ffunction-sections -Wl,--gc-sections -Iinclude -Lld \ - $(EXTRA_CFLAGS_ESPRISCV32) -LDLIBS = -lgcc - -$(STUB_ELF_8266): $(SRCS) $(SRCS_8266) $(BUILD_DIR) ld/stub_8266.ld | Makefile - @echo " CC(8266) $^ -> $@" - $(Q) $(CROSS_8266)gcc $(CFLAGS) -DESP8266=1 -Tstub_8266.ld -Wl,-Map=$(@:.elf=.map) -o $@ $(filter %.c, $^) $(LDLIBS) - -$(STUB_ELF_32): $(SRCS) $(BUILD_DIR) ld/stub_32.ld | Makefile - @echo " CC(32) $^ -> $@" - $(Q) $(CROSS_32)gcc $(CFLAGS) -DESP32=1 -Tstub_32.ld -Wl,-Map=$(@:.elf=.map) -o $@ $(filter %.c, $^) $(LDLIBS) - -$(STUB_ELF_32S2): $(SRCS) $(BUILD_DIR) ld/stub_32s2.ld - @echo " CC(32S2) $^ -> $@" - $(Q) $(CROSS_32S2)gcc $(CFLAGS) -DESP32S2=1 -Tstub_32s2.ld -Wl,-Map=$(@:.elf=.map) -o $@ $(filter %.c, $^) $(LDLIBS) - -$(STUB_ELF_32S3_BETA_2): $(SRCS) $(BUILD_DIR) ld/stub_32s3_beta_2.ld - @echo " CC(32S3) $^ -> $@" - $(Q) $(CROSS_32S3)gcc $(CFLAGS) -DESP32S3BETA2=1 -Tstub_32s3_beta_2.ld -Wl,-Map=$(@:.elf=.map) -o $@ $(filter %.c, $^) $(LDLIBS) - -$(STUB_ELF_32S3): $(SRCS) $(BUILD_DIR) ld/stub_32s3.ld - @echo " CC(32S3) $^ -> $@" - $(Q) $(CROSS_32S3)gcc $(CFLAGS) -DESP32S3=1 -Tstub_32s3.ld -Wl,-Map=$(@:.elf=.map) -o $@ $(filter %.c, $^) $(LDLIBS) - -$(STUB_ELF_32C3): $(SRCS) $(BUILD_DIR) ld/stub_32c3.ld - @echo " CC(32C3) $^ -> $@" - $(Q) $(CROSS_ESPRISCV32)gcc $(CFLAGS_ESPRISCV32) -DESP32C3=1 -Tstub_32c3.ld -Wl,-Map=$(@:.elf=.map) -o $@ $(filter %.c, $^) $(LDLIBS) - -$(STUB_ELF_32C6BETA): $(SRCS) $(BUILD_DIR) ld/stub_32c6_beta.ld - @echo " CC(32C6BETA) $^ -> $@" - $(Q) $(CROSS_ESPRISCV32)gcc $(CFLAGS_ESPRISCV32) -DESP32C6BETA=1 -Tstub_32c6_beta.ld -Wl,-Map=$(@:.elf=.map) -o $@ $(filter %.c, $^) $(LDLIBS) - -$(STUB_ELF_32H2_BETA_1): $(SRCS) $(BUILD_DIR) ld/stub_32h2_beta_1.ld - @echo " CC(32H2BETA1) $^ -> $@" - $(Q) $(CROSS_ESPRISCV32)gcc $(CFLAGS_ESPRISCV32) -DESP32H2BETA1=1 -Tstub_32h2_beta_1.ld -Wl,-Map=$(@:.elf=.map) -o $@ $(filter %.c, $^) $(LDLIBS) - -$(STUB_ELF_32H2_BETA_2): $(SRCS) $(BUILD_DIR) ld/stub_32h2_beta_2.ld - @echo " CC(32H2BETA2) $^ -> $@" - $(Q) $(CROSS_ESPRISCV32)gcc $(CFLAGS_ESPRISCV32) -DESP32H2BETA2=1 -Tstub_32h2_beta_2.ld -Wl,-Map=$(@:.elf=.map) -o $@ $(filter %.c, $^) $(LDLIBS) - -$(STUB_ELF_32C2): $(SRCS) $(BUILD_DIR) ld/stub_32c2.ld - @echo " CC(32C2) $^ -> $@" - $(Q) $(CROSS_ESPRISCV32)gcc $(CFLAGS_ESPRISCV32) -DESP32C2=1 -Tstub_32c2.ld -Wl,-Map=$(@:.elf=.map) -o $@ $(filter %.c, $^) $(LDLIBS) - -$(STUB_ELF_32C6): $(SRCS) $(BUILD_DIR) ld/stub_32c6.ld - @echo " CC(32C6) $^ -> $@" - $(Q) $(CROSS_ESPRISCV32)gcc $(CFLAGS_ESPRISCV32) -DESP32C6=1 -Tstub_32c6.ld -Wl,-Map=$(@:.elf=.map) -o $@ $(filter %.c, $^) $(LDLIBS) - -$(STUB_ELF_32C5): $(SRCS) $(BUILD_DIR) ld/stub_32c5.ld - @echo " CC(32C5) $^ -> $@" - $(Q) $(CROSS_ESPRISCV32)gcc $(CFLAGS_ESPRISCV32) -DESP32C5=1 -Tstub_32c5.ld -Wl,-Map=$(@:.elf=.map) -o $@ $(filter %.c, $^) $(LDLIBS) - -$(STUB_ELF_32C5_BETA_3): $(SRCS) $(BUILD_DIR) ld/stub_32c5_beta_3.ld - @echo " CC(32C5BETA3) $^ -> $@" - $(Q) $(CROSS_ESPRISCV32)gcc $(CFLAGS_ESPRISCV32) -DESP32C5BETA3=1 -Tstub_32c5_beta_3.ld -Wl,-Map=$(@:.elf=.map) -o $@ $(filter %.c, $^) $(LDLIBS) - -$(STUB_ELF_32H2): $(SRCS) $(BUILD_DIR) ld/stub_32h2.ld - @echo " CC(32H2) $^ -> $@" - $(Q) $(CROSS_ESPRISCV32)gcc $(CFLAGS_ESPRISCV32) -DESP32H2=1 -Tstub_32h2.ld -Wl,-Map=$(@:.elf=.map) -o $@ $(filter %.c, $^) $(LDLIBS) - -$(STUB_ELF_32P4): $(SRCS) $(BUILD_DIR) ld/stub_32p4.ld - @echo " CC(32P4) $^ -> $@" - $(Q) $(CROSS_ESPRISCV32)gcc $(CFLAGS_ESPRISCV32) -DESP32P4=1 -Tstub_32p4.ld -Wl,-Map=$(@:.elf=.map) -o $@ $(filter %.c, $^) $(LDLIBS) - -clean: - $(Q) rm -rf $(BUILD_DIR) diff --git a/flasher_stub/README.md b/flasher_stub/README.md deleted file mode 100644 index 052909c3f..000000000 --- a/flasher_stub/README.md +++ /dev/null @@ -1,41 +0,0 @@ -This is the source of the software flasher stub. - -esptool.py loads the flasher stub into memory and executes it to: - -* Add features that the Espressif chips bootloader ROMs do not have. - -* Add features to the ESP8266 bootloader ROM which are only in the ROM of newer chips. - -* Improve flashing performance over the ROM bootloaders. - -* Work around bugs in the ESP8266 ROM bootloader. - -Thanks to [Cesanta](http://cesanta.com/) who provided the original ESP8266 stub loader upon which this loader is based. - -# To Use - -The stub loader is already automatically integrated into esptool.py. You don't need to do anything special to use it. - -# To Build - -If you want to build the stub to test modifications or updates, here's how: - -* You will need an ESP8266 gcc toolchain (xtensa-lx106-elf-) and toolchains for ESP32 and later chips (xtensa-esp32-elf-, riscv32-esp-elf-) on your PATH. If you are developing the stub flasher and plan to send a pull request, please use the latest toolchains available. - -* Set the environment variables SDK_PATH to the path to an ESP8266 IoT NON-OS SDK directory (last stub was built with SDK v1.5.1). - -* Set the environment variable IDF_PATH to the path to an ESP-IDF directory. - -* Set any other environment variables you'd like to override in the Makefile. - -* To build type `make`. To build only for the ESP32 family, type `make WITHOUT_ESP8266=1` (this negates the need of an ESP8266 toolchain). - -Activating an ESP-IDF environment takes care of most of these steps (only the ESP8266 gcc toolchain has to be manually added to PATH). - -# To Test - -To test the built stub, you can run `make install` (or `make install WITHOUT_ESP8266=1`), which will update the stubs in `esptool.py` to the newly compiled ones. Or there are some convenience wrappers to make testing quicker to iterate on: - -* Running `esptool_test_stub.py` is the same as running `esptool.py`, only it uses the just-compiled stubs from the build directory. - -* Running `run_tests_with_stub.sh` is the same as running `pytest test/test_esptool.py`, only it uses the just-compiled stubs from the build directory. See the [Automated Integration Tests](https://docs.espressif.com/projects/esptool/en/latest/contributing.html#automated-integration-tests) docs for more information. diff --git a/flasher_stub/compare_stubs.py b/flasher_stub/compare_stubs.py deleted file mode 100755 index 1d6c28964..000000000 --- a/flasher_stub/compare_stubs.py +++ /dev/null @@ -1,96 +0,0 @@ -#!/usr/bin/env python -# -# SPDX-FileCopyrightText: 2014-2022 Fredrik Ahlberg, Angus Gratton, -# Espressif Systems (Shanghai) CO LTD, other contributors as noted. -# -# SPDX-License-Identifier: GPL-2.0-or-later - -import os -import sys - -import esptool - -# Compare the esptool stub loaders to freshly built ones in the build directory -# -# (Used by CI to verify the stubs are up to date.) - -THIS_SCRIPT_DIR = os.path.dirname(__file__) -STUB_DIR = "../esptool/targets/stub_flasher/" -BUILD_DIR = "build/" -JSON_NAME = "stub_flasher_{}.json" - - -def diff(path_to_new, path_to_old): - output = "" - new = esptool.loader.StubFlasher(path_to_new) - old = esptool.loader.StubFlasher(path_to_old) - - if new.data_start != old.data_start: - output += " Data start: New {:#x}, old {:#x} \n".format( - new.data_start, old.data_start - ) - if new.text_start != old.text_start: - output += " Text start: New {:#x}, old {:#x} \n".format( - new.text_start, old.text_start - ) - if new.entry != old.entry: - output += " Entrypoint: New {:#x}, old {:#x} \n".format(new.entry, old.entry) - - # data - if new.data != old.data: - if len(new.data) == len(old.data): - for i, (new_b, old_b) in enumerate(zip(new.data, old.data)): - if new_b != old_b: - output += " Data byte {:#x}: new {:#04x} old {:#04x} \n".format( - i, new_b, old_b - ) - else: - output += " Data length: New {} bytes, old {} bytes \n".format( - len(new.data), len(old.data) - ) - - # text - if new.text != old.text: - if len(new.text) == len(old.text): - for i, (new_b, old_b) in enumerate(zip(new.text, old.text)): - if new_b != old_b: - output += " Text byte {:#x}: new {:#04x} old {:#04x} \n".format( - i, new_b, old_b - ) - else: - output += " Text length: New {} bytes, old {} bytes \n".format( - len(new.text), len(old.text) - ) - return output - - -if __name__ == "__main__": - same = True - for chip in esptool.CHIP_LIST: - print("Comparing {} stub: ".format(chip), end="") - # TODO: [ESP32C61] IDF-9241 remove when supported stub flasher - if chip in ["esp32c61"]: - print(f"{chip} has not supported stub yet, skipping...") - continue - - chip = chip.replace("esp", "") - old = os.path.join(THIS_SCRIPT_DIR, STUB_DIR, JSON_NAME.format(chip)) - new = os.path.join(THIS_SCRIPT_DIR, BUILD_DIR, JSON_NAME.format(chip)) - - output = diff(new, old) - if output != "": - same = False - print("FAIL") - print( - " Mismatch: {} json file in esptool/targets/stub_flasher/ differs " - "from the just-built stub".format("esp" + chip) - ) - print(output) - else: - print("OK") - - if not same: - sys.exit(1) - else: - print("Stub flasher json files are the same") - sys.exit(0) diff --git a/flasher_stub/esptool_test_stub.py b/flasher_stub/esptool_test_stub.py deleted file mode 100755 index 691495e11..000000000 --- a/flasher_stub/esptool_test_stub.py +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env python -# -# SPDX-FileCopyrightText: 2014-2022 Fredrik Ahlberg, Angus Gratton, -# Espressif Systems (Shanghai) CO LTD, other contributors as noted. -# -# SPDX-License-Identifier: GPL-2.0-or-later -# -# Trivial wrapper program to run esptool.py using the just-compiled -# flasher stub in the build/ subdirectory -# -# For use when developing new flasher_stubs, not important otherwise. - -import os.path -import sys - -THIS_DIR = os.path.dirname(__file__) -STUBS_BUILD_DIR = os.path.join(THIS_DIR, "build/") - -sys.path.append("..") -import esptool # noqa: E402 - -# Python hackiness: change the path to stub json files in the context of the esptool -# module, so it edits the esptool's global variables -exec( - "loader.STUBS_DIR = '{}'".format(STUBS_BUILD_DIR), - esptool.__dict__, - esptool.__dict__, -) - - -if __name__ == "__main__": - try: - esptool.main() - except esptool.FatalError as e: - print("\nA fatal error occurred: %s" % e) - sys.exit(2) diff --git a/flasher_stub/include/miniz.h b/flasher_stub/include/miniz.h deleted file mode 100644 index bf1554a06..000000000 --- a/flasher_stub/include/miniz.h +++ /dev/null @@ -1,1342 +0,0 @@ -/* miniz.c 2.1.0 - public domain deflate/inflate, zlib-subset, ZIP reading/writing/appending, PNG writing - See "unlicense" statement at the end of this file. - Rich Geldreich , last updated Oct. 13, 2013 - Implements RFC 1950: http://www.ietf.org/rfc/rfc1950.txt and RFC 1951: http://www.ietf.org/rfc/rfc1951.txt - - Most API's defined in miniz.c are optional. For example, to disable the archive related functions just define - MINIZ_NO_ARCHIVE_APIS, or to get rid of all stdio usage define MINIZ_NO_STDIO (see the list below for more macros). - - * Low-level Deflate/Inflate implementation notes: - - Compression: Use the "tdefl" API's. The compressor supports raw, static, and dynamic blocks, lazy or - greedy parsing, match length filtering, RLE-only, and Huffman-only streams. It performs and compresses - approximately as well as zlib. - - Decompression: Use the "tinfl" API's. The entire decompressor is implemented as a single function - coroutine: see tinfl_decompress(). It supports decompression into a 32KB (or larger power of 2) wrapping buffer, or into a memory - block large enough to hold the entire file. - - The low-level tdefl/tinfl API's do not make any use of dynamic memory allocation. - - * zlib-style API notes: - - miniz.c implements a fairly large subset of zlib. There's enough functionality present for it to be a drop-in - zlib replacement in many apps: - The z_stream struct, optional memory allocation callbacks - deflateInit/deflateInit2/deflate/deflateReset/deflateEnd/deflateBound - inflateInit/inflateInit2/inflate/inflateReset/inflateEnd - compress, compress2, compressBound, uncompress - CRC-32, Adler-32 - Using modern, minimal code size, CPU cache friendly routines. - Supports raw deflate streams or standard zlib streams with adler-32 checking. - - Limitations: - The callback API's are not implemented yet. No support for gzip headers or zlib static dictionaries. - I've tried to closely emulate zlib's various flavors of stream flushing and return status codes, but - there are no guarantees that miniz.c pulls this off perfectly. - - * PNG writing: See the tdefl_write_image_to_png_file_in_memory() function, originally written by - Alex Evans. Supports 1-4 bytes/pixel images. - - * ZIP archive API notes: - - The ZIP archive API's where designed with simplicity and efficiency in mind, with just enough abstraction to - get the job done with minimal fuss. There are simple API's to retrieve file information, read files from - existing archives, create new archives, append new files to existing archives, or clone archive data from - one archive to another. It supports archives located in memory or the heap, on disk (using stdio.h), - or you can specify custom file read/write callbacks. - - - Archive reading: Just call this function to read a single file from a disk archive: - - void *mz_zip_extract_archive_file_to_heap(const char *pZip_filename, const char *pArchive_name, - size_t *pSize, mz_uint zip_flags); - - For more complex cases, use the "mz_zip_reader" functions. Upon opening an archive, the entire central - directory is located and read as-is into memory, and subsequent file access only occurs when reading individual files. - - - Archives file scanning: The simple way is to use this function to scan a loaded archive for a specific file: - - int mz_zip_reader_locate_file(mz_zip_archive *pZip, const char *pName, const char *pComment, mz_uint flags); - - The locate operation can optionally check file comments too, which (as one example) can be used to identify - multiple versions of the same file in an archive. This function uses a simple linear search through the central - directory, so it's not very fast. - - Alternately, you can iterate through all the files in an archive (using mz_zip_reader_get_num_files()) and - retrieve detailed info on each file by calling mz_zip_reader_file_stat(). - - - Archive creation: Use the "mz_zip_writer" functions. The ZIP writer immediately writes compressed file data - to disk and builds an exact image of the central directory in memory. The central directory image is written - all at once at the end of the archive file when the archive is finalized. - - The archive writer can optionally align each file's local header and file data to any power of 2 alignment, - which can be useful when the archive will be read from optical media. Also, the writer supports placing - arbitrary data blobs at the very beginning of ZIP archives. Archives written using either feature are still - readable by any ZIP tool. - - - Archive appending: The simple way to add a single file to an archive is to call this function: - - mz_bool mz_zip_add_mem_to_archive_file_in_place(const char *pZip_filename, const char *pArchive_name, - const void *pBuf, size_t buf_size, const void *pComment, mz_uint16 comment_size, mz_uint level_and_flags); - - The archive will be created if it doesn't already exist, otherwise it'll be appended to. - Note the appending is done in-place and is not an atomic operation, so if something goes wrong - during the operation it's possible the archive could be left without a central directory (although the local - file headers and file data will be fine, so the archive will be recoverable). - - For more complex archive modification scenarios: - 1. The safest way is to use a mz_zip_reader to read the existing archive, cloning only those bits you want to - preserve into a new archive using using the mz_zip_writer_add_from_zip_reader() function (which compiles the - compressed file data as-is). When you're done, delete the old archive and rename the newly written archive, and - you're done. This is safe but requires a bunch of temporary disk space or heap memory. - - 2. Or, you can convert an mz_zip_reader in-place to an mz_zip_writer using mz_zip_writer_init_from_reader(), - append new files as needed, then finalize the archive which will write an updated central directory to the - original archive. (This is basically what mz_zip_add_mem_to_archive_file_in_place() does.) There's a - possibility that the archive's central directory could be lost with this method if anything goes wrong, though. - - - ZIP archive support limitations: - No zip64 or spanning support. Extraction functions can only handle unencrypted, stored or deflated files. - Requires streams capable of seeking. - - * This is a header file library, like stb_image.c. To get only a header file, either cut and paste the - below header, or create miniz.h, #define MINIZ_HEADER_FILE_ONLY, and then include miniz.c from it. - - * Important: For best perf. be sure to customize the below macros for your target platform: - #define MINIZ_USE_UNALIGNED_LOADS_AND_STORES 1 - #define MINIZ_LITTLE_ENDIAN 1 - #define MINIZ_HAS_64BIT_REGISTERS 1 - - * On platforms using glibc, Be sure to "#define _LARGEFILE64_SOURCE 1" before including miniz.c to ensure miniz - uses the 64-bit variants: fopen64(), stat64(), etc. Otherwise you won't be able to process large files - (i.e. 32-bit stat() fails for me on files > 0x7FFFFFFF bytes). -*/ -#pragma once - -/* Hardcoded options for Xtensa - JD */ -#define MINIZ_USE_UNALIGNED_LOADS_AND_STORES 0 -#define MINIZ_LITTLE_ENDIAN 1 - - - - - -/* Defines to completely disable specific portions of miniz.c: - If all macros here are defined the only functionality remaining will be CRC-32, adler-32, tinfl, and tdefl. */ - -/* Define MINIZ_NO_STDIO to disable all usage and any functions which rely on stdio for file I/O. */ -#define MINIZ_NO_STDIO - -/* If MINIZ_NO_TIME is specified then the ZIP archive functions will not be able to get the current time, or */ -/* get/set file times, and the C run-time funcs that get/set times won't be called. */ -/* The current downside is the times written to your archives will be from 1979. */ -#define MINIZ_NO_TIME - -/* Define MINIZ_NO_ARCHIVE_APIS to disable all ZIP archive API's. */ -#define MINIZ_NO_ARCHIVE_APIS - -/* Define MINIZ_NO_ARCHIVE_WRITING_APIS to disable all writing related ZIP archive API's. */ -#define MINIZ_NO_ARCHIVE_WRITING_APIS - -/* Define MINIZ_NO_ZLIB_APIS to remove all ZLIB-style compression/decompression API's. */ -#define MINIZ_NO_ZLIB_APIS - -/* Define MINIZ_NO_ZLIB_COMPATIBLE_NAME to disable zlib names, to prevent conflicts against stock zlib. */ -#define MINIZ_NO_ZLIB_COMPATIBLE_NAMES - -/* Define MINIZ_NO_MALLOC to disable all calls to malloc, free, and realloc. - Note if MINIZ_NO_MALLOC is defined then the user must always provide custom user alloc/free/realloc - callbacks to the zlib and archive API's, and a few stand-alone helper API's which don't provide custom user - functions (such as tdefl_compress_mem_to_heap() and tinfl_decompress_mem_to_heap()) won't work. */ -#define MINIZ_NO_MALLOC - -#if defined(__TINYC__) && (defined(__linux) || defined(__linux__)) -/* TODO: Work around "error: include file 'sys\utime.h' when compiling with tcc on Linux */ -#define MINIZ_NO_TIME -#endif - -#include - -#if !defined(MINIZ_NO_TIME) && !defined(MINIZ_NO_ARCHIVE_APIS) -#include -#endif - -#if defined(_M_IX86) || defined(_M_X64) || defined(__i386__) || defined(__i386) || defined(__i486__) || defined(__i486) || defined(i386) || defined(__ia64__) || defined(__x86_64__) -/* MINIZ_X86_OR_X64_CPU is only used to help set the below macros. */ -#define MINIZ_X86_OR_X64_CPU 1 -#else -#define MINIZ_X86_OR_X64_CPU 0 -#endif - -#if (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__) || MINIZ_X86_OR_X64_CPU -/* Set MINIZ_LITTLE_ENDIAN to 1 if the processor is little endian. */ -#define MINIZ_LITTLE_ENDIAN 1 -#else -#define MINIZ_LITTLE_ENDIAN 0 -#endif - -/* Set MINIZ_USE_UNALIGNED_LOADS_AND_STORES only if not set */ -#if !defined(MINIZ_USE_UNALIGNED_LOADS_AND_STORES) -#if MINIZ_X86_OR_X64_CPU -/* Set MINIZ_USE_UNALIGNED_LOADS_AND_STORES to 1 on CPU's that permit efficient integer loads and stores from unaligned addresses. */ -#define MINIZ_USE_UNALIGNED_LOADS_AND_STORES 1 -#define MINIZ_UNALIGNED_USE_MEMCPY -#else -#define MINIZ_USE_UNALIGNED_LOADS_AND_STORES 0 -#endif -#endif - -#if defined(_M_X64) || defined(_WIN64) || defined(__MINGW64__) || defined(_LP64) || defined(__LP64__) || defined(__ia64__) || defined(__x86_64__) -/* Set MINIZ_HAS_64BIT_REGISTERS to 1 if operations on 64-bit integers are reasonably fast (and don't involve compiler generated calls to helper functions). */ -#define MINIZ_HAS_64BIT_REGISTERS 1 -#else -#define MINIZ_HAS_64BIT_REGISTERS 0 -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -/* ------------------- zlib-style API Definitions. */ - -/* For more compatibility with zlib, miniz.c uses unsigned long for some parameters/struct members. Beware: mz_ulong can be either 32 or 64-bits! */ -typedef unsigned long mz_ulong; - -/* mz_free() internally uses the MZ_FREE() macro (which by default calls free() unless you've modified the MZ_MALLOC macro) to release a block allocated from the heap. */ -void mz_free(void *p); - -#define MZ_ADLER32_INIT (1) -/* mz_adler32() returns the initial adler-32 value to use when called with ptr==NULL. */ -mz_ulong mz_adler32(mz_ulong adler, const unsigned char *ptr, size_t buf_len); - -#define MZ_CRC32_INIT (0) -/* mz_crc32() returns the initial CRC-32 value to use when called with ptr==NULL. */ -mz_ulong mz_crc32(mz_ulong crc, const unsigned char *ptr, size_t buf_len); - -/* Compression strategies. */ -enum -{ - MZ_DEFAULT_STRATEGY = 0, - MZ_FILTERED = 1, - MZ_HUFFMAN_ONLY = 2, - MZ_RLE = 3, - MZ_FIXED = 4 -}; - -/* Method */ -#define MZ_DEFLATED 8 - -/* Heap allocation callbacks. -Note that mz_alloc_func parameter types purpsosely differ from zlib's: items/size is size_t, not unsigned long. */ -typedef void *(*mz_alloc_func)(void *opaque, size_t items, size_t size); -typedef void (*mz_free_func)(void *opaque, void *address); -typedef void *(*mz_realloc_func)(void *opaque, void *address, size_t items, size_t size); - -/* Compression levels: 0-9 are the standard zlib-style levels, 10 is best possible compression (not zlib compatible, and may be very slow), MZ_DEFAULT_COMPRESSION=MZ_DEFAULT_LEVEL. */ -enum -{ - MZ_NO_COMPRESSION = 0, - MZ_BEST_SPEED = 1, - MZ_BEST_COMPRESSION = 9, - MZ_UBER_COMPRESSION = 10, - MZ_DEFAULT_LEVEL = 6, - MZ_DEFAULT_COMPRESSION = -1 -}; - -#define MZ_VERSION "10.1.0" -#define MZ_VERNUM 0xA100 -#define MZ_VER_MAJOR 10 -#define MZ_VER_MINOR 1 -#define MZ_VER_REVISION 0 -#define MZ_VER_SUBREVISION 0 - -#ifndef MINIZ_NO_ZLIB_APIS - -/* Flush values. For typical usage you only need MZ_NO_FLUSH and MZ_FINISH. The other values are for advanced use (refer to the zlib docs). */ -enum -{ - MZ_NO_FLUSH = 0, - MZ_PARTIAL_FLUSH = 1, - MZ_SYNC_FLUSH = 2, - MZ_FULL_FLUSH = 3, - MZ_FINISH = 4, - MZ_BLOCK = 5 -}; - -/* Return status codes. MZ_PARAM_ERROR is non-standard. */ -enum -{ - MZ_OK = 0, - MZ_STREAM_END = 1, - MZ_NEED_DICT = 2, - MZ_ERRNO = -1, - MZ_STREAM_ERROR = -2, - MZ_DATA_ERROR = -3, - MZ_MEM_ERROR = -4, - MZ_BUF_ERROR = -5, - MZ_VERSION_ERROR = -6, - MZ_PARAM_ERROR = -10000 -}; - -/* Window bits */ -#define MZ_DEFAULT_WINDOW_BITS 15 - -struct mz_internal_state; - -/* Compression/decompression stream struct. */ -typedef struct mz_stream_s -{ - const unsigned char *next_in; /* pointer to next byte to read */ - unsigned int avail_in; /* number of bytes available at next_in */ - mz_ulong total_in; /* total number of bytes consumed so far */ - - unsigned char *next_out; /* pointer to next byte to write */ - unsigned int avail_out; /* number of bytes that can be written to next_out */ - mz_ulong total_out; /* total number of bytes produced so far */ - - char *msg; /* error msg (unused) */ - struct mz_internal_state *state; /* internal state, allocated by zalloc/zfree */ - - mz_alloc_func zalloc; /* optional heap allocation function (defaults to malloc) */ - mz_free_func zfree; /* optional heap free function (defaults to free) */ - void *opaque; /* heap alloc function user pointer */ - - int data_type; /* data_type (unused) */ - mz_ulong adler; /* adler32 of the source or uncompressed data */ - mz_ulong reserved; /* not used */ -} mz_stream; - -typedef mz_stream *mz_streamp; - -/* Returns the version string of miniz.c. */ -const char *mz_version(void); - -/* mz_deflateInit() initializes a compressor with default options: */ -/* Parameters: */ -/* pStream must point to an initialized mz_stream struct. */ -/* level must be between [MZ_NO_COMPRESSION, MZ_BEST_COMPRESSION]. */ -/* level 1 enables a specially optimized compression function that's been optimized purely for performance, not ratio. */ -/* (This special func. is currently only enabled when MINIZ_USE_UNALIGNED_LOADS_AND_STORES and MINIZ_LITTLE_ENDIAN are defined.) */ -/* Return values: */ -/* MZ_OK on success. */ -/* MZ_STREAM_ERROR if the stream is bogus. */ -/* MZ_PARAM_ERROR if the input parameters are bogus. */ -/* MZ_MEM_ERROR on out of memory. */ -int mz_deflateInit(mz_streamp pStream, int level); - -/* mz_deflateInit2() is like mz_deflate(), except with more control: */ -/* Additional parameters: */ -/* method must be MZ_DEFLATED */ -/* window_bits must be MZ_DEFAULT_WINDOW_BITS (to wrap the deflate stream with zlib header/adler-32 footer) or -MZ_DEFAULT_WINDOW_BITS (raw deflate/no header or footer) */ -/* mem_level must be between [1, 9] (it's checked but ignored by miniz.c) */ -int mz_deflateInit2(mz_streamp pStream, int level, int method, int window_bits, int mem_level, int strategy); - -/* Quickly resets a compressor without having to reallocate anything. Same as calling mz_deflateEnd() followed by mz_deflateInit()/mz_deflateInit2(). */ -int mz_deflateReset(mz_streamp pStream); - -/* mz_deflate() compresses the input to output, consuming as much of the input and producing as much output as possible. */ -/* Parameters: */ -/* pStream is the stream to read from and write to. You must initialize/update the next_in, avail_in, next_out, and avail_out members. */ -/* flush may be MZ_NO_FLUSH, MZ_PARTIAL_FLUSH/MZ_SYNC_FLUSH, MZ_FULL_FLUSH, or MZ_FINISH. */ -/* Return values: */ -/* MZ_OK on success (when flushing, or if more input is needed but not available, and/or there's more output to be written but the output buffer is full). */ -/* MZ_STREAM_END if all input has been consumed and all output bytes have been written. Don't call mz_deflate() on the stream anymore. */ -/* MZ_STREAM_ERROR if the stream is bogus. */ -/* MZ_PARAM_ERROR if one of the parameters is invalid. */ -/* MZ_BUF_ERROR if no forward progress is possible because the input and/or output buffers are empty. (Fill up the input buffer or free up some output space and try again.) */ -int mz_deflate(mz_streamp pStream, int flush); - -/* mz_deflateEnd() deinitializes a compressor: */ -/* Return values: */ -/* MZ_OK on success. */ -/* MZ_STREAM_ERROR if the stream is bogus. */ -int mz_deflateEnd(mz_streamp pStream); - -/* mz_deflateBound() returns a (very) conservative upper bound on the amount of data that could be generated by deflate(), assuming flush is set to only MZ_NO_FLUSH or MZ_FINISH. */ -mz_ulong mz_deflateBound(mz_streamp pStream, mz_ulong source_len); - -/* Single-call compression functions mz_compress() and mz_compress2(): */ -/* Returns MZ_OK on success, or one of the error codes from mz_deflate() on failure. */ -int mz_compress(unsigned char *pDest, mz_ulong *pDest_len, const unsigned char *pSource, mz_ulong source_len); -int mz_compress2(unsigned char *pDest, mz_ulong *pDest_len, const unsigned char *pSource, mz_ulong source_len, int level); - -/* mz_compressBound() returns a (very) conservative upper bound on the amount of data that could be generated by calling mz_compress(). */ -mz_ulong mz_compressBound(mz_ulong source_len); - -/* Initializes a decompressor. */ -int mz_inflateInit(mz_streamp pStream); - -/* mz_inflateInit2() is like mz_inflateInit() with an additional option that controls the window size and whether or not the stream has been wrapped with a zlib header/footer: */ -/* window_bits must be MZ_DEFAULT_WINDOW_BITS (to parse zlib header/footer) or -MZ_DEFAULT_WINDOW_BITS (raw deflate). */ -int mz_inflateInit2(mz_streamp pStream, int window_bits); - -/* Quickly resets a compressor without having to reallocate anything. Same as calling mz_inflateEnd() followed by mz_inflateInit()/mz_inflateInit2(). */ -int mz_inflateReset(mz_streamp pStream); - -/* Decompresses the input stream to the output, consuming only as much of the input as needed, and writing as much to the output as possible. */ -/* Parameters: */ -/* pStream is the stream to read from and write to. You must initialize/update the next_in, avail_in, next_out, and avail_out members. */ -/* flush may be MZ_NO_FLUSH, MZ_SYNC_FLUSH, or MZ_FINISH. */ -/* On the first call, if flush is MZ_FINISH it's assumed the input and output buffers are both sized large enough to decompress the entire stream in a single call (this is slightly faster). */ -/* MZ_FINISH implies that there are no more source bytes available beside what's already in the input buffer, and that the output buffer is large enough to hold the rest of the decompressed data. */ -/* Return values: */ -/* MZ_OK on success. Either more input is needed but not available, and/or there's more output to be written but the output buffer is full. */ -/* MZ_STREAM_END if all needed input has been consumed and all output bytes have been written. For zlib streams, the adler-32 of the decompressed data has also been verified. */ -/* MZ_STREAM_ERROR if the stream is bogus. */ -/* MZ_DATA_ERROR if the deflate stream is invalid. */ -/* MZ_PARAM_ERROR if one of the parameters is invalid. */ -/* MZ_BUF_ERROR if no forward progress is possible because the input buffer is empty but the inflater needs more input to continue, or if the output buffer is not large enough. Call mz_inflate() again */ -/* with more input data, or with more room in the output buffer (except when using single call decompression, described above). */ -int mz_inflate(mz_streamp pStream, int flush); - -/* Deinitializes a decompressor. */ -int mz_inflateEnd(mz_streamp pStream); - -/* Single-call decompression. */ -/* Returns MZ_OK on success, or one of the error codes from mz_inflate() on failure. */ -int mz_uncompress(unsigned char *pDest, mz_ulong *pDest_len, const unsigned char *pSource, mz_ulong source_len); - -/* Returns a string description of the specified error code, or NULL if the error code is invalid. */ -const char *mz_error(int err); - -/* Redefine zlib-compatible names to miniz equivalents, so miniz.c can be used as a drop-in replacement for the subset of zlib that miniz.c supports. */ -/* Define MINIZ_NO_ZLIB_COMPATIBLE_NAMES to disable zlib-compatibility if you use zlib in the same project. */ -#ifndef MINIZ_NO_ZLIB_COMPATIBLE_NAMES -typedef unsigned char Byte; -typedef unsigned int uInt; -typedef mz_ulong uLong; -typedef Byte Bytef; -typedef uInt uIntf; -typedef char charf; -typedef int intf; -typedef void *voidpf; -typedef uLong uLongf; -typedef void *voidp; -typedef void *const voidpc; -#define Z_NULL 0 -#define Z_NO_FLUSH MZ_NO_FLUSH -#define Z_PARTIAL_FLUSH MZ_PARTIAL_FLUSH -#define Z_SYNC_FLUSH MZ_SYNC_FLUSH -#define Z_FULL_FLUSH MZ_FULL_FLUSH -#define Z_FINISH MZ_FINISH -#define Z_BLOCK MZ_BLOCK -#define Z_OK MZ_OK -#define Z_STREAM_END MZ_STREAM_END -#define Z_NEED_DICT MZ_NEED_DICT -#define Z_ERRNO MZ_ERRNO -#define Z_STREAM_ERROR MZ_STREAM_ERROR -#define Z_DATA_ERROR MZ_DATA_ERROR -#define Z_MEM_ERROR MZ_MEM_ERROR -#define Z_BUF_ERROR MZ_BUF_ERROR -#define Z_VERSION_ERROR MZ_VERSION_ERROR -#define Z_PARAM_ERROR MZ_PARAM_ERROR -#define Z_NO_COMPRESSION MZ_NO_COMPRESSION -#define Z_BEST_SPEED MZ_BEST_SPEED -#define Z_BEST_COMPRESSION MZ_BEST_COMPRESSION -#define Z_DEFAULT_COMPRESSION MZ_DEFAULT_COMPRESSION -#define Z_DEFAULT_STRATEGY MZ_DEFAULT_STRATEGY -#define Z_FILTERED MZ_FILTERED -#define Z_HUFFMAN_ONLY MZ_HUFFMAN_ONLY -#define Z_RLE MZ_RLE -#define Z_FIXED MZ_FIXED -#define Z_DEFLATED MZ_DEFLATED -#define Z_DEFAULT_WINDOW_BITS MZ_DEFAULT_WINDOW_BITS -#define alloc_func mz_alloc_func -#define free_func mz_free_func -#define internal_state mz_internal_state -#define z_stream mz_stream -#define deflateInit mz_deflateInit -#define deflateInit2 mz_deflateInit2 -#define deflateReset mz_deflateReset -#define deflate mz_deflate -#define deflateEnd mz_deflateEnd -#define deflateBound mz_deflateBound -#define compress mz_compress -#define compress2 mz_compress2 -#define compressBound mz_compressBound -#define inflateInit mz_inflateInit -#define inflateInit2 mz_inflateInit2 -#define inflateReset mz_inflateReset -#define inflate mz_inflate -#define inflateEnd mz_inflateEnd -#define uncompress mz_uncompress -#define crc32 mz_crc32 -#define adler32 mz_adler32 -#define MAX_WBITS 15 -#define MAX_MEM_LEVEL 9 -#define zError mz_error -#define ZLIB_VERSION MZ_VERSION -#define ZLIB_VERNUM MZ_VERNUM -#define ZLIB_VER_MAJOR MZ_VER_MAJOR -#define ZLIB_VER_MINOR MZ_VER_MINOR -#define ZLIB_VER_REVISION MZ_VER_REVISION -#define ZLIB_VER_SUBREVISION MZ_VER_SUBREVISION -#define zlibVersion mz_version -#define zlib_version mz_version() -#endif /* #ifndef MINIZ_NO_ZLIB_COMPATIBLE_NAMES */ - -#endif /* MINIZ_NO_ZLIB_APIS */ - -#ifdef __cplusplus -} -#endif -#pragma once -#include -#include -#include -#include - -/* ------------------- Types and macros */ -typedef unsigned char mz_uint8; -typedef signed short mz_int16; -typedef unsigned short mz_uint16; -typedef unsigned int mz_uint32; -typedef unsigned int mz_uint; -typedef int64_t mz_int64; -typedef uint64_t mz_uint64; -typedef int mz_bool; - -#define MZ_FALSE (0) -#define MZ_TRUE (1) - -/* Works around MSVC's spammy "warning C4127: conditional expression is constant" message. */ -#ifdef _MSC_VER -#define MZ_MACRO_END while (0, 0) -#else -#define MZ_MACRO_END while (0) -#endif - -#ifdef MINIZ_NO_STDIO -#define MZ_FILE void * -#else -#include -#define MZ_FILE FILE -#endif /* #ifdef MINIZ_NO_STDIO */ - -#ifdef MINIZ_NO_TIME -typedef struct mz_dummy_time_t_tag -{ - int m_dummy; -} mz_dummy_time_t; -#define MZ_TIME_T mz_dummy_time_t -#else -#define MZ_TIME_T time_t -#endif - -#define MZ_ASSERT(x) - -#ifdef MINIZ_NO_MALLOC -#define MZ_MALLOC(x) NULL -#define MZ_FREE(x) (void)x, ((void)0) -#define MZ_REALLOC(p, x) NULL -#else -#define MZ_MALLOC(x) malloc(x) -#define MZ_FREE(x) free(x) -#define MZ_REALLOC(p, x) realloc(p, x) -#endif - -#define MZ_MAX(a, b) (((a) > (b)) ? (a) : (b)) -#define MZ_MIN(a, b) (((a) < (b)) ? (a) : (b)) -#define MZ_CLEAR_OBJ(obj) memset(&(obj), 0, sizeof(obj)) - -#if MINIZ_USE_UNALIGNED_LOADS_AND_STORES && MINIZ_LITTLE_ENDIAN -#define MZ_READ_LE16(p) *((const mz_uint16 *)(p)) -#define MZ_READ_LE32(p) *((const mz_uint32 *)(p)) -#else -#define MZ_READ_LE16(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U)) -#define MZ_READ_LE32(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U) | ((mz_uint32)(((const mz_uint8 *)(p))[2]) << 16U) | ((mz_uint32)(((const mz_uint8 *)(p))[3]) << 24U)) -#endif - -#define MZ_READ_LE64(p) (((mz_uint64)MZ_READ_LE32(p)) | (((mz_uint64)MZ_READ_LE32((const mz_uint8 *)(p) + sizeof(mz_uint32))) << 32U)) - -#ifdef _MSC_VER -#define MZ_FORCEINLINE __forceinline -#elif defined(__GNUC__) -#define MZ_FORCEINLINE __inline__ __attribute__((__always_inline__)) -#else -#define MZ_FORCEINLINE inline -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -extern void *miniz_def_alloc_func(void *opaque, size_t items, size_t size); -extern void miniz_def_free_func(void *opaque, void *address); -extern void *miniz_def_realloc_func(void *opaque, void *address, size_t items, size_t size); - -#define MZ_UINT16_MAX (0xFFFFU) -#define MZ_UINT32_MAX (0xFFFFFFFFU) - -#ifdef __cplusplus -} -#endif -#pragma once - - -#ifdef __cplusplus -extern "C" { -#endif -/* ------------------- Low-level Compression API Definitions */ - -/* Set TDEFL_LESS_MEMORY to 1 to use less memory (compression will be slightly slower, and raw/dynamic blocks will be output more frequently). */ -#define TDEFL_LESS_MEMORY 1 - -/* tdefl_init() compression flags logically OR'd together (low 12 bits contain the max. number of probes per dictionary search): */ -/* TDEFL_DEFAULT_MAX_PROBES: The compressor defaults to 128 dictionary probes per dictionary search. 0=Huffman only, 1=Huffman+LZ (fastest/crap compression), 4095=Huffman+LZ (slowest/best compression). */ -enum -{ - TDEFL_HUFFMAN_ONLY = 0, - TDEFL_DEFAULT_MAX_PROBES = 128, - TDEFL_MAX_PROBES_MASK = 0xFFF -}; - -/* TDEFL_WRITE_ZLIB_HEADER: If set, the compressor outputs a zlib header before the deflate data, and the Adler-32 of the source data at the end. Otherwise, you'll get raw deflate data. */ -/* TDEFL_COMPUTE_ADLER32: Always compute the adler-32 of the input data (even when not writing zlib headers). */ -/* TDEFL_GREEDY_PARSING_FLAG: Set to use faster greedy parsing, instead of more efficient lazy parsing. */ -/* TDEFL_NONDETERMINISTIC_PARSING_FLAG: Enable to decrease the compressor's initialization time to the minimum, but the output may vary from run to run given the same input (depending on the contents of memory). */ -/* TDEFL_RLE_MATCHES: Only look for RLE matches (matches with a distance of 1) */ -/* TDEFL_FILTER_MATCHES: Discards matches <= 5 chars if enabled. */ -/* TDEFL_FORCE_ALL_STATIC_BLOCKS: Disable usage of optimized Huffman tables. */ -/* TDEFL_FORCE_ALL_RAW_BLOCKS: Only use raw (uncompressed) deflate blocks. */ -/* The low 12 bits are reserved to control the max # of hash probes per dictionary lookup (see TDEFL_MAX_PROBES_MASK). */ -enum -{ - TDEFL_WRITE_ZLIB_HEADER = 0x01000, - TDEFL_COMPUTE_ADLER32 = 0x02000, - TDEFL_GREEDY_PARSING_FLAG = 0x04000, - TDEFL_NONDETERMINISTIC_PARSING_FLAG = 0x08000, - TDEFL_RLE_MATCHES = 0x10000, - TDEFL_FILTER_MATCHES = 0x20000, - TDEFL_FORCE_ALL_STATIC_BLOCKS = 0x40000, - TDEFL_FORCE_ALL_RAW_BLOCKS = 0x80000 -}; - -/* High level compression functions: */ -/* tdefl_compress_mem_to_heap() compresses a block in memory to a heap block allocated via malloc(). */ -/* On entry: */ -/* pSrc_buf, src_buf_len: Pointer and size of source block to compress. */ -/* flags: The max match finder probes (default is 128) logically OR'd against the above flags. Higher probes are slower but improve compression. */ -/* On return: */ -/* Function returns a pointer to the compressed data, or NULL on failure. */ -/* *pOut_len will be set to the compressed data's size, which could be larger than src_buf_len on incompressible data. */ -/* The caller must free() the returned block when it's no longer needed. */ -void *tdefl_compress_mem_to_heap(const void *pSrc_buf, size_t src_buf_len, size_t *pOut_len, int flags); - -/* tdefl_compress_mem_to_mem() compresses a block in memory to another block in memory. */ -/* Returns 0 on failure. */ -size_t tdefl_compress_mem_to_mem(void *pOut_buf, size_t out_buf_len, const void *pSrc_buf, size_t src_buf_len, int flags); - -/* Compresses an image to a compressed PNG file in memory. */ -/* On entry: */ -/* pImage, w, h, and num_chans describe the image to compress. num_chans may be 1, 2, 3, or 4. */ -/* The image pitch in bytes per scanline will be w*num_chans. The leftmost pixel on the top scanline is stored first in memory. */ -/* level may range from [0,10], use MZ_NO_COMPRESSION, MZ_BEST_SPEED, MZ_BEST_COMPRESSION, etc. or a decent default is MZ_DEFAULT_LEVEL */ -/* If flip is true, the image will be flipped on the Y axis (useful for OpenGL apps). */ -/* On return: */ -/* Function returns a pointer to the compressed data, or NULL on failure. */ -/* *pLen_out will be set to the size of the PNG image file. */ -/* The caller must mz_free() the returned heap block (which will typically be larger than *pLen_out) when it's no longer needed. */ -void *tdefl_write_image_to_png_file_in_memory_ex(const void *pImage, int w, int h, int num_chans, size_t *pLen_out, mz_uint level, mz_bool flip); -void *tdefl_write_image_to_png_file_in_memory(const void *pImage, int w, int h, int num_chans, size_t *pLen_out); - -/* Output stream interface. The compressor uses this interface to write compressed data. It'll typically be called TDEFL_OUT_BUF_SIZE at a time. */ -typedef mz_bool (*tdefl_put_buf_func_ptr)(const void *pBuf, int len, void *pUser); - -/* tdefl_compress_mem_to_output() compresses a block to an output stream. The above helpers use this function internally. */ -mz_bool tdefl_compress_mem_to_output(const void *pBuf, size_t buf_len, tdefl_put_buf_func_ptr pPut_buf_func, void *pPut_buf_user, int flags); - -enum -{ - TDEFL_MAX_HUFF_TABLES = 3, - TDEFL_MAX_HUFF_SYMBOLS_0 = 288, - TDEFL_MAX_HUFF_SYMBOLS_1 = 32, - TDEFL_MAX_HUFF_SYMBOLS_2 = 19, - TDEFL_LZ_DICT_SIZE = (8*1024), - TDEFL_LZ_DICT_SIZE_MASK = TDEFL_LZ_DICT_SIZE - 1, - TDEFL_MIN_MATCH_LEN = 3, - TDEFL_MAX_MATCH_LEN = 258 -}; - -/* TDEFL_OUT_BUF_SIZE MUST be large enough to hold a single entire compressed output block (using static/fixed Huffman codes). */ -#if TDEFL_LESS_MEMORY -enum -{ - TDEFL_LZ_CODE_BUF_SIZE = 8 * 1024, - TDEFL_OUT_BUF_SIZE = (TDEFL_LZ_CODE_BUF_SIZE * 13) / 10, - TDEFL_MAX_HUFF_SYMBOLS = 288, - TDEFL_LZ_HASH_BITS = 12, - TDEFL_LEVEL1_HASH_SIZE_MASK = 4095, - TDEFL_LZ_HASH_SHIFT = (TDEFL_LZ_HASH_BITS + 2) / 3, - TDEFL_LZ_HASH_SIZE = 1 << TDEFL_LZ_HASH_BITS -}; -#else -enum -{ - TDEFL_LZ_CODE_BUF_SIZE = 64 * 1024, - TDEFL_OUT_BUF_SIZE = (TDEFL_LZ_CODE_BUF_SIZE * 13) / 10, - TDEFL_MAX_HUFF_SYMBOLS = 288, - TDEFL_LZ_HASH_BITS = 15, - TDEFL_LEVEL1_HASH_SIZE_MASK = 4095, - TDEFL_LZ_HASH_SHIFT = (TDEFL_LZ_HASH_BITS + 2) / 3, - TDEFL_LZ_HASH_SIZE = 1 << TDEFL_LZ_HASH_BITS -}; -#endif - -/* The low-level tdefl functions below may be used directly if the above helper functions aren't flexible enough. The low-level functions don't make any heap allocations, unlike the above helper functions. */ -typedef enum { - TDEFL_STATUS_BAD_PARAM = -2, - TDEFL_STATUS_PUT_BUF_FAILED = -1, - TDEFL_STATUS_OKAY = 0, - TDEFL_STATUS_DONE = 1 -} tdefl_status; - -/* Must map to MZ_NO_FLUSH, MZ_SYNC_FLUSH, etc. enums */ -typedef enum { - TDEFL_NO_FLUSH = 0, - TDEFL_SYNC_FLUSH = 2, - TDEFL_FULL_FLUSH = 3, - TDEFL_FINISH = 4 -} tdefl_flush; - -/* tdefl's compression state structure. */ -typedef struct -{ - tdefl_put_buf_func_ptr m_pPut_buf_func; - void *m_pPut_buf_user; - mz_uint m_flags, m_max_probes[2]; - int m_greedy_parsing; - mz_uint m_adler32, m_lookahead_pos, m_lookahead_size, m_dict_size; - mz_uint8 *m_pLZ_code_buf, *m_pLZ_flags, *m_pOutput_buf, *m_pOutput_buf_end; - mz_uint m_num_flags_left, m_total_lz_bytes, m_lz_code_buf_dict_pos, m_bits_in, m_bit_buffer; - mz_uint m_saved_match_dist, m_saved_match_len, m_saved_lit, m_output_flush_ofs, m_output_flush_remaining, m_finished, m_block_index, m_wants_to_finish; - tdefl_status m_prev_return_status; - const void *m_pIn_buf; - void *m_pOut_buf; - size_t *m_pIn_buf_size, *m_pOut_buf_size; - tdefl_flush m_flush; - const mz_uint8 *m_pSrc; - size_t m_src_buf_left, m_out_buf_ofs; - mz_uint8 m_dict[TDEFL_LZ_DICT_SIZE + TDEFL_MAX_MATCH_LEN - 1]; - mz_uint16 m_huff_count[TDEFL_MAX_HUFF_TABLES][TDEFL_MAX_HUFF_SYMBOLS]; - mz_uint16 m_huff_codes[TDEFL_MAX_HUFF_TABLES][TDEFL_MAX_HUFF_SYMBOLS]; - mz_uint8 m_huff_code_sizes[TDEFL_MAX_HUFF_TABLES][TDEFL_MAX_HUFF_SYMBOLS]; - mz_uint8 m_lz_code_buf[TDEFL_LZ_CODE_BUF_SIZE]; - mz_uint16 m_next[TDEFL_LZ_DICT_SIZE]; - mz_uint16 m_hash[TDEFL_LZ_HASH_SIZE]; - mz_uint8 m_output_buf[TDEFL_OUT_BUF_SIZE]; -} tdefl_compressor; - -/* Initializes the compressor. */ -/* There is no corresponding deinit() function because the tdefl API's do not dynamically allocate memory. */ -/* pBut_buf_func: If NULL, output data will be supplied to the specified callback. In this case, the user should call the tdefl_compress_buffer() API for compression. */ -/* If pBut_buf_func is NULL the user should always call the tdefl_compress() API. */ -/* flags: See the above enums (TDEFL_HUFFMAN_ONLY, TDEFL_WRITE_ZLIB_HEADER, etc.) */ -tdefl_status tdefl_init(tdefl_compressor *d, tdefl_put_buf_func_ptr pPut_buf_func, void *pPut_buf_user, int flags); - -/* Compresses a block of data, consuming as much of the specified input buffer as possible, and writing as much compressed data to the specified output buffer as possible. */ -tdefl_status tdefl_compress(tdefl_compressor *d, const void *pIn_buf, size_t *pIn_buf_size, void *pOut_buf, size_t *pOut_buf_size, tdefl_flush flush); - -/* tdefl_compress_buffer() is only usable when the tdefl_init() is called with a non-NULL tdefl_put_buf_func_ptr. */ -/* tdefl_compress_buffer() always consumes the entire input buffer. */ -tdefl_status tdefl_compress_buffer(tdefl_compressor *d, const void *pIn_buf, size_t in_buf_size, tdefl_flush flush); - -tdefl_status tdefl_get_prev_return_status(tdefl_compressor *d); -mz_uint32 tdefl_get_adler32(tdefl_compressor *d); - -/* Create tdefl_compress() flags given zlib-style compression parameters. */ -/* level may range from [0,10] (where 10 is absolute max compression, but may be much slower on some files) */ -/* window_bits may be -15 (raw deflate) or 15 (zlib) */ -/* strategy may be either MZ_DEFAULT_STRATEGY, MZ_FILTERED, MZ_HUFFMAN_ONLY, MZ_RLE, or MZ_FIXED */ -mz_uint tdefl_create_comp_flags_from_zip_params(int level, int window_bits, int strategy); - -#ifndef MINIZ_NO_MALLOC -/* Allocate the tdefl_compressor structure in C so that */ -/* non-C language bindings to tdefl_ API don't need to worry about */ -/* structure size and allocation mechanism. */ -tdefl_compressor *tdefl_compressor_alloc(void); -void tdefl_compressor_free(tdefl_compressor *pComp); -#endif - -#ifdef __cplusplus -} -#endif -#pragma once - -/* ------------------- Low-level Decompression API Definitions */ - -#ifdef __cplusplus -extern "C" { -#endif -/* Decompression flags used by tinfl_decompress(). */ -/* TINFL_FLAG_PARSE_ZLIB_HEADER: If set, the input has a valid zlib header and ends with an adler32 checksum (it's a valid zlib stream). Otherwise, the input is a raw deflate stream. */ -/* TINFL_FLAG_HAS_MORE_INPUT: If set, there are more input bytes available beyond the end of the supplied input buffer. If clear, the input buffer contains all remaining input. */ -/* TINFL_FLAG_USING_NON_WRAPPING_OUTPUT_BUF: If set, the output buffer is large enough to hold the entire decompressed stream. If clear, the output buffer is at least the size of the dictionary (typically 32KB). */ -/* TINFL_FLAG_COMPUTE_ADLER32: Force adler-32 checksum computation of the decompressed bytes. */ -enum -{ - TINFL_FLAG_PARSE_ZLIB_HEADER = 1, - TINFL_FLAG_HAS_MORE_INPUT = 2, - TINFL_FLAG_USING_NON_WRAPPING_OUTPUT_BUF = 4, - TINFL_FLAG_COMPUTE_ADLER32 = 8 -}; - -/* High level decompression functions: */ -/* tinfl_decompress_mem_to_heap() decompresses a block in memory to a heap block allocated via malloc(). */ -/* On entry: */ -/* pSrc_buf, src_buf_len: Pointer and size of the Deflate or zlib source data to decompress. */ -/* On return: */ -/* Function returns a pointer to the decompressed data, or NULL on failure. */ -/* *pOut_len will be set to the decompressed data's size, which could be larger than src_buf_len on incompressible data. */ -/* The caller must call mz_free() on the returned block when it's no longer needed. */ -void *tinfl_decompress_mem_to_heap(const void *pSrc_buf, size_t src_buf_len, size_t *pOut_len, int flags); - -/* tinfl_decompress_mem_to_mem() decompresses a block in memory to another block in memory. */ -/* Returns TINFL_DECOMPRESS_MEM_TO_MEM_FAILED on failure, or the number of bytes written on success. */ -#define TINFL_DECOMPRESS_MEM_TO_MEM_FAILED ((size_t)(-1)) -size_t tinfl_decompress_mem_to_mem(void *pOut_buf, size_t out_buf_len, const void *pSrc_buf, size_t src_buf_len, int flags); - -/* tinfl_decompress_mem_to_callback() decompresses a block in memory to an internal 32KB buffer, and a user provided callback function will be called to flush the buffer. */ -/* Returns 1 on success or 0 on failure. */ -typedef int (*tinfl_put_buf_func_ptr)(const void *pBuf, int len, void *pUser); -int tinfl_decompress_mem_to_callback(const void *pIn_buf, size_t *pIn_buf_size, tinfl_put_buf_func_ptr pPut_buf_func, void *pPut_buf_user, int flags); - -struct tinfl_decompressor_tag; -typedef struct tinfl_decompressor_tag tinfl_decompressor; - -#ifndef MINIZ_NO_MALLOC -/* Allocate the tinfl_decompressor structure in C so that */ -/* non-C language bindings to tinfl_ API don't need to worry about */ -/* structure size and allocation mechanism. */ -tinfl_decompressor *tinfl_decompressor_alloc(void); -void tinfl_decompressor_free(tinfl_decompressor *pDecomp); -#endif - -/* Max size of LZ dictionary. */ -#define TINFL_LZ_DICT_SIZE 32768 - -/* Return status. */ -typedef enum { - /* This flags indicates the inflator needs 1 or more input bytes to make forward progress, but the caller is indicating that no more are available. The compressed data */ - /* is probably corrupted. If you call the inflator again with more bytes it'll try to continue processing the input but this is a BAD sign (either the data is corrupted or you called it incorrectly). */ - /* If you call it again with no input you'll just get TINFL_STATUS_FAILED_CANNOT_MAKE_PROGRESS again. */ - TINFL_STATUS_FAILED_CANNOT_MAKE_PROGRESS = -4, - - /* This flag indicates that one or more of the input parameters was obviously bogus. (You can try calling it again, but if you get this error the calling code is wrong.) */ - TINFL_STATUS_BAD_PARAM = -3, - - /* This flags indicate the inflator is finished but the adler32 check of the uncompressed data didn't match. If you call it again it'll return TINFL_STATUS_DONE. */ - TINFL_STATUS_ADLER32_MISMATCH = -2, - - /* This flags indicate the inflator has somehow failed (bad code, corrupted input, etc.). If you call it again without resetting via tinfl_init() it it'll just keep on returning the same status failure code. */ - TINFL_STATUS_FAILED = -1, - - /* Any status code less than TINFL_STATUS_DONE must indicate a failure. */ - - /* This flag indicates the inflator has returned every byte of uncompressed data that it can, has consumed every byte that it needed, has successfully reached the end of the deflate stream, and */ - /* if zlib headers and adler32 checking enabled that it has successfully checked the uncompressed data's adler32. If you call it again you'll just get TINFL_STATUS_DONE over and over again. */ - TINFL_STATUS_DONE = 0, - - /* This flag indicates the inflator MUST have more input data (even 1 byte) before it can make any more forward progress, or you need to clear the TINFL_FLAG_HAS_MORE_INPUT */ - /* flag on the next call if you don't have any more source data. If the source data was somehow corrupted it's also possible (but unlikely) for the inflator to keep on demanding input to */ - /* proceed, so be sure to properly set the TINFL_FLAG_HAS_MORE_INPUT flag. */ - TINFL_STATUS_NEEDS_MORE_INPUT = 1, - - /* This flag indicates the inflator definitely has 1 or more bytes of uncompressed data available, but it cannot write this data into the output buffer. */ - /* Note if the source compressed data was corrupted it's possible for the inflator to return a lot of uncompressed data to the caller. I've been assuming you know how much uncompressed data to expect */ - /* (either exact or worst case) and will stop calling the inflator and fail after receiving too much. In pure streaming scenarios where you have no idea how many bytes to expect this may not be possible */ - /* so I may need to add some code to address this. */ - TINFL_STATUS_HAS_MORE_OUTPUT = 2 -} tinfl_status; - -/* Initializes the decompressor to its initial state. */ -#define tinfl_init(r) \ - do \ - { \ - (r)->m_state = 0; \ - } \ - MZ_MACRO_END -#define tinfl_get_adler32(r) (r)->m_check_adler32 - -/* Main low-level decompressor coroutine function. This is the only function actually needed for decompression. All the other functions are just high-level helpers for improved usability. */ -/* This is a universal API, i.e. it can be used as a building block to build any desired higher level decompression API. In the limit case, it can be called once per every byte input or output. */ -tinfl_status tinfl_decompress(tinfl_decompressor *r, const mz_uint8 *pIn_buf_next, size_t *pIn_buf_size, mz_uint8 *pOut_buf_start, mz_uint8 *pOut_buf_next, size_t *pOut_buf_size, const mz_uint32 decomp_flags); - -/* Internal/private bits follow. */ -enum -{ - TINFL_MAX_HUFF_TABLES = 3, - TINFL_MAX_HUFF_SYMBOLS_0 = 288, - TINFL_MAX_HUFF_SYMBOLS_1 = 32, - TINFL_MAX_HUFF_SYMBOLS_2 = 19, - TINFL_FAST_LOOKUP_BITS = 10, - TINFL_FAST_LOOKUP_SIZE = 1 << TINFL_FAST_LOOKUP_BITS -}; - -typedef struct -{ - mz_uint8 m_code_size[TINFL_MAX_HUFF_SYMBOLS_0]; - mz_int16 m_look_up[TINFL_FAST_LOOKUP_SIZE], m_tree[TINFL_MAX_HUFF_SYMBOLS_0 * 2]; -} tinfl_huff_table; - -#if MINIZ_HAS_64BIT_REGISTERS -#define TINFL_USE_64BIT_BITBUF 1 -#else -#define TINFL_USE_64BIT_BITBUF 0 -#endif - -#if TINFL_USE_64BIT_BITBUF -typedef mz_uint64 tinfl_bit_buf_t; -#define TINFL_BITBUF_SIZE (64) -#else -typedef mz_uint32 tinfl_bit_buf_t; -#define TINFL_BITBUF_SIZE (32) -#endif - -struct tinfl_decompressor_tag -{ - mz_uint32 m_state, m_num_bits, m_zhdr0, m_zhdr1, m_z_adler32, m_final, m_type, m_check_adler32, m_dist, m_counter, m_num_extra, m_table_sizes[TINFL_MAX_HUFF_TABLES]; - tinfl_bit_buf_t m_bit_buf; - size_t m_dist_from_out_buf_start; - tinfl_huff_table m_tables[TINFL_MAX_HUFF_TABLES]; - mz_uint8 m_raw_header[4], m_len_codes[TINFL_MAX_HUFF_SYMBOLS_0 + TINFL_MAX_HUFF_SYMBOLS_1 + 137]; -}; - -#ifdef __cplusplus -} -#endif - -#pragma once - - -/* ------------------- ZIP archive reading/writing */ - -#ifndef MINIZ_NO_ARCHIVE_APIS - -#ifdef __cplusplus -extern "C" { -#endif - -enum -{ - /* Note: These enums can be reduced as needed to save memory or stack space - they are pretty conservative. */ - MZ_ZIP_MAX_IO_BUF_SIZE = 64 * 1024, - MZ_ZIP_MAX_ARCHIVE_FILENAME_SIZE = 512, - MZ_ZIP_MAX_ARCHIVE_FILE_COMMENT_SIZE = 512 -}; - -typedef struct -{ - /* Central directory file index. */ - mz_uint32 m_file_index; - - /* Byte offset of this entry in the archive's central directory. Note we currently only support up to UINT_MAX or less bytes in the central dir. */ - mz_uint64 m_central_dir_ofs; - - /* These fields are copied directly from the zip's central dir. */ - mz_uint16 m_version_made_by; - mz_uint16 m_version_needed; - mz_uint16 m_bit_flag; - mz_uint16 m_method; - -#ifndef MINIZ_NO_TIME - MZ_TIME_T m_time; -#endif - - /* CRC-32 of uncompressed data. */ - mz_uint32 m_crc32; - - /* File's compressed size. */ - mz_uint64 m_comp_size; - - /* File's uncompressed size. Note, I've seen some old archives where directory entries had 512 bytes for their uncompressed sizes, but when you try to unpack them you actually get 0 bytes. */ - mz_uint64 m_uncomp_size; - - /* Zip internal and external file attributes. */ - mz_uint16 m_internal_attr; - mz_uint32 m_external_attr; - - /* Entry's local header file offset in bytes. */ - mz_uint64 m_local_header_ofs; - - /* Size of comment in bytes. */ - mz_uint32 m_comment_size; - - /* MZ_TRUE if the entry appears to be a directory. */ - mz_bool m_is_directory; - - /* MZ_TRUE if the entry uses encryption/strong encryption (which miniz_zip doesn't support) */ - mz_bool m_is_encrypted; - - /* MZ_TRUE if the file is not encrypted, a patch file, and if it uses a compression method we support. */ - mz_bool m_is_supported; - - /* Filename. If string ends in '/' it's a subdirectory entry. */ - /* Guaranteed to be zero terminated, may be truncated to fit. */ - char m_filename[MZ_ZIP_MAX_ARCHIVE_FILENAME_SIZE]; - - /* Comment field. */ - /* Guaranteed to be zero terminated, may be truncated to fit. */ - char m_comment[MZ_ZIP_MAX_ARCHIVE_FILE_COMMENT_SIZE]; - -} mz_zip_archive_file_stat; - -typedef size_t (*mz_file_read_func)(void *pOpaque, mz_uint64 file_ofs, void *pBuf, size_t n); -typedef size_t (*mz_file_write_func)(void *pOpaque, mz_uint64 file_ofs, const void *pBuf, size_t n); -typedef mz_bool (*mz_file_needs_keepalive)(void *pOpaque); - -struct mz_zip_internal_state_tag; -typedef struct mz_zip_internal_state_tag mz_zip_internal_state; - -typedef enum { - MZ_ZIP_MODE_INVALID = 0, - MZ_ZIP_MODE_READING = 1, - MZ_ZIP_MODE_WRITING = 2, - MZ_ZIP_MODE_WRITING_HAS_BEEN_FINALIZED = 3 -} mz_zip_mode; - -typedef enum { - MZ_ZIP_FLAG_CASE_SENSITIVE = 0x0100, - MZ_ZIP_FLAG_IGNORE_PATH = 0x0200, - MZ_ZIP_FLAG_COMPRESSED_DATA = 0x0400, - MZ_ZIP_FLAG_DO_NOT_SORT_CENTRAL_DIRECTORY = 0x0800, - MZ_ZIP_FLAG_VALIDATE_LOCATE_FILE_FLAG = 0x1000, /* if enabled, mz_zip_reader_locate_file() will be called on each file as its validated to ensure the func finds the file in the central dir (intended for testing) */ - MZ_ZIP_FLAG_VALIDATE_HEADERS_ONLY = 0x2000, /* validate the local headers, but don't decompress the entire file and check the crc32 */ - MZ_ZIP_FLAG_WRITE_ZIP64 = 0x4000, /* always use the zip64 file format, instead of the original zip file format with automatic switch to zip64. Use as flags parameter with mz_zip_writer_init*_v2 */ - MZ_ZIP_FLAG_WRITE_ALLOW_READING = 0x8000, - MZ_ZIP_FLAG_ASCII_FILENAME = 0x10000 -} mz_zip_flags; - -typedef enum { - MZ_ZIP_TYPE_INVALID = 0, - MZ_ZIP_TYPE_USER, - MZ_ZIP_TYPE_MEMORY, - MZ_ZIP_TYPE_HEAP, - MZ_ZIP_TYPE_FILE, - MZ_ZIP_TYPE_CFILE, - MZ_ZIP_TOTAL_TYPES -} mz_zip_type; - -/* miniz error codes. Be sure to update mz_zip_get_error_string() if you add or modify this enum. */ -typedef enum { - MZ_ZIP_NO_ERROR = 0, - MZ_ZIP_UNDEFINED_ERROR, - MZ_ZIP_TOO_MANY_FILES, - MZ_ZIP_FILE_TOO_LARGE, - MZ_ZIP_UNSUPPORTED_METHOD, - MZ_ZIP_UNSUPPORTED_ENCRYPTION, - MZ_ZIP_UNSUPPORTED_FEATURE, - MZ_ZIP_FAILED_FINDING_CENTRAL_DIR, - MZ_ZIP_NOT_AN_ARCHIVE, - MZ_ZIP_INVALID_HEADER_OR_CORRUPTED, - MZ_ZIP_UNSUPPORTED_MULTIDISK, - MZ_ZIP_DECOMPRESSION_FAILED, - MZ_ZIP_COMPRESSION_FAILED, - MZ_ZIP_UNEXPECTED_DECOMPRESSED_SIZE, - MZ_ZIP_CRC_CHECK_FAILED, - MZ_ZIP_UNSUPPORTED_CDIR_SIZE, - MZ_ZIP_ALLOC_FAILED, - MZ_ZIP_FILE_OPEN_FAILED, - MZ_ZIP_FILE_CREATE_FAILED, - MZ_ZIP_FILE_WRITE_FAILED, - MZ_ZIP_FILE_READ_FAILED, - MZ_ZIP_FILE_CLOSE_FAILED, - MZ_ZIP_FILE_SEEK_FAILED, - MZ_ZIP_FILE_STAT_FAILED, - MZ_ZIP_INVALID_PARAMETER, - MZ_ZIP_INVALID_FILENAME, - MZ_ZIP_BUF_TOO_SMALL, - MZ_ZIP_INTERNAL_ERROR, - MZ_ZIP_FILE_NOT_FOUND, - MZ_ZIP_ARCHIVE_TOO_LARGE, - MZ_ZIP_VALIDATION_FAILED, - MZ_ZIP_WRITE_CALLBACK_FAILED, - MZ_ZIP_TOTAL_ERRORS -} mz_zip_error; - -typedef struct -{ - mz_uint64 m_archive_size; - mz_uint64 m_central_directory_file_ofs; - - /* We only support up to UINT32_MAX files in zip64 mode. */ - mz_uint32 m_total_files; - mz_zip_mode m_zip_mode; - mz_zip_type m_zip_type; - mz_zip_error m_last_error; - - mz_uint64 m_file_offset_alignment; - - mz_alloc_func m_pAlloc; - mz_free_func m_pFree; - mz_realloc_func m_pRealloc; - void *m_pAlloc_opaque; - - mz_file_read_func m_pRead; - mz_file_write_func m_pWrite; - mz_file_needs_keepalive m_pNeeds_keepalive; - void *m_pIO_opaque; - - mz_zip_internal_state *m_pState; - -} mz_zip_archive; - -typedef struct -{ - mz_zip_archive *pZip; - mz_uint flags; - - int status; -#ifndef MINIZ_DISABLE_ZIP_READER_CRC32_CHECKS - mz_uint file_crc32; -#endif - mz_uint64 read_buf_size, read_buf_ofs, read_buf_avail, comp_remaining, out_buf_ofs, cur_file_ofs; - mz_zip_archive_file_stat file_stat; - void *pRead_buf; - void *pWrite_buf; - - size_t out_blk_remain; - - tinfl_decompressor inflator; - -} mz_zip_reader_extract_iter_state; - -/* -------- ZIP reading */ - -/* Inits a ZIP archive reader. */ -/* These functions read and validate the archive's central directory. */ -mz_bool mz_zip_reader_init(mz_zip_archive *pZip, mz_uint64 size, mz_uint flags); - -mz_bool mz_zip_reader_init_mem(mz_zip_archive *pZip, const void *pMem, size_t size, mz_uint flags); - -#ifndef MINIZ_NO_STDIO -/* Read a archive from a disk file. */ -/* file_start_ofs is the file offset where the archive actually begins, or 0. */ -/* actual_archive_size is the true total size of the archive, which may be smaller than the file's actual size on disk. If zero the entire file is treated as the archive. */ -mz_bool mz_zip_reader_init_file(mz_zip_archive *pZip, const char *pFilename, mz_uint32 flags); -mz_bool mz_zip_reader_init_file_v2(mz_zip_archive *pZip, const char *pFilename, mz_uint flags, mz_uint64 file_start_ofs, mz_uint64 archive_size); - -/* Read an archive from an already opened FILE, beginning at the current file position. */ -/* The archive is assumed to be archive_size bytes long. If archive_size is < 0, then the entire rest of the file is assumed to contain the archive. */ -/* The FILE will NOT be closed when mz_zip_reader_end() is called. */ -mz_bool mz_zip_reader_init_cfile(mz_zip_archive *pZip, MZ_FILE *pFile, mz_uint64 archive_size, mz_uint flags); -#endif - -/* Ends archive reading, freeing all allocations, and closing the input archive file if mz_zip_reader_init_file() was used. */ -mz_bool mz_zip_reader_end(mz_zip_archive *pZip); - -/* -------- ZIP reading or writing */ - -/* Clears a mz_zip_archive struct to all zeros. */ -/* Important: This must be done before passing the struct to any mz_zip functions. */ -void mz_zip_zero_struct(mz_zip_archive *pZip); - -mz_zip_mode mz_zip_get_mode(mz_zip_archive *pZip); -mz_zip_type mz_zip_get_type(mz_zip_archive *pZip); - -/* Returns the total number of files in the archive. */ -mz_uint mz_zip_reader_get_num_files(mz_zip_archive *pZip); - -mz_uint64 mz_zip_get_archive_size(mz_zip_archive *pZip); -mz_uint64 mz_zip_get_archive_file_start_offset(mz_zip_archive *pZip); -MZ_FILE *mz_zip_get_cfile(mz_zip_archive *pZip); - -/* Reads n bytes of raw archive data, starting at file offset file_ofs, to pBuf. */ -size_t mz_zip_read_archive_data(mz_zip_archive *pZip, mz_uint64 file_ofs, void *pBuf, size_t n); - -/* All mz_zip funcs set the m_last_error field in the mz_zip_archive struct. These functions retrieve/manipulate this field. */ -/* Note that the m_last_error functionality is not thread safe. */ -mz_zip_error mz_zip_set_last_error(mz_zip_archive *pZip, mz_zip_error err_num); -mz_zip_error mz_zip_peek_last_error(mz_zip_archive *pZip); -mz_zip_error mz_zip_clear_last_error(mz_zip_archive *pZip); -mz_zip_error mz_zip_get_last_error(mz_zip_archive *pZip); -const char *mz_zip_get_error_string(mz_zip_error mz_err); - -/* MZ_TRUE if the archive file entry is a directory entry. */ -mz_bool mz_zip_reader_is_file_a_directory(mz_zip_archive *pZip, mz_uint file_index); - -/* MZ_TRUE if the file is encrypted/strong encrypted. */ -mz_bool mz_zip_reader_is_file_encrypted(mz_zip_archive *pZip, mz_uint file_index); - -/* MZ_TRUE if the compression method is supported, and the file is not encrypted, and the file is not a compressed patch file. */ -mz_bool mz_zip_reader_is_file_supported(mz_zip_archive *pZip, mz_uint file_index); - -/* Retrieves the filename of an archive file entry. */ -/* Returns the number of bytes written to pFilename, or if filename_buf_size is 0 this function returns the number of bytes needed to fully store the filename. */ -mz_uint mz_zip_reader_get_filename(mz_zip_archive *pZip, mz_uint file_index, char *pFilename, mz_uint filename_buf_size); - -/* Attempts to locates a file in the archive's central directory. */ -/* Valid flags: MZ_ZIP_FLAG_CASE_SENSITIVE, MZ_ZIP_FLAG_IGNORE_PATH */ -/* Returns -1 if the file cannot be found. */ -int mz_zip_reader_locate_file(mz_zip_archive *pZip, const char *pName, const char *pComment, mz_uint flags); -int mz_zip_reader_locate_file_v2(mz_zip_archive *pZip, const char *pName, const char *pComment, mz_uint flags, mz_uint32 *file_index); - -/* Returns detailed information about an archive file entry. */ -mz_bool mz_zip_reader_file_stat(mz_zip_archive *pZip, mz_uint file_index, mz_zip_archive_file_stat *pStat); - -/* MZ_TRUE if the file is in zip64 format. */ -/* A file is considered zip64 if it contained a zip64 end of central directory marker, or if it contained any zip64 extended file information fields in the central directory. */ -mz_bool mz_zip_is_zip64(mz_zip_archive *pZip); - -/* Returns the total central directory size in bytes. */ -/* The current max supported size is <= MZ_UINT32_MAX. */ -size_t mz_zip_get_central_dir_size(mz_zip_archive *pZip); - -/* Extracts a archive file to a memory buffer using no memory allocation. */ -/* There must be at least enough room on the stack to store the inflator's state (~34KB or so). */ -mz_bool mz_zip_reader_extract_to_mem_no_alloc(mz_zip_archive *pZip, mz_uint file_index, void *pBuf, size_t buf_size, mz_uint flags, void *pUser_read_buf, size_t user_read_buf_size); -mz_bool mz_zip_reader_extract_file_to_mem_no_alloc(mz_zip_archive *pZip, const char *pFilename, void *pBuf, size_t buf_size, mz_uint flags, void *pUser_read_buf, size_t user_read_buf_size); - -/* Extracts a archive file to a memory buffer. */ -mz_bool mz_zip_reader_extract_to_mem(mz_zip_archive *pZip, mz_uint file_index, void *pBuf, size_t buf_size, mz_uint flags); -mz_bool mz_zip_reader_extract_file_to_mem(mz_zip_archive *pZip, const char *pFilename, void *pBuf, size_t buf_size, mz_uint flags); - -/* Extracts a archive file to a dynamically allocated heap buffer. */ -/* The memory will be allocated via the mz_zip_archive's alloc/realloc functions. */ -/* Returns NULL and sets the last error on failure. */ -void *mz_zip_reader_extract_to_heap(mz_zip_archive *pZip, mz_uint file_index, size_t *pSize, mz_uint flags); -void *mz_zip_reader_extract_file_to_heap(mz_zip_archive *pZip, const char *pFilename, size_t *pSize, mz_uint flags); - -/* Extracts a archive file using a callback function to output the file's data. */ -mz_bool mz_zip_reader_extract_to_callback(mz_zip_archive *pZip, mz_uint file_index, mz_file_write_func pCallback, void *pOpaque, mz_uint flags); -mz_bool mz_zip_reader_extract_file_to_callback(mz_zip_archive *pZip, const char *pFilename, mz_file_write_func pCallback, void *pOpaque, mz_uint flags); - -/* Extract a file iteratively */ -mz_zip_reader_extract_iter_state* mz_zip_reader_extract_iter_new(mz_zip_archive *pZip, mz_uint file_index, mz_uint flags); -mz_zip_reader_extract_iter_state* mz_zip_reader_extract_file_iter_new(mz_zip_archive *pZip, const char *pFilename, mz_uint flags); -size_t mz_zip_reader_extract_iter_read(mz_zip_reader_extract_iter_state* pState, void* pvBuf, size_t buf_size); -mz_bool mz_zip_reader_extract_iter_free(mz_zip_reader_extract_iter_state* pState); - -#ifndef MINIZ_NO_STDIO -/* Extracts a archive file to a disk file and sets its last accessed and modified times. */ -/* This function only extracts files, not archive directory records. */ -mz_bool mz_zip_reader_extract_to_file(mz_zip_archive *pZip, mz_uint file_index, const char *pDst_filename, mz_uint flags); -mz_bool mz_zip_reader_extract_file_to_file(mz_zip_archive *pZip, const char *pArchive_filename, const char *pDst_filename, mz_uint flags); - -/* Extracts a archive file starting at the current position in the destination FILE stream. */ -mz_bool mz_zip_reader_extract_to_cfile(mz_zip_archive *pZip, mz_uint file_index, MZ_FILE *File, mz_uint flags); -mz_bool mz_zip_reader_extract_file_to_cfile(mz_zip_archive *pZip, const char *pArchive_filename, MZ_FILE *pFile, mz_uint flags); -#endif - -#if 0 -/* TODO */ - typedef void *mz_zip_streaming_extract_state_ptr; - mz_zip_streaming_extract_state_ptr mz_zip_streaming_extract_begin(mz_zip_archive *pZip, mz_uint file_index, mz_uint flags); - uint64_t mz_zip_streaming_extract_get_size(mz_zip_archive *pZip, mz_zip_streaming_extract_state_ptr pState); - uint64_t mz_zip_streaming_extract_get_cur_ofs(mz_zip_archive *pZip, mz_zip_streaming_extract_state_ptr pState); - mz_bool mz_zip_streaming_extract_seek(mz_zip_archive *pZip, mz_zip_streaming_extract_state_ptr pState, uint64_t new_ofs); - size_t mz_zip_streaming_extract_read(mz_zip_archive *pZip, mz_zip_streaming_extract_state_ptr pState, void *pBuf, size_t buf_size); - mz_bool mz_zip_streaming_extract_end(mz_zip_archive *pZip, mz_zip_streaming_extract_state_ptr pState); -#endif - -/* This function compares the archive's local headers, the optional local zip64 extended information block, and the optional descriptor following the compressed data vs. the data in the central directory. */ -/* It also validates that each file can be successfully uncompressed unless the MZ_ZIP_FLAG_VALIDATE_HEADERS_ONLY is specified. */ -mz_bool mz_zip_validate_file(mz_zip_archive *pZip, mz_uint file_index, mz_uint flags); - -/* Validates an entire archive by calling mz_zip_validate_file() on each file. */ -mz_bool mz_zip_validate_archive(mz_zip_archive *pZip, mz_uint flags); - -/* Misc utils/helpers, valid for ZIP reading or writing */ -mz_bool mz_zip_validate_mem_archive(const void *pMem, size_t size, mz_uint flags, mz_zip_error *pErr); -mz_bool mz_zip_validate_file_archive(const char *pFilename, mz_uint flags, mz_zip_error *pErr); - -/* Universal end function - calls either mz_zip_reader_end() or mz_zip_writer_end(). */ -mz_bool mz_zip_end(mz_zip_archive *pZip); - -/* -------- ZIP writing */ - -#ifndef MINIZ_NO_ARCHIVE_WRITING_APIS - -/* Inits a ZIP archive writer. */ -/*Set pZip->m_pWrite (and pZip->m_pIO_opaque) before calling mz_zip_writer_init or mz_zip_writer_init_v2*/ -/*The output is streamable, i.e. file_ofs in mz_file_write_func always increases only by n*/ -mz_bool mz_zip_writer_init(mz_zip_archive *pZip, mz_uint64 existing_size); -mz_bool mz_zip_writer_init_v2(mz_zip_archive *pZip, mz_uint64 existing_size, mz_uint flags); - -mz_bool mz_zip_writer_init_heap(mz_zip_archive *pZip, size_t size_to_reserve_at_beginning, size_t initial_allocation_size); -mz_bool mz_zip_writer_init_heap_v2(mz_zip_archive *pZip, size_t size_to_reserve_at_beginning, size_t initial_allocation_size, mz_uint flags); - -#ifndef MINIZ_NO_STDIO -mz_bool mz_zip_writer_init_file(mz_zip_archive *pZip, const char *pFilename, mz_uint64 size_to_reserve_at_beginning); -mz_bool mz_zip_writer_init_file_v2(mz_zip_archive *pZip, const char *pFilename, mz_uint64 size_to_reserve_at_beginning, mz_uint flags); -mz_bool mz_zip_writer_init_cfile(mz_zip_archive *pZip, MZ_FILE *pFile, mz_uint flags); -#endif - -/* Converts a ZIP archive reader object into a writer object, to allow efficient in-place file appends to occur on an existing archive. */ -/* For archives opened using mz_zip_reader_init_file, pFilename must be the archive's filename so it can be reopened for writing. If the file can't be reopened, mz_zip_reader_end() will be called. */ -/* For archives opened using mz_zip_reader_init_mem, the memory block must be growable using the realloc callback (which defaults to realloc unless you've overridden it). */ -/* Finally, for archives opened using mz_zip_reader_init, the mz_zip_archive's user provided m_pWrite function cannot be NULL. */ -/* Note: In-place archive modification is not recommended unless you know what you're doing, because if execution stops or something goes wrong before */ -/* the archive is finalized the file's central directory will be hosed. */ -mz_bool mz_zip_writer_init_from_reader(mz_zip_archive *pZip, const char *pFilename); -mz_bool mz_zip_writer_init_from_reader_v2(mz_zip_archive *pZip, const char *pFilename, mz_uint flags); - -/* Adds the contents of a memory buffer to an archive. These functions record the current local time into the archive. */ -/* To add a directory entry, call this method with an archive name ending in a forwardslash with an empty buffer. */ -/* level_and_flags - compression level (0-10, see MZ_BEST_SPEED, MZ_BEST_COMPRESSION, etc.) logically OR'd with zero or more mz_zip_flags, or just set to MZ_DEFAULT_COMPRESSION. */ -mz_bool mz_zip_writer_add_mem(mz_zip_archive *pZip, const char *pArchive_name, const void *pBuf, size_t buf_size, mz_uint level_and_flags); - -/* Like mz_zip_writer_add_mem(), except you can specify a file comment field, and optionally supply the function with already compressed data. */ -/* uncomp_size/uncomp_crc32 are only used if the MZ_ZIP_FLAG_COMPRESSED_DATA flag is specified. */ -mz_bool mz_zip_writer_add_mem_ex(mz_zip_archive *pZip, const char *pArchive_name, const void *pBuf, size_t buf_size, const void *pComment, mz_uint16 comment_size, mz_uint level_and_flags, - mz_uint64 uncomp_size, mz_uint32 uncomp_crc32); - -mz_bool mz_zip_writer_add_mem_ex_v2(mz_zip_archive *pZip, const char *pArchive_name, const void *pBuf, size_t buf_size, const void *pComment, mz_uint16 comment_size, mz_uint level_and_flags, - mz_uint64 uncomp_size, mz_uint32 uncomp_crc32, MZ_TIME_T *last_modified, const char *user_extra_data_local, mz_uint user_extra_data_local_len, - const char *user_extra_data_central, mz_uint user_extra_data_central_len); - -/* Adds the contents of a file to an archive. This function also records the disk file's modified time into the archive. */ -/* File data is supplied via a read callback function. User mz_zip_writer_add_(c)file to add a file directly.*/ -mz_bool mz_zip_writer_add_read_buf_callback(mz_zip_archive *pZip, const char *pArchive_name, mz_file_read_func read_callback, void* callback_opaque, mz_uint64 size_to_add, - const MZ_TIME_T *pFile_time, const void *pComment, mz_uint16 comment_size, mz_uint level_and_flags, const char *user_extra_data_local, mz_uint user_extra_data_local_len, - const char *user_extra_data_central, mz_uint user_extra_data_central_len); - -#ifndef MINIZ_NO_STDIO -/* Adds the contents of a disk file to an archive. This function also records the disk file's modified time into the archive. */ -/* level_and_flags - compression level (0-10, see MZ_BEST_SPEED, MZ_BEST_COMPRESSION, etc.) logically OR'd with zero or more mz_zip_flags, or just set to MZ_DEFAULT_COMPRESSION. */ -mz_bool mz_zip_writer_add_file(mz_zip_archive *pZip, const char *pArchive_name, const char *pSrc_filename, const void *pComment, mz_uint16 comment_size, mz_uint level_and_flags); - -/* Like mz_zip_writer_add_file(), except the file data is read from the specified FILE stream. */ -mz_bool mz_zip_writer_add_cfile(mz_zip_archive *pZip, const char *pArchive_name, MZ_FILE *pSrc_file, mz_uint64 size_to_add, - const MZ_TIME_T *pFile_time, const void *pComment, mz_uint16 comment_size, mz_uint level_and_flags, const char *user_extra_data_local, mz_uint user_extra_data_local_len, - const char *user_extra_data_central, mz_uint user_extra_data_central_len); -#endif - -/* Adds a file to an archive by fully cloning the data from another archive. */ -/* This function fully clones the source file's compressed data (no recompression), along with its full filename, extra data (it may add or modify the zip64 local header extra data field), and the optional descriptor following the compressed data. */ -mz_bool mz_zip_writer_add_from_zip_reader(mz_zip_archive *pZip, mz_zip_archive *pSource_zip, mz_uint src_file_index); - -/* Finalizes the archive by writing the central directory records followed by the end of central directory record. */ -/* After an archive is finalized, the only valid call on the mz_zip_archive struct is mz_zip_writer_end(). */ -/* An archive must be manually finalized by calling this function for it to be valid. */ -mz_bool mz_zip_writer_finalize_archive(mz_zip_archive *pZip); - -/* Finalizes a heap archive, returning a pointer to the heap block and its size. */ -/* The heap block will be allocated using the mz_zip_archive's alloc/realloc callbacks. */ -mz_bool mz_zip_writer_finalize_heap_archive(mz_zip_archive *pZip, void **ppBuf, size_t *pSize); - -/* Ends archive writing, freeing all allocations, and closing the output file if mz_zip_writer_init_file() was used. */ -/* Note for the archive to be valid, it *must* have been finalized before ending (this function will not do it for you). */ -mz_bool mz_zip_writer_end(mz_zip_archive *pZip); - -/* -------- Misc. high-level helper functions: */ - -/* mz_zip_add_mem_to_archive_file_in_place() efficiently (but not atomically) appends a memory blob to a ZIP archive. */ -/* Note this is NOT a fully safe operation. If it crashes or dies in some way your archive can be left in a screwed up state (without a central directory). */ -/* level_and_flags - compression level (0-10, see MZ_BEST_SPEED, MZ_BEST_COMPRESSION, etc.) logically OR'd with zero or more mz_zip_flags, or just set to MZ_DEFAULT_COMPRESSION. */ -/* TODO: Perhaps add an option to leave the existing central dir in place in case the add dies? We could then truncate the file (so the old central dir would be at the end) if something goes wrong. */ -mz_bool mz_zip_add_mem_to_archive_file_in_place(const char *pZip_filename, const char *pArchive_name, const void *pBuf, size_t buf_size, const void *pComment, mz_uint16 comment_size, mz_uint level_and_flags); -mz_bool mz_zip_add_mem_to_archive_file_in_place_v2(const char *pZip_filename, const char *pArchive_name, const void *pBuf, size_t buf_size, const void *pComment, mz_uint16 comment_size, mz_uint level_and_flags, mz_zip_error *pErr); - -/* Reads a single file from an archive into a heap block. */ -/* If pComment is not NULL, only the file with the specified comment will be extracted. */ -/* Returns NULL on failure. */ -void *mz_zip_extract_archive_file_to_heap(const char *pZip_filename, const char *pArchive_name, size_t *pSize, mz_uint flags); -void *mz_zip_extract_archive_file_to_heap_v2(const char *pZip_filename, const char *pArchive_name, const char *pComment, size_t *pSize, mz_uint flags, mz_zip_error *pErr); - -#endif /* #ifndef MINIZ_NO_ARCHIVE_WRITING_APIS */ - -#ifdef __cplusplus -} -#endif - -#endif /* MINIZ_NO_ARCHIVE_APIS */ diff --git a/flasher_stub/include/rom_functions.h b/flasher_stub/include/rom_functions.h deleted file mode 100644 index a66a9b62c..000000000 --- a/flasher_stub/include/rom_functions.h +++ /dev/null @@ -1,356 +0,0 @@ -/* - * SPDX-FileCopyrightText: 2016 Cesanta Software Limited - * - * SPDX-License-Identifier: GPL-2.0-or-later - * - * SPDX-FileContributor: 2016-2022 Espressif Systems (Shanghai) CO LTD - */ - -/* ROM function prototypes for functions in ROM which are - called by the flasher stubs. -*/ -#pragma once - -#include -#include "soc_support.h" - -int uart_rx_one_char(uint8_t *ch); -uint8_t uart_rx_one_char_block(); -int uart_tx_one_char(char ch); - -#if ESP32C6 || ESP32H2 || ESP32C5 || ESP32C5BETA3 || ESP32P4 -/* uart_tx_one_char doesn't send data to USB device serial, needs to be replaced */ -int uart_tx_one_char2(char ch); -#define uart_tx_one_char(ch) uart_tx_one_char2(ch) -#endif // ESP32C6 || ESP32H2 || ESP32C5 || ESP32C5BETA3 || ESP32P4 - -void uart_div_modify(uint32_t uart_no, uint32_t baud_div); - -void ets_delay_us(uint32_t us); - -typedef enum { SPI_FLASH_RESULT_OK = 0, - SPI_FLASH_RESULT_ERR = 1, - SPI_FLASH_RESULT_TIMEOUT = 2 } SpiFlashOpResult; - -SpiFlashOpResult SPILock(); -SpiFlashOpResult SPIUnlock(); -SpiFlashOpResult SPIRead(uint32_t addr, void *dst, uint32_t size); -SpiFlashOpResult SPIWrite(uint32_t addr, const uint8_t *src, uint32_t size); -SpiFlashOpResult SPIEraseChip(); -SpiFlashOpResult SPIEraseBlock(uint32_t block_num); -SpiFlashOpResult SPIEraseSector(uint32_t sector_num); -uint32_t SPI_read_status(); -uint32_t Wait_SPI_Idle(); -void spi_flash_attach(); - -void SelectSpiFunction(); -uint32_t SPIParamCfg(uint32_t deviceId, uint32_t chip_size, uint32_t block_size, uint32_t sector_size, uint32_t page_size, uint32_t status_mask); - -void ets_isr_mask(uint32_t ints); -void ets_isr_unmask(uint32_t ints); -void ets_set_user_start(void (*user_start_fn)()); - -void software_reset(); -void software_reset_cpu(int cpu_no); - -#ifdef ESP32C2 // ESP32C2 ROM uses mbedtls_md5 -struct MD5Context { // Called mbedtls_md5_context in ROM - uint32_t total[2]; // number of bytes processed - uint32_t state[4]; // intermediate digest state - unsigned char buffer[64]; // data block being processed -}; - -int mbedtls_md5_starts_ret(struct MD5Context *ctx); -int mbedtls_md5_update_ret(struct MD5Context *ctx, const unsigned char *input, size_t ilen); -int mbedtls_md5_finish_ret(struct MD5Context *ctx, unsigned char digest[16]); - -#define MD5Init(ctx) mbedtls_md5_starts_ret(ctx) -#define MD5Update(ctx, buf, n) mbedtls_md5_update_ret(ctx, buf, n) -#define MD5Final(digest, ctx) mbedtls_md5_finish_ret(ctx, digest) -#else // not ESP32C2 -struct MD5Context { - uint32_t buf[4]; - uint32_t bits[2]; - uint8_t in[64]; -}; - -void MD5Init(struct MD5Context *ctx); -void MD5Update(struct MD5Context *ctx, void *buf, uint32_t len); -void MD5Final(uint8_t digest[16], struct MD5Context *ctx); -#endif // not ESP32C2 - -typedef struct { - uint32_t device_id; - uint32_t chip_size; // chip size in bytes - uint32_t block_size; - uint32_t sector_size; - uint32_t page_size; - uint32_t status_mask; -} esp_rom_spiflash_chip_t; - - -typedef void (*int_handler_t)(void *arg); -int_handler_t ets_isr_attach(uint32_t int_num, int_handler_t handler, - void *arg); -/* Some ESP32-onwards ROM functions */ -#if ESP32_OR_LATER -void uart_tx_flush(int uart); -uint32_t ets_efuse_get_spiconfig(void); - -#if ESP32 -SpiFlashOpResult esp_rom_spiflash_write_encrypted(uint32_t addr, const uint8_t *src, uint32_t size); -#else -void SPI_Write_Encrypt_Enable(); -void SPI_Write_Encrypt_Disable(); -SpiFlashOpResult SPI_Encrypt_Write(uint32_t flash_addr, const void* data, uint32_t len); -#endif - -#if ESP32S2_OR_LATER -uint32_t GetSecurityInfoProc(int* pMsg, int* pnErr, uint8_t *buf); // pMsg and pnErr unused in ROM -#if ESP32C3 -extern uint32_t _rom_eco_version; // rom constant to define ECO version -uint32_t GetSecurityInfoProcNewEco(int* pMsg, int* pnErr, uint8_t *buf); // GetSecurityInfo for C3 ECO7+ -#endif // ESP32C3 -SpiFlashOpResult SPI_read_status_high(esp_rom_spiflash_chip_t *spi, uint32_t *status); -#else -/* Note: On ESP32 this was a static function whose first argument was elided by the - compiler. */ -SpiFlashOpResult SPI_read_status_high(uint32_t *status); -#endif - -SpiFlashOpResult SPI_write_status(esp_rom_spiflash_chip_t *spi, uint32_t status_value); - -void intr_matrix_set(int cpu_no, uint32_t module_num, uint32_t intr_num); -#endif /* ESP32_OR_LATER */ - -/* RISC-V-only ROM functions */ -#if IS_RISCV -void esprv_intc_int_set_priority(int intr_num, int priority); -#endif // IS_RISCV - -/* USB-OTG and USB-JTAG-Serial imports */ -#ifdef WITH_USB_OTG -#define ACM_BYTES_PER_TX 64 -#define ACM_STATUS_LINESTATE_CHANGED -1 -#define ACM_STATUS_RX -4 -#define LINE_CTRL_BAUD_RATE (1 << 0) -#define LINE_CTRL_RTS (1 << 1) -#define LINE_CTRL_DTR (1 << 2) -#define LINE_CTRL_DCD (1 << 3) -#define LINE_CTRL_DSR (1 << 4) -#define USBDC_PERSIST_ENA (1<<31) -void usb_dw_isr_handler(void* arg); -typedef void cdc_acm_device; -extern cdc_acm_device *uart_acm_dev; -typedef void(*uart_irq_callback_t)(cdc_acm_device *dev, int status); -void cdc_acm_irq_callback_set(cdc_acm_device *dev, uart_irq_callback_t cb); -void cdc_acm_irq_rx_enable(cdc_acm_device *dev); -void cdc_acm_irq_rx_disable(cdc_acm_device *dev); -int cdc_acm_fifo_read(cdc_acm_device *dev, uint8_t *rx_data, const int size); -int cdc_acm_fifo_fill(cdc_acm_device *dev, const uint8_t *tx_data, int len); -int cdc_acm_line_ctrl_get(cdc_acm_device *dev, uint32_t ctrl, uint32_t *val); -int cdc_acm_rx_fifo_cnt(cdc_acm_device *dev); -void cdc_acm_irq_state_enable(cdc_acm_device *dev); -void usb_dc_check_poll_for_interrupts(void); -void chip_usb_set_persist_flags(uint32_t flags); -int usb_dc_prepare_persist(void); -#endif // WITH_USB_OTG - -#if WITH_USB_JTAG_SERIAL || WITH_USB_OTG -typedef struct { - uint8_t *pRcvMsgBuff; - uint8_t *pWritePos; - uint8_t *pReadPos; - uint8_t TrigLvl; - int BuffState; -} RcvMsgBuff; - -typedef struct { - int baud_rate; - int data_bits; - int exist_parity; - int parity; - int stop_bits; - int flow_ctrl; - uint8_t buff_uart_no; - RcvMsgBuff rcv_buff; - int rcv_state; - int received; -} UartDevice; - -UartDevice * GetUartDevice(); -#endif // WITH_USB_JTAG_SERIAL || WITH_USB_OTG - -#if defined(ESP32S3) -#define BIT(nr) (1UL << (nr)) -#define ESP_ROM_OPIFLASH_SEL_CS0 (BIT(0)) - -typedef enum { - SPI_FLASH_QIO_MODE = 0, - SPI_FLASH_QOUT_MODE, - SPI_FLASH_DIO_MODE, - SPI_FLASH_DOUT_MODE, - SPI_FLASH_FASTRD_MODE, - SPI_FLASH_SLOWRD_MODE, - SPI_FLASH_OPI_STR_MODE, - SPI_FLASH_OPI_DTR_MODE, - SPI_FLASH_OOUT_MODE, - SPI_FLASH_OIO_STR_MODE, - SPI_FLASH_OIO_DTR_MODE, - SPI_FLASH_QPI_MODE, -} SpiFlashRdMode; - -typedef enum { - ESP_ROM_SPIFLASH_RESULT_OK, - ESP_ROM_SPIFLASH_RESULT_ERR, - ESP_ROM_SPIFLASH_RESULT_TIMEOUT -} esp_rom_spiflash_result_t; - -#define CMD_RDID 0x9F -#define CMD_RDSR 0x05 -#define CMD_WREN 0x06 -#define CMD_SECTOR_ERASE 0x20 -#define CMD_SECTOR_ERASE_4B 0x21 -#define CMD_FSTRD4B 0x0C -#define CMD_LARGE_BLOCK_ERASE 0xD8 -#define CMD_LARGE_BLOCK_ERASE_4B 0xDC -#define CMD_PROGRAM_PAGE_4B 0x12 - -#define OPIFLASH_DRIVER() { \ - .rdid = { \ - .mode = SPI_FLASH_FASTRD_MODE, \ - .cmd_bit_len = 8, \ - .cmd = CMD_RDID, \ - .addr = 0, \ - .addr_bit_len = 0, \ - .dummy_bit_len = 0, \ - .data_bit_len = 24, \ - .cs_sel = 0x1, \ - .is_pe = 0, \ - }, \ - .rdsr = { \ - .mode = SPI_FLASH_FASTRD_MODE, \ - .cmd_bit_len = 8, \ - .cmd = CMD_RDSR, \ - .addr = 0, \ - .addr_bit_len = 0, \ - .dummy_bit_len = 0, \ - .data_bit_len = 8, \ - .cs_sel = 0x1, \ - .is_pe = 0, \ - }, \ - .wren = { \ - .mode = SPI_FLASH_FASTRD_MODE, \ - .cmd_bit_len = 8, \ - .cmd = CMD_WREN, \ - .addr = 0, \ - .addr_bit_len = 0, \ - .dummy_bit_len = 0, \ - .data_bit_len = 0, \ - .cs_sel = 0x1, \ - .is_pe = 0, \ - }, \ - .se = { \ - .mode = SPI_FLASH_FASTRD_MODE, \ - .cmd_bit_len = 8, \ - .cmd = CMD_SECTOR_ERASE_4B, \ - .addr = 0, \ - .addr_bit_len = 32, \ - .dummy_bit_len = 0, \ - .data_bit_len = 0, \ - .cs_sel = 0x1, \ - .is_pe = 1, \ - }, \ - .be64k = { \ - .mode = SPI_FLASH_FASTRD_MODE, \ - .cmd_bit_len = 8, \ - .cmd = CMD_LARGE_BLOCK_ERASE_4B, \ - .addr = 0, \ - .addr_bit_len = 32, \ - .dummy_bit_len = 0, \ - .data_bit_len = 0, \ - .cs_sel = 0x1, \ - .is_pe = 1, \ - }, \ - .read = { \ - .mode = SPI_FLASH_FASTRD_MODE, \ - .cmd_bit_len = 8, \ - .cmd = CMD_FSTRD4B, \ - .addr = 0, \ - .addr_bit_len = 32, \ - .dummy_bit_len = 0, \ - .data_bit_len = 0, \ - .cs_sel = 0x1, \ - .is_pe = 0, \ - }, \ - .pp = { \ - .mode = SPI_FLASH_FASTRD_MODE, \ - .cmd_bit_len = 8, \ - .cmd = CMD_PROGRAM_PAGE_4B, \ - .addr = 0, \ - .addr_bit_len = 32, \ - .dummy_bit_len = 0, \ - .data_bit_len = 0, \ - .cs_sel = 0x1, \ - .is_pe = 1, \ - }, \ - .cache_rd_cmd = { \ - .addr_bit_len = 32, \ - .dummy_bit_len = 20*2, \ - .cmd = CMD_FSTRD4B, \ - .cmd_bit_len = 16, \ - .var_dummy_en = 1, \ - } \ -} - -#ifndef ESP32S3BETA2 -typedef struct { - uint8_t mode; - uint8_t cmd_bit_len; - uint16_t cmd; - uint32_t addr; - uint8_t addr_bit_len; - uint8_t dummy_bit_len; - uint8_t data_bit_len; - uint8_t cs_sel: 4; - uint8_t is_pe: 4; -} esp_rom_opiflash_cmd_t; - -typedef struct { - uint8_t addr_bit_len; - uint8_t dummy_bit_len; - uint16_t cmd; - uint8_t cmd_bit_len; - uint8_t var_dummy_en; -} esp_rom_opiflash_spi0rd_t; - -typedef struct { - esp_rom_opiflash_cmd_t rdid; - esp_rom_opiflash_cmd_t rdsr; - esp_rom_opiflash_cmd_t wren; - esp_rom_opiflash_cmd_t se; - esp_rom_opiflash_cmd_t be64k; - esp_rom_opiflash_cmd_t read; - esp_rom_opiflash_cmd_t pp; - esp_rom_opiflash_spi0rd_t cache_rd_cmd; -} esp_rom_opiflash_def_t; - -void esp_rom_opiflash_legacy_driver_init(const esp_rom_opiflash_def_t *flash_cmd_def); -bool ets_efuse_flash_octal_mode(void); -#endif //ESP32S3BETA2 - -void esp_rom_opiflash_exec_cmd(int spi_num, SpiFlashRdMode mode, - uint32_t cmd, int cmd_bit_len, - uint32_t addr, int addr_bit_len, - int dummy_bits, - uint8_t* mosi_data, int mosi_bit_len, - uint8_t* miso_data, int miso_bit_len, - uint32_t cs_mask, - bool is_write_erase_operation); - -esp_rom_spiflash_result_t esp_rom_opiflash_wait_idle(); -esp_rom_spiflash_result_t esp_rom_opiflash_wren(); -esp_rom_spiflash_result_t esp_rom_opiflash_erase_sector(uint32_t sector_num); -esp_rom_spiflash_result_t esp_rom_opiflash_erase_block_64k(uint32_t block_num); -SpiFlashOpResult SPI_write_enable(esp_rom_spiflash_chip_t *spi); -#endif // ESP32S3 diff --git a/flasher_stub/include/slip.h b/flasher_stub/include/slip.h deleted file mode 100644 index 17608e5fb..000000000 --- a/flasher_stub/include/slip.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - * SPDX-FileCopyrightText: 2016 Cesanta Software Limited - * - * SPDX-License-Identifier: GPL-2.0-or-later - * - * SPDX-FileContributor: 2016-2022 Espressif Systems (Shanghai) CO LTD - */ - -#ifndef SLIP_H_ -#define SLIP_H_ - -#include - -/* Send the SLIP frame begin/end delimiter. */ -void SLIP_send_frame_delimiter(void); - -/* Send a single character of SLIP frame data, escaped as per SLIP escaping. */ -void SLIP_send_frame_data(char ch); - -/* Send some SLIP frame data, escaped as per SLIP escaping. */ -void SLIP_send_frame_data_buf(const void *buf, uint32_t size); - -/* Send a full SLIP frame, with specified contents. */ -void SLIP_send(const void *pkt, uint32_t size); - -typedef enum { - SLIP_NO_FRAME, - SLIP_FRAME, - SLIP_FRAME_ESCAPING -} slip_state_t; - -int16_t SLIP_recv_byte(char byte, slip_state_t *state); - -#define SLIP_FINISHED_FRAME -2 -#define SLIP_NO_BYTE -1 - -/* Receive a SLIP frame, with specified contents. */ -uint32_t SLIP_recv(void *pkt, uint32_t max_len); - -#endif /* SLIP_H_ */ diff --git a/flasher_stub/include/soc_support.h b/flasher_stub/include/soc_support.h deleted file mode 100644 index 1170ece7c..000000000 --- a/flasher_stub/include/soc_support.h +++ /dev/null @@ -1,615 +0,0 @@ -/* - * SPDX-FileCopyrightText: 2016-2022 Espressif Systems (Shanghai) CO LTD - * - * SPDX-License-Identifier: GPL-2.0-or-later - */ - -/* SoC-level support. - * - * Provide a unified register-level interface. - * - * This is the same information provided in the register headers - * of ESP8266 Non-OS SDK and ESP-IDF soc component, however - * only values that are needed for the flasher stub are included here. - * - */ -#pragma once - -#include -#include -#include - -#define READ_REG(REG) (*((volatile uint32_t *)(REG))) -#define WRITE_REG(REG, VAL) *((volatile uint32_t *)(REG)) = (VAL) -#define REG_SET_MASK(reg, mask) WRITE_REG((reg), (READ_REG(reg)|(mask))) -#define REG_CLR_MASK(reg, mask) WRITE_REG((reg), (READ_REG(reg)&(~(mask)))) -#define REG_SET_FIELD(_r, _f, _v) (WRITE_REG((_r),((READ_REG(_r) & ~((_f) << (_f##_S)))|(((_v) & (_f))<<(_f##_S))))) - -#define ESP32_OR_LATER !(ESP8266) -#define ESP32S2_OR_LATER !(ESP8266 || ESP32) -#define ESP32S3_OR_LATER !(ESP8266 || ESP32 || ESP32S2) - -/********************************************************** - * Per-SOC capabilities - */ -#ifdef ESP32S2 -#define WITH_USB_OTG 1 -#endif // ESP32S2 - -#ifdef ESP32C3 -#define WITH_USB_JTAG_SERIAL 1 -#define IS_RISCV 1 -#endif // ESP32C3 - -#ifdef ESP32S3 -#define WITH_USB_JTAG_SERIAL 1 -#define WITH_USB_OTG 1 -#endif // ESP32S3 - -#ifdef ESP32C5 -#define WITH_USB_JTAG_SERIAL 1 -#define IS_RISCV 1 -#endif // ESP32C5 - -#ifdef ESP32C5BETA3 -#define WITH_USB_JTAG_SERIAL 0 -#define IS_RISCV 1 -#endif // ESP32C5BETA3 - -#ifdef ESP32C6 -#define WITH_USB_JTAG_SERIAL 1 -#define IS_RISCV 1 -#endif // ESP32C6 - -#ifdef ESP32H2 -#define WITH_USB_JTAG_SERIAL 1 -#define IS_RISCV 1 -#endif // ESP32H2 - -#ifdef ESP32P4 -#define WITH_USB_JTAG_SERIAL 1 -// TODO: Add support for USB OTG when MP is available -// #define WITH_USB_OTG 1 -#define IS_RISCV 1 -#endif // ESP32P4 - -// Increase CPU freq to speed up read/write operations over USB -// Disabled on the S3 due to stability issues, would require dbias adjustment. -// https://github.com/espressif/esptool/issues/832, https://github.com/espressif/esptool/issues/808 -// Disabled for P4 because it is already running on high (360MHz) CPU frequency -#define USE_MAX_CPU_FREQ ((WITH_USB_JTAG_SERIAL || WITH_USB_OTG) && !ESP32S3 && !ESP32P4) - -// Later chips don't support ets_efuse_get_spiconfig. -#define SUPPORT_CONFIG_SPI (ESP32 || ESP32S2 || ESP32S3 || ESP32S3BETA2 || ESP32C3 || ESP32H2BETA1 || ESP32H2BETA2 || ESP32C6BETA) - -/********************************************************** - * Per-SOC based peripheral register base addresses - * Sync with reg_base.h in ESP-IDF - */ -#ifdef ESP8266 -#define UART_BASE_REG 0x60000000 /* UART0 */ -#define SPI_BASE_REG 0x60000200 /* SPI peripheral 0 */ -#endif - -#ifdef ESP32 -#define UART_BASE_REG 0x3ff40000 /* UART0 */ -#define SPI_BASE_REG 0x3ff42000 /* SPI peripheral 1, used for SPI flash */ -#define SPI0_BASE_REG 0x3ff43000 /* SPI peripheral 0, inner state machine */ -#define GPIO_BASE_REG 0x3ff44000 /* GPIO */ -#define DR_REG_IO_MUX_BASE 0x3ff49000 -#endif - -#ifdef ESP32S2 -#define UART_BASE_REG 0x60000000 /* UART0 */ -#define SPI_BASE_REG 0x3f402000 /* SPI peripheral 1, used for SPI flash */ -#define SPI0_BASE_REG 0x3f403000 /* SPI peripheral 0, inner state machine */ -#define GPIO_BASE_REG 0x3f404000 -#define USB_BASE_REG 0x60080000 -#define RTCCNTL_BASE_REG 0x3f408000 -#define SYSTEM_BASE_REG 0x3F4C0000 -#define DR_REG_IO_MUX_BASE 0x3f409000 -#endif - -#ifdef ESP32S3 -#define UART_BASE_REG 0x60000000 /* UART0 */ -#define SPI_BASE_REG 0x60002000 /* SPI peripheral 1, used for SPI flash */ -#define SPI0_BASE_REG 0x60003000 /* SPI peripheral 0, inner state machine */ -#define GPIO_BASE_REG 0x60004000 /* GPIO */ -#define USB_BASE_REG 0x60080000 -#define RTCCNTL_BASE_REG 0x60008000 /* RTC Control */ -#define USB_DEVICE_BASE_REG 0x60038000 -#define SYSTEM_BASE_REG 0x600C0000 -#define DR_REG_IO_MUX_BASE 0x60009000 -#endif - -#ifdef ESP32S3BETA2 -#define UART_BASE_REG 0x60000000 /* UART0 */ -#define SPI_BASE_REG 0x60002000 /* SPI peripheral 1, used for SPI flash */ -#define SPI0_BASE_REG 0x60003000 /* SPI peripheral 0, inner state machine */ -#define GPIO_BASE_REG 0x60004000 /* GPIO */ -#define USB_BASE_REG 0x60080000 -#define RTCCNTL_BASE_REG 0x60008000 /* RTC Control */ -#define USB_DEVICE_BASE_REG 0x60038000 -#define SYSTEM_BASE_REG 0x600C0000 -#define DR_REG_IO_MUX_BASE 0x60009000 -#endif - -#ifdef ESP32C3 -#define UART_BASE_REG 0x60000000 /* UART0 */ -#define SPI_BASE_REG 0x60002000 /* SPI peripheral 1, used for SPI flash */ -#define SPI0_BASE_REG 0x60003000 /* SPI peripheral 0, inner state machine */ -#define GPIO_BASE_REG 0x60004000 -#define RTCCNTL_BASE_REG 0x60008000 /* RTC Control */ -#define USB_DEVICE_BASE_REG 0x60043000 -#define SYSTEM_BASE_REG 0x600C0000 -#define DR_REG_IO_MUX_BASE 0x60009000 -#endif - -#ifdef ESP32C6BETA -#define UART_BASE_REG 0x60000000 /* UART0 */ -#define SPI_BASE_REG 0x60002000 /* SPI peripheral 1, used for SPI flash */ -#define SPI0_BASE_REG 0x60003000 /* SPI peripheral 0, inner state machine */ -#define GPIO_BASE_REG 0x60004000 -#define DR_REG_IO_MUX_BASE 0x60009000 -#endif - -#ifdef ESP32H2BETA1 -#define UART_BASE_REG 0x60000000 /* UART0 */ -#define SPI_BASE_REG 0x60002000 /* SPI peripheral 1, used for SPI flash */ -#define SPI0_BASE_REG 0x60003000 /* SPI peripheral 0, inner state machine */ -#define GPIO_BASE_REG 0x60004000 -#define RTCCNTL_BASE_REG 0x60008000 -#define DR_REG_IO_MUX_BASE 0x60009000 -#endif - -#ifdef ESP32H2BETA2 -#define UART_BASE_REG 0x60000000 /* UART0 */ -#define SPI_BASE_REG 0x60002000 /* SPI peripheral 1, used for SPI flash */ -#define SPI0_BASE_REG 0x60003000 /* SPI peripheral 0, inner state machine */ -#define GPIO_BASE_REG 0x60004000 -#define DR_REG_IO_MUX_BASE 0x60009000 -#endif - -#ifdef ESP32C2 -#define UART_BASE_REG 0x60000000 /* UART0 */ -#define SPI_BASE_REG 0x60002000 /* SPI peripheral 1, used for SPI flash */ -#define SPI0_BASE_REG 0x60003000 /* SPI peripheral 0, inner state machine */ -#define GPIO_BASE_REG 0x60004000 -#define DR_REG_IO_MUX_BASE 0x60009000 -#endif - -#if ESP32C6 || ESP32C5 || ESP32C5BETA3 -#define UART_BASE_REG 0x60000000 /* UART0 */ -#define SPI_BASE_REG 0x60003000 /* SPI peripheral 1, used for SPI flash */ -#define SPI0_BASE_REG 0x60002000 /* SPI peripheral 0, inner state machine */ -#define GPIO_BASE_REG 0x60091000 -#define USB_DEVICE_BASE_REG 0x6000F000 -#define DR_REG_PCR_BASE 0x60096000 -#define DR_REG_LP_WDT_BASE 0x600B1C00 -#define DR_REG_IO_MUX_BASE 0x60009000 -#endif - -#ifdef ESP32H2 -#define UART_BASE_REG 0x60000000 /* UART0 */ -#define SPI_BASE_REG 0x60003000 /* SPI peripheral 1, used for SPI flash */ -#define SPI0_BASE_REG 0x60002000 /* SPI peripheral 0, inner state machine */ -#define GPIO_BASE_REG 0x60091000 -#define USB_DEVICE_BASE_REG 0x6000F000 -#define DR_REG_PCR_BASE 0x60096000 -#define DR_REG_LP_WDT_BASE 0x600B1C00 -#define DR_REG_IO_MUX_BASE 0x60009000 -#endif - -#ifdef ESP32P4 -#define UART_BASE_REG 0x500CA000 /* UART0 */ -#define SPI_BASE_REG 0x5008D000 /* SPI peripheral 1, used for SPI flash */ -#define SPI0_BASE_REG 0x5008C000 /* SPI peripheral 0, inner state machine */ -#define GPIO_BASE_REG 0x500E0000 -#define USB_DEVICE_BASE_REG 0x500D2000 -#define DR_REG_LP_WDT_BASE 0x50116000 -#define DR_REG_IO_MUX_BASE 0x500E1000 -#endif - -/********************************************************** - * UART peripheral - * - * The features we use are basically the same on all chips - * - * Only UART0 is used - */ -#define UART_CLKDIV_REG(X) (UART_BASE_REG + 0x14) -#define UART_CLKDIV_M (0x000FFFFF) - -#if ESP32_OR_LATER -#define UART_CLKDIV_FRAG_S 20 -#define UART_CLKDIV_FRAG_V 0xF -#endif - -#define UART_FIFO(X) (UART_BASE_REG + 0x00) -#define UART_INT_ST(X) (UART_BASE_REG + 0x08) -#define UART_INT_ENA(X) (UART_BASE_REG + 0x0C) -#define UART_INT_CLR(X) (UART_BASE_REG + 0x10) -#define UART_STATUS(X) (UART_BASE_REG + 0x1C) - -#if ESP32S2_OR_LATER && !ESP32C6 && !ESP32H2 -#define UART_RXFIFO_CNT_M 0x3FF -#else -#define UART_RXFIFO_CNT_M 0xFF -#endif - -#define UART_RXFIFO_FULL_INT_ENA (1<<0) -#define UART_RXFIFO_TOUT_INT_ENA (1<<8) - -#define ETS_UART0_INUM 5 - - -/********************************************************** - * SPI peripheral - * - * The features we use are mostly the same on all chips - * except for W0 base address & option for 2-byte status command - * - * Only one SPI peripheral is used (0 on ESP8266, 1 on ESP32). - * On ESP32S2 && ESP32S3 this is called SPI_MEM_xxx index 1 - */ -#define SPI_CMD_REG (SPI_BASE_REG + 0x00) -#define SPI_FLASH_WREN (1<<30) -#define SPI_FLASH_RDSR (1<<27) -#define SPI_FLASH_SE (1<<24) -#define SPI_FLASH_BE (1<<23) - -#define SPI_ADDR_REG (SPI_BASE_REG + 0x04) - -#define SPI_CTRL_REG (SPI_BASE_REG + 0x08) -#if ESP32_OR_LATER -#define SPI_WRSR_2B (1<<22) -#endif - -#if ESP32S2_OR_LATER -#define SPI_RD_STATUS_REG (SPI_BASE_REG + 0x2C) -#else -#define SPI_RD_STATUS_REG (SPI_BASE_REG + 0x10) -#endif - -#ifdef ESP8266 -#define SPI_W0_REG (SPI_BASE_REG + 0x40) -#endif -#ifdef ESP32 -#define SPI_W0_REG (SPI_BASE_REG + 0x80) -#endif -#if ESP32S2_OR_LATER -#define SPI_W0_REG (SPI_BASE_REG + 0x58) -#endif - -#if ESP32S2_OR_LATER -#define SPI_EXT2_REG (SPI_BASE_REG + 0x54) /* renamed SPI_MEM_FSM_REG */ -#else -#define SPI_EXT2_REG (SPI_BASE_REG + 0xF8) -#endif - -#define SPI_ST 0x7 /* done state value */ - -#ifdef ESP32 -/* On ESP32 & newer the SPI peripherals are layered - * flash, this lets us check the state of the internal - * state machine under the SPI flash controller - */ -#define SPI0_EXT2_REG (SPI0_BASE_REG + 0xF8) -#endif -#if ESP32S2_OR_LATER -#define SPI0_EXT2_REG (SPI0_BASE_REG + 0x54) -#endif - -/********************************************************** - * GPIO peripheral - * - * We only need to read the strapping register on ESP32 or later - */ -#define GPIO_STRAP_REG (GPIO_BASE_REG + 0x38) - -/********************************************************** - * USB peripheral - */ - -#ifdef ESP32S2 -#define UART_USB_OTG 2 - -#define ETS_USB_INTR_SOURCE 48 -#define ETS_USB_INUM 9 /* arbitrary level 1 level interrupt */ -#endif // ESP32S2 - -#ifdef ESP32C3 -#define UART_USB_JTAG_SERIAL 3 - -#define DR_REG_INTERRUPT_CORE0_BASE 0x600c2000 -#define INTERRUPT_CORE0_USB_INTR_MAP_REG (DR_REG_INTERRUPT_CORE0_BASE + 0x068) /* USB-JTAG-Serial */ - -#define ETS_USB_INUM 17 /* arbitrary level 1 level interrupt */ -#endif // ESP32C3 - -#ifdef ESP32S3 -#define UART_USB_OTG 3 -#define UART_USB_JTAG_SERIAL 4 - -#define DR_REG_INTERRUPT_CORE0_BASE 0x600c2000 -#define INTERRUPT_CORE0_USB_INTR_MAP_REG (DR_REG_INTERRUPT_CORE0_BASE + 0x098) /* DWC-OTG */ -#define INTERRUPT_CORE0_USB_DEVICE_INT_MAP_REG (DR_REG_INTERRUPT_CORE0_BASE + 0x180) /* USB-JTAG-Serial */ - -#define ETS_USB_INUM 17 /* arbitrary level 1 level interrupt */ -#endif // ESP32S3 - -#if ESP32C6 -#define UART_USB_JTAG_SERIAL 3 - -#define DR_REG_INTERRUPT_MATRIX_BASE 0x60010000 -#define INTERRUPT_CORE0_USB_INTR_MAP_REG (DR_REG_INTERRUPT_MATRIX_BASE + 0xC0) /* USB-JTAG-Serial, INTMTX_CORE0_USB_INTR_MAP_REG */ - -#define ETS_USB_INUM 17 /* arbitrary level 1 level interrupt */ -#endif // ESP32C6 - -#if ESP32C5 -#define UART_USB_JTAG_SERIAL 3 - -#define DR_REG_INTERRUPT_MATRIX_BASE 0x60010000 -#define INTERRUPT_CORE0_USB_INTR_MAP_REG (DR_REG_INTERRUPT_MATRIX_BASE + 0xD0) /* USB-JTAG-Serial, INTMTX_CORE0_USB_INTR_MAP_REG */ - -#define CLIC_EXT_INTR_NUM_OFFSET 16 /* For CLIC first 16 interrupts are reserved as internal */ -#define ETS_USB_INUM 17 /* arbitrary level 1 level interrupt */ -#endif // ESP32C5 - -#ifdef ESP32H2 -#define UART_USB_JTAG_SERIAL 3 - -#define DR_REG_INTERRUPT_MATRIX_BASE 0x60010000 -#define INTERRUPT_CORE0_USB_INTR_MAP_REG (DR_REG_INTERRUPT_MATRIX_BASE + 0x94) /* USB-JTAG-Serial, INTMTX_CORE0_USB_INTR_MAP_REG */ - -#define ETS_USB_INUM 17 /* arbitrary level 1 level interrupt */ -#endif // ESP32H2 - -#if ESP32P4 -#define UART_USB_OTG 5 -#define UART_USB_JTAG_SERIAL 6 - -#define DR_REG_INTERRUPT_MATRIX_BASE 0x500D6000 -#define INTERRUPT_CORE0_USB_INTR_MAP_REG (DR_REG_INTERRUPT_MATRIX_BASE + 0x58) /* USB-JTAG-Serial, CORE0_USB_DEVICE_INT_MAP_REG */ - -#define CLIC_EXT_INTR_NUM_OFFSET 16 /* For CLIC first 16 interrupts are reserved as internal */ -#define ETS_USB_INUM 17 /* arbitrary level 1 level interrupt */ -#endif - -#ifdef WITH_USB_JTAG_SERIAL -#define USB_DEVICE_INT_ENA_REG (USB_DEVICE_BASE_REG + 0x010) -#define USB_DEVICE_INT_CLR_REG (USB_DEVICE_BASE_REG + 0x014) -#define USB_DEVICE_EP1_CONF_REG (USB_DEVICE_BASE_REG + 0x004) -#define USB_DEVICE_EP1_REG (USB_DEVICE_BASE_REG + 0x000) -#define USB_DEVICE_SERIAL_OUT_RECV_PKT_INT_CLR (1<<2) -#define USB_DEVICE_SERIAL_OUT_EP_DATA_AVAIL (1<<2) -#define USB_DEVICE_SERIAL_OUT_RECV_PKT_INT_ENA (1<<2) -#endif // WITH_USB_JTAG_SERIAL - -#define USB_GAHBCFG_REG (USB_BASE_REG + 0x8) -#define USB_GLBLLNTRMSK (1 << 0) - - -/********************************************************** - * RTC_CNTL peripheral - */ - -#ifdef ESP32S2 -#define RTC_CNTL_OPTION1_REG (RTCCNTL_BASE_REG + 0x0128) -#endif - -#ifdef ESP32S3 -#define RTC_CNTL_OPTION1_REG (RTCCNTL_BASE_REG + 0x012C) -#define RTC_CNTL_WDTCONFIG0_REG (RTCCNTL_BASE_REG + 0x0098) // RTC_CNTL_RTC_WDTCONFIG0_REG -#define RTC_CNTL_WDTWPROTECT_REG (RTCCNTL_BASE_REG + 0x00B0) // RTC_CNTL_RTC_WDTWPROTECT_REG -#define RTC_CNTL_SWD_CONF_REG (RTCCNTL_BASE_REG + 0x00B4) -#define RTC_CNTL_SWD_WPROTECT_REG (RTCCNTL_BASE_REG + 0x00B8) -#define RTC_CNTL_SWD_WKEY 0x8F1D312A -#define RTC_CNTL_SWD_AUTO_FEED_EN (1 << 31) -#endif - -#ifdef ESP32C3 -#define RTC_CNTL_WDTCONFIG0_REG (RTCCNTL_BASE_REG + 0x0090) -#define RTC_CNTL_WDTWPROTECT_REG (RTCCNTL_BASE_REG + 0x00A8) -#define RTC_CNTL_SWD_CONF_REG (RTCCNTL_BASE_REG + 0x00AC) -#define RTC_CNTL_SWD_WPROTECT_REG (RTCCNTL_BASE_REG + 0x00B0) -#define RTC_CNTL_SWD_WKEY 0x8F1D312A -#define RTC_CNTL_SWD_AUTO_FEED_EN (1 << 31) -#endif - -#if ESP32C6 || ESP32C5 || ESP32C5BETA3 || ESP32P4 -#define RTC_CNTL_WDTCONFIG0_REG (DR_REG_LP_WDT_BASE + 0x0) // LP_WDT_RWDT_CONFIG0_REG -#define RTC_CNTL_WDTWPROTECT_REG (DR_REG_LP_WDT_BASE + 0x0018) // LP_WDT_RWDT_WPROTECT_REG -#define RTC_CNTL_SWD_CONF_REG (DR_REG_LP_WDT_BASE + 0x001C) // LP_WDT_SWD_CONFIG_REG -#define RTC_CNTL_SWD_WPROTECT_REG (DR_REG_LP_WDT_BASE + 0x0020) // LP_WDT_SWD_WPROTECT_REG -#define RTC_CNTL_SWD_WKEY 0x50D83AA1 -#define RTC_CNTL_SWD_AUTO_FEED_EN (1 << 18) -#endif - -#ifdef ESP32H2 -#define RTC_CNTL_WDTCONFIG0_REG (DR_REG_LP_WDT_BASE + 0x0) // LP_WDT_RWDT_CONFIG0_REG -#define RTC_CNTL_WDTWPROTECT_REG (DR_REG_LP_WDT_BASE + 0x001C) // LP_WDT_RWDT_WPROTECT_REG -#define RTC_CNTL_SWD_CONF_REG (DR_REG_LP_WDT_BASE + 0x0020) // LP_WDT_SWD_CONFIG_REG -#define RTC_CNTL_SWD_WPROTECT_REG (DR_REG_LP_WDT_BASE + 0x0024) // LP_WDT_SWD_WPROTECT_REG -#define RTC_CNTL_SWD_WKEY 0x50D83AA1 -#define RTC_CNTL_SWD_AUTO_FEED_EN (1 << 18) -#endif - -#define RTC_CNTL_WDT_WKEY 0x50D83AA1 -#define RTC_CNTL_FORCE_DOWNLOAD_BOOT (1 << 0) - -/********************************************************** - * SYSTEM registers - */ - -#ifdef ESP32C3 -#define SYSTEM_CPU_PER_CONF_REG (SYSTEM_BASE_REG + 0x008) -#define SYSTEM_CPUPERIOD_SEL_M ((SYSTEM_CPUPERIOD_SEL_V)<<(SYSTEM_CPUPERIOD_SEL_S)) -#define SYSTEM_CPUPERIOD_SEL_V 0x3 -#define SYSTEM_CPUPERIOD_SEL_S 0 -#define SYSTEM_CPUPERIOD_MAX 1 // CPU_CLK frequency is 160 MHz - -#define SYSTEM_SYSCLK_CONF_REG (SYSTEM_BASE_REG + 0x058) -#define SYSTEM_SOC_CLK_SEL_M ((SYSTEM_SOC_CLK_SEL_V)<<(SYSTEM_SOC_CLK_SEL_S)) -#define SYSTEM_SOC_CLK_SEL_V 0x3 -#define SYSTEM_SOC_CLK_SEL_S 10 -#define SYSTEM_SOC_CLK_MAX 1 -#endif // ESP32C3 - -#ifdef ESP32S2 -#define SYSTEM_CPU_PER_CONF_REG (SYSTEM_BASE_REG + 0x018) -#define SYSTEM_CPUPERIOD_SEL_M ((SYSTEM_CPUPERIOD_SEL_V)<<(SYSTEM_CPUPERIOD_SEL_S)) -#define SYSTEM_CPUPERIOD_SEL_V 0x3 -#define SYSTEM_CPUPERIOD_SEL_S 0 -#define SYSTEM_CPUPERIOD_MAX 2 // CPU_CLK frequency is 240 MHz - -#define SYSTEM_SYSCLK_CONF_REG (SYSTEM_BASE_REG + 0x08C) -#define SYSTEM_SOC_CLK_SEL_M ((SYSTEM_SOC_CLK_SEL_V)<<(SYSTEM_SOC_CLK_SEL_S)) -#define SYSTEM_SOC_CLK_SEL_V 0x3 -#define SYSTEM_SOC_CLK_SEL_S 10 -#define SYSTEM_SOC_CLK_MAX 1 -#endif // ESP32S2 - -#ifdef ESP32C5 -#define PCR_SYSCLK_CONF_REG (DR_REG_PCR_BASE + 0x10c) -#define PCR_SOC_CLK_SEL_M ((PCR_SOC_CLK_SEL_V)<<(PCR_SOC_CLK_SEL_S)) -#define PCR_SOC_CLK_SEL_V 0x3 -#define PCR_SOC_CLK_SEL_S 16 -#define PCR_SOC_CLK_MAX 3 // CPU_CLK frequency is 240 MHz (source is PLL_F240_CLK) -#endif // ESP32C5 - -#ifdef ESP32C5BETA3 -#define PCR_SYSCLK_CONF_REG (DR_REG_PCR_BASE + 0x10c) -#define PCR_SOC_CLK_SEL_M ((PCR_SOC_CLK_SEL_V)<<(PCR_SOC_CLK_SEL_S)) -#define PCR_SOC_CLK_SEL_V 0x3 -#define PCR_SOC_CLK_SEL_S 16 -#define PCR_SOC_CLK_MAX 3 // CPU_CLK frequency is 240 MHz (source is PLL_F240_CLK) -#endif // ESP32C5BETA3 - -#ifdef ESP32C6 -#define PCR_SYSCLK_CONF_REG (DR_REG_PCR_BASE + 0x110) -#define PCR_SOC_CLK_SEL_M ((PCR_SOC_CLK_SEL_V)<<(PCR_SOC_CLK_SEL_S)) -#define PCR_SOC_CLK_SEL_V 0x3 -#define PCR_SOC_CLK_SEL_S 16 -#define PCR_SOC_CLK_MAX 1 // CPU_CLK frequency is 160 MHz (source is PLL_CLK) -#endif // ESP32C6 - -#ifdef ESP32H2 -#define PCR_SYSCLK_CONF_REG (DR_REG_PCR_BASE + 0x10c) -#define PCR_SOC_CLK_SEL_M ((PCR_SOC_CLK_SEL_V)<<(PCR_SOC_CLK_SEL_S)) -#define PCR_SOC_CLK_SEL_V 0x3 -#define PCR_SOC_CLK_SEL_S 16 -#define PCR_SOC_CLK_MAX 1 // CPU_CLK frequency is 160 MHz (source is PLL_CLK) -#endif // ESP32H2 - -/********************************************************** - * Per-SOC security info buffer size - */ - -#ifdef ESP32S2 -#define SECURITY_INFO_BYTES 12 /* doesn't include chip_id and api_version */ -#endif // ESP32S2 - -#if ESP32S3_OR_LATER -#define SECURITY_INFO_BYTES 20 -#endif // ESP32S3_OR_LATER - -/********************************************************** - * Per-SOC address of the rom_spiflash_legacy_funcs symbol in ROM - * Can be retrieved with gdb: "info address rom_spiflash_legacy_funcs" - */ - -#if ESP32 || ESP32S2 || ESP32S3 || ESP32S3BETA2 -#define ROM_SPIFLASH_LEGACY 0x3ffae270 -#endif // ESP32 || ESP32S2 || ESP32S3 || ESP32S3BETA2 - -#if ESP32C3 || ESP32C6BETA || ESP32C2 || ESP32C6 || ESP32C5 || ESP32C5BETA3 -#define ROM_SPIFLASH_LEGACY 0x3fcdfff4 -#endif // ESP32C3 || ESP32C6BETA || ESP32C2 || ESP32C6 || ESP32C5 || ESP32C5BETA3 - -#if ESP32H2BETA1 || ESP32H2BETA2 -#define ROM_SPIFLASH_LEGACY 0x3fcdfff0 -#endif // ESP32H2BETA1 || ESP32H2BETA2 - -#if ESP32H2 -#define ROM_SPIFLASH_LEGACY 0x4084fff0 -#endif // ESP32H2 - -#if ESP32P4 -#define ROM_SPIFLASH_LEGACY 0x4ff3ffec -#endif // ESP32P4 - -/********************************************************** - * IO-MUX peripheral - */ - -#define MCU_SEL 0x7 -#define MCU_SEL_S 12 - -#define PIN_FUNC_SELECT(PIN_NAME, FUNC) REG_SET_FIELD(PIN_NAME, MCU_SEL, FUNC) - -#if ESP32 -// PERIPHS_IO_MUX_SD_... -#define PERIPHS_IO_MUX_SPICLK_U (DR_REG_IO_MUX_BASE + 0x60) -#define PERIPHS_IO_MUX_SPID_U (DR_REG_IO_MUX_BASE + 0x68) -#define PERIPHS_IO_MUX_SPIQ_U (DR_REG_IO_MUX_BASE + 0x64) -#define PERIPHS_IO_MUX_SPICS0_U (DR_REG_IO_MUX_BASE + 0x5c) -#define FUNC_GPIO 2 -#endif // ESP32 - -#if ESP32S2 -#define PERIPHS_IO_MUX_SPICLK_U (DR_REG_IO_MUX_BASE + 0x7c) -#define PERIPHS_IO_MUX_SPIQ_U (DR_REG_IO_MUX_BASE + 0x80) -#define PERIPHS_IO_MUX_SPID_U (DR_REG_IO_MUX_BASE + 0x84) -#define PERIPHS_IO_MUX_SPICS0_U (DR_REG_IO_MUX_BASE + 0x78) -#define FUNC_GPIO 1 -#endif // ESP32S2 - -#if ESP32C3 -#define PERIPHS_IO_MUX_SPICLK_U (DR_REG_IO_MUX_BASE + 0x40) -#define PERIPHS_IO_MUX_SPIQ_U (DR_REG_IO_MUX_BASE + 0x48) -#define PERIPHS_IO_MUX_SPID_U (DR_REG_IO_MUX_BASE + 0x44) -#define PERIPHS_IO_MUX_SPICS0_U (DR_REG_IO_MUX_BASE + 0x3c) -#define FUNC_GPIO 1 -#endif // ESP32C3 - -#if ESP32S3 || ESP32S3BETA2 -#define PERIPHS_IO_MUX_SPICLK_U (DR_REG_IO_MUX_BASE + 0x7c) -#define PERIPHS_IO_MUX_SPIQ_U (DR_REG_IO_MUX_BASE + 0x80) -#define PERIPHS_IO_MUX_SPID_U (DR_REG_IO_MUX_BASE + 0x84) -#define PERIPHS_IO_MUX_SPICS0_U (DR_REG_IO_MUX_BASE + 0x78) -#define FUNC_GPIO 1 -#endif // ESP32S3 || ESP32S3BETA2 - -#if ESP32C2 -#define PERIPHS_IO_MUX_SPICLK_U (DR_REG_IO_MUX_BASE + 0x40) -#define PERIPHS_IO_MUX_SPIQ_U (DR_REG_IO_MUX_BASE + 0x48) -#define PERIPHS_IO_MUX_SPID_U (DR_REG_IO_MUX_BASE + 0x44) -#define PERIPHS_IO_MUX_SPICS0_U (DR_REG_IO_MUX_BASE + 0x3c) -#define FUNC_GPIO 1 -#endif // ESP32C2 - -#if ESP32C6 || ESP32C6BETA || ESP32C5 || ESP32C5BETA3 -#define PERIPHS_IO_MUX_SPICLK_U (DR_REG_IO_MUX_BASE + 0x78) -#define PERIPHS_IO_MUX_SPIQ_U (DR_REG_IO_MUX_BASE + 0x68) -#define PERIPHS_IO_MUX_SPID_U (DR_REG_IO_MUX_BASE + 0x7c) -#define PERIPHS_IO_MUX_SPICS0_U (DR_REG_IO_MUX_BASE + 0x64) -#define FUNC_GPIO 1 -#endif // ESP32C6 || ESP32C6BETA || ESP32C5 || ESP32C5BETA3 - -#if ESP32H2 || ESP32H2BETA1 || ESP32H2BETA2 -#define PERIPHS_IO_MUX_SPICLK_U (DR_REG_IO_MUX_BASE + 0x50) -#define PERIPHS_IO_MUX_SPIQ_U (DR_REG_IO_MUX_BASE + 0x44) -#define PERIPHS_IO_MUX_SPID_U (DR_REG_IO_MUX_BASE + 0x54) -#define PERIPHS_IO_MUX_SPICS0_U (DR_REG_IO_MUX_BASE + 0x40) -#define FUNC_GPIO 1 -#endif // ESP32H2 || ESP32H2BETA1 || ESP32H2BETA2 - -#if ESP32P4 -#define PERIPHS_IO_MUX_SPICLK_U (DR_REG_IO_MUX_BASE + 0x7c) -#define PERIPHS_IO_MUX_SPIQ_U (DR_REG_IO_MUX_BASE + 0x80) -#define PERIPHS_IO_MUX_SPID_U (DR_REG_IO_MUX_BASE + 0x84) -#define PERIPHS_IO_MUX_SPICS0_U (DR_REG_IO_MUX_BASE + 0x78) -#define FUNC_GPIO 1 -#endif // ESP32P4 diff --git a/flasher_stub/include/stub_commands.h b/flasher_stub/include/stub_commands.h deleted file mode 100644 index af943ecd7..000000000 --- a/flasher_stub/include/stub_commands.h +++ /dev/null @@ -1,46 +0,0 @@ -/* - * SPDX-FileCopyrightText: 2016-2022 Espressif Systems (Shanghai) CO LTD - * - * SPDX-License-Identifier: GPL-2.0-or-later - */ - -/* Flasher command handlers, called from stub_flasher.c - - Commands related to writing flash are in stub_write_flash_xxx. -*/ -#pragma once -#include "stub_flasher.h" -#include "rom_functions.h" -#include - -int handle_flash_erase(uint32_t addr, uint32_t len); - -void handle_flash_read(uint32_t addr, uint32_t len, uint32_t block_size, uint32_t max_in_flight); - -int handle_flash_get_md5sum(uint32_t addr, uint32_t len); - -int handle_flash_read_chip_id(); - -esp_command_error handle_spi_set_params(uint32_t *args, int *status); - -esp_command_error handle_spi_attach(uint32_t hspi_config_arg); - -esp_command_error handle_mem_begin(uint32_t size, uint32_t offset); - -esp_command_error handle_mem_data(void *data, uint32_t length); - -esp_command_error handle_mem_finish(void); - -typedef struct { - uint32_t addr; - uint32_t value; - uint32_t mask; - uint32_t delay_us; -} write_reg_args_t; - -esp_command_error handle_write_reg(const write_reg_args_t *cmd_buf, uint32_t num_commands); - -/* Get security info command only on ESP32S2 and later */ -#if ESP32S2_OR_LATER -esp_command_error handle_get_security_info(void); -#endif // ESP32S2_OR_LATER diff --git a/flasher_stub/include/stub_flasher.h b/flasher_stub/include/stub_flasher.h deleted file mode 100644 index 3cf1f6310..000000000 --- a/flasher_stub/include/stub_flasher.h +++ /dev/null @@ -1,110 +0,0 @@ -/* - * SPDX-FileCopyrightText: 2016 Cesanta Software Limited - * - * SPDX-License-Identifier: GPL-2.0-or-later - * - * SPDX-FileContributor: 2016-2022 Espressif Systems (Shanghai) CO LTD - */ - -#pragma once -#include -#include - -/* Maximum write block size, used for various buffers. */ -#define MAX_WRITE_BLOCK 0x4000 - -/* Flash geometry constants */ -#define FLASH_SECTOR_SIZE 4096 -#define FLASH_BLOCK_SIZE 65536 -#define FLASH_PAGE_SIZE 256 -#define FLASH_STATUS_MASK 0xFFFF -#define SECTORS_PER_BLOCK (FLASH_BLOCK_SIZE / FLASH_SECTOR_SIZE) - -/* 32-bit addressing is supported only by ESP32S3 */ -#if defined(ESP32S3) && !defined(ESP32S3BETA2) -#define FLASH_MAX_SIZE 64*1024*1024 -extern bool large_flash_mode; -#else -#define FLASH_MAX_SIZE 16*1024*1024 -#endif - -/* Full set of protocol commands */ -typedef enum { - /* Commands supported by the ESP8266 & ESP32 bootloaders */ - ESP_FLASH_BEGIN = 0x02, - ESP_FLASH_DATA = 0x03, - ESP_FLASH_END = 0x04, - ESP_MEM_BEGIN = 0x05, - ESP_MEM_END = 0x06, - ESP_MEM_DATA = 0x07, - ESP_SYNC = 0x08, - ESP_WRITE_REG = 0x09, - ESP_READ_REG = 0x0a, - - /* Commands supported by the ESP32 bootloader */ - ESP_SPI_SET_PARAMS = 0x0b, - ESP_PIN_READ = 0x0c, /* ??? */ - ESP_SPI_ATTACH = 0x0d, - ESP_SPI_READ = 0x0e, - ESP_SET_BAUD = 0x0f, - ESP_FLASH_DEFLATED_BEGIN = 0x10, - ESP_FLASH_DEFLATED_DATA = 0x11, - ESP_FLASH_DEFLATED_END = 0x12, - ESP_FLASH_VERIFY_MD5 = 0x13, - - /* Commands supported by the ESP32S2 and later bootloaders */ - ESP_GET_SECURITY_INFO = 0x14, - - /* Stub-only commands */ - ESP_ERASE_FLASH = 0xD0, - ESP_ERASE_REGION = 0xD1, - ESP_READ_FLASH = 0xD2, - ESP_RUN_USER_CODE = 0xD3, - - /* Flash encryption debug mode supported command */ - ESP_FLASH_ENCRYPT_DATA = 0xD4, -} esp_command; - -/* Command request header */ -typedef struct __attribute__((packed)) { - uint8_t zero; - uint8_t op; /* maps to esp_command enum */ - uint16_t data_len; - int32_t checksum; - uint8_t data_buf[32]; /* actually variable length, determined by data_len */ -} esp_command_req_t; - -/* Command response header */ -typedef struct __attribute__((packed)) { - uint8_t resp; /* should be '1' */ - uint8_t op_ret; /* Should match 'op' */ - uint16_t len_ret; /* Length of result data (can be ignored as SLIP framing helps) */ - int32_t value; /* 32-bit response used by some commands */ -} esp_command_response_t; - - -/* command response has some (optional) data after it, then 2 (or 4 on ESP32 ROM) - bytes of status. - */ -typedef struct __attribute__((packed)) { - uint8_t error; /* non-zero = failed */ - uint8_t status; /* status of a failure */ -} esp_command_data_status_t; - -/* Error codes */ -typedef enum { - ESP_OK = 0, - - ESP_BAD_DATA_LEN = 0xC0, - ESP_BAD_DATA_CHECKSUM = 0xC1, - ESP_BAD_BLOCKSIZE = 0xC2, - ESP_INVALID_COMMAND = 0xC3, - ESP_FAILED_SPI_OP = 0xC4, - ESP_FAILED_SPI_UNLOCK = 0xC5, - ESP_NOT_IN_FLASH_MODE = 0xC6, - ESP_INFLATE_ERROR = 0xC7, - ESP_NOT_ENOUGH_DATA = 0xC8, - ESP_TOO_MUCH_DATA = 0xC9, - - ESP_CMD_NOT_IMPLEMENTED = 0xFF, -} esp_command_error; diff --git a/flasher_stub/include/stub_io.h b/flasher_stub/include/stub_io.h deleted file mode 100644 index 7c441c31f..000000000 --- a/flasher_stub/include/stub_io.h +++ /dev/null @@ -1,62 +0,0 @@ -/* - * SPDX-FileCopyrightText: 2016 Cesanta Software Limited - * - * SPDX-License-Identifier: GPL-2.0-or-later - * - * SPDX-FileContributor: 2016-2022 Espressif Systems (Shanghai) CO LTD - */ - -#pragma once - -#include -#include - -/* Call to initialize the I/O (either UART or USB CDC at this point). - * The argument is a callback function which will handle received characters, - * when asynchronous (interrupt-driven) RX is used. - * It will be called in an interrupt context. - */ -void stub_io_init(void(*rx_cb_func)(char)); - -/* Enable or disable asynchronous (interrupt-driven) RX, for UART or USB. - * Currently needed only for the read_flash command. - */ -void stub_rx_async_enable(bool enable); - -/* Wrapper for either uart_tx_one_char or the USB CDC output function. - * (uart_tx_one_char in ROM can also handle USB CDC, but it is really - * slow because it flushes the FIFO after every byte). - */ -void stub_tx_one_char(char c); - -/* A blocking (polling) function to receive one character. - * Should only be used when async (interrupt-driven) RX is disabled. - * Currently only needed for the read_flash command. - */ -char stub_rx_one_char(void); - -/* Returns after making sure that all output has been sent to the host */ -void stub_tx_flush(void); - -/* Updates the baud rate divider based on the current baud rate (from host perspective) - * and the requested baud rate. - * No-op for USB CDC. - */ -void stub_io_set_baudrate(uint32_t current_baud, uint32_t new_baud); - -/* To be called periodically while waiting for a command. - * No-op for UART, handles DTR/RTS reset for USB CDC. - */ -void stub_io_idle_hook(void); - -/* Checks if USB-Serial/JTAG is being currently used. - */ -#if WITH_USB_JTAG_SERIAL -bool stub_uses_usb_jtag_serial(void); -#endif - -/* Checks if USB-OTG is being currently used. - */ -#if WITH_USB_OTG -bool stub_uses_usb_otg(void); -#endif diff --git a/flasher_stub/include/stub_write_flash.h b/flasher_stub/include/stub_write_flash.h deleted file mode 100644 index 9e1a7c25c..000000000 --- a/flasher_stub/include/stub_write_flash.h +++ /dev/null @@ -1,30 +0,0 @@ -/* - * SPDX-FileCopyrightText: 2016-2022 Espressif Systems (Shanghai) CO LTD - * - * SPDX-License-Identifier: GPL-2.0-or-later - */ - -/* Flasher commands related to writing flash */ -#pragma once -#include "stub_flasher.h" -#include -#include "rom_functions.h" - -bool is_in_flash_mode(void); - -esp_command_error get_flash_error(void); - -esp_command_error handle_flash_begin(uint32_t total_size, uint32_t offset); - -esp_command_error handle_flash_deflated_begin(uint32_t uncompressed_size, uint32_t compressed_size, uint32_t offset); - -void handle_flash_data(void *data_buf, uint32_t length); - -#if !ESP8266 -void handle_flash_encrypt_data(void *data_buf, uint32_t length); -#endif - -void handle_flash_deflated_data(void *data_buf, uint32_t length); - -/* same command used for deflated or non-deflated mode */ -esp_command_error handle_flash_end(void); diff --git a/flasher_stub/ld/rom_32.ld b/flasher_stub/ld/rom_32.ld deleted file mode 100644 index 073eacfb1..000000000 --- a/flasher_stub/ld/rom_32.ld +++ /dev/null @@ -1,1782 +0,0 @@ -/* Taken from esp-idf */ -/* -ESP32 ROM address table -Generated for ROM with MD5sum: -ab8282ae908fe9e7a63fb2a4ac2df013 ../../rom_image/prorom.elf -*/ -PROVIDE ( abort = 0x4000bba4 ); -PROVIDE ( abs = 0x40056340 ); -PROVIDE ( __absvdi2 = 0x4006387c ); -PROVIDE ( __absvsi2 = 0x40063868 ); -PROVIDE ( Add2SelfBigHex256 = 0x40015b7c ); -PROVIDE ( AddBigHex256 = 0x40015b28 ); -PROVIDE ( AddBigHexModP256 = 0x40015c98 ); -PROVIDE ( __adddf3 = 0x40002590 ); -PROVIDE ( AddP256 = 0x40015c74 ); -PROVIDE ( AddPdiv2_256 = 0x40015ce0 ); -PROVIDE ( __addsf3 = 0x400020e8 ); -PROVIDE ( __addvdi3 = 0x40002cbc ); -PROVIDE ( __addvsi3 = 0x40002c98 ); -PROVIDE ( aes_128_cbc_decrypt = 0x4005cc7c ); -PROVIDE ( aes_128_cbc_encrypt = 0x4005cc18 ); -PROVIDE ( aes_unwrap = 0x4005ccf0 ); -PROVIDE ( app_gpio_arg = 0x3ffe003c ); -PROVIDE ( app_gpio_handler = 0x3ffe0040 ); -PROVIDE ( __ascii_wctomb = 0x40058ef0 ); -PROVIDE ( asctime = 0x40059588 ); -PROVIDE ( asctime_r = 0x40000ec8 ); -PROVIDE ( __ashldi3 = 0x4000c818 ); -PROVIDE ( __ashrdi3 = 0x4000c830 ); -PROVIDE ( atoi = 0x400566c4 ); -PROVIDE ( _atoi_r = 0x400566d4 ); -PROVIDE ( atol = 0x400566ec ); -PROVIDE ( _atol_r = 0x400566fc ); -PROVIDE ( base64_decode = 0x4005ced8 ); -PROVIDE ( base64_encode = 0x4005cdbc ); -PROVIDE ( BasePoint_x_256 = 0x3ff97488 ); -PROVIDE ( BasePoint_y_256 = 0x3ff97468 ); -PROVIDE ( bigHexInversion256 = 0x400168f0 ); -PROVIDE ( bigHexP256 = 0x3ff973bc ); -PROVIDE ( __bswapdi2 = 0x400649c4 ); -PROVIDE ( __bswapsi2 = 0x4006499c ); -PROVIDE ( btdm_r_ble_bt_handler_tab_p_get = 0x40019b0c ); -PROVIDE ( btdm_r_btdm_option_data_p_get = 0x40010004 ); -PROVIDE ( btdm_r_btdm_rom_version_get = 0x40010078 ); -PROVIDE ( btdm_r_data_init = 0x4001002c ); -PROVIDE ( btdm_r_import_rf_phy_func_p_get = 0x40054298 ); -PROVIDE ( btdm_r_ip_func_p_get = 0x40019af0 ); -PROVIDE ( btdm_r_ip_func_p_set = 0x40019afc ); -PROVIDE ( btdm_r_modules_func_p_get = 0x4005427c ); -PROVIDE ( btdm_r_modules_func_p_set = 0x40054270 ); -PROVIDE ( btdm_r_plf_func_p_set = 0x40054288 ); -PROVIDE ( bt_util_buf_env = 0x3ffb8bd4 ); -PROVIDE ( bzero = 0x4000c1f4 ); -PROVIDE ( cache_flash_mmu_set = 0x400095e0 ); -PROVIDE ( Cache_Flush = 0x40009a14 ); -PROVIDE ( Cache_Read_Disable = 0x40009ab8 ); -PROVIDE ( Cache_Read_Enable = 0x40009a84 ); -PROVIDE ( Cache_Read_Init = 0x40009950 ); -PROVIDE ( cache_sram_mmu_set = 0x400097f4 ); -/* This is static function, but can be used, not generated by script*/ -PROVIDE ( calc_rtc_memory_crc = 0x40008170 ); -PROVIDE ( calloc = 0x4000bee4 ); -PROVIDE ( _calloc_r = 0x4000bbf8 ); -PROVIDE ( check_pos = 0x400068b8 ); -PROVIDE ( _cleanup = 0x40001df8 ); -PROVIDE ( _cleanup_r = 0x40001d48 ); -PROVIDE ( __clear_cache = 0x40063860 ); -PROVIDE ( close = 0x40001778 ); -PROVIDE ( _close_r = 0x4000bd3c ); -PROVIDE ( __clrsbdi2 = 0x40064a38 ); -PROVIDE ( __clrsbsi2 = 0x40064a20 ); -PROVIDE ( __clzdi2 = 0x4000ca50 ); -PROVIDE ( __clzsi2 = 0x4000c7e8 ); -PROVIDE ( __cmpdi2 = 0x40063820 ); -PROVIDE ( co_default_bdaddr = 0x3ffae704 ); -PROVIDE ( co_null_bdaddr = 0x3ffb80e0 ); -PROVIDE ( co_sca2ppm = 0x3ff971e8 ); -PROVIDE ( crc16_be = 0x4005d09c ); -PROVIDE ( crc16_le = 0x4005d05c ); -PROVIDE ( crc32_be = 0x4005d024 ); -PROVIDE ( crc32_le = 0x4005cfec ); -PROVIDE ( crc8_be = 0x4005d114 ); -PROVIDE ( crc8_le = 0x4005d0e0 ); -PROVIDE ( creat = 0x40000e8c ); -PROVIDE ( ctime = 0x400595b0 ); -PROVIDE ( ctime_r = 0x400595c4 ); -PROVIDE ( _ctype_ = 0x3ff96354 ); -PROVIDE ( __ctype_ptr__ = 0x3ff96350 ); -PROVIDE ( __ctzdi2 = 0x4000ca64 ); -PROVIDE ( __ctzsi2 = 0x4000c7f0 ); -PROVIDE ( _data_end = 0x4000d5c8 ); -PROVIDE ( _data_end_btdm_rom = 0x4000d4f8 ); -PROVIDE ( _data_start = 0x4000d4f8 ); -PROVIDE ( _data_start_btdm_rom = 0x4000d4f4 ); -PROVIDE ( _data_start_btdm = 0x3ffae6e0); -PROVIDE ( _data_end_btdm = 0x3ffaff10); -PROVIDE ( _bss_start_btdm = 0x3ffb8000); -PROVIDE ( _bss_end_btdm = 0x3ffbff70); -PROVIDE ( _daylight = 0x3ffae0a4 ); -PROVIDE ( dbg_default_handler = 0x3ff97218 ); -PROVIDE ( dbg_state = 0x3ffb8d5d ); -PROVIDE ( DebugE256PublicKey_x = 0x3ff97428 ); -PROVIDE ( DebugE256PublicKey_y = 0x3ff97408 ); -PROVIDE ( DebugE256SecretKey = 0x3ff973e8 ); -PROVIDE ( _DebugExceptionVector = 0x40000280 ); -PROVIDE ( debug_timer = 0x3ffe042c ); -PROVIDE ( debug_timerfn = 0x3ffe0430 ); -PROVIDE ( dh_group14_generator = 0x3ff9ac60 ); -PROVIDE ( dh_group14_prime = 0x3ff9ab60 ); -PROVIDE ( dh_group15_generator = 0x3ff9ab5f ); -PROVIDE ( dh_group15_prime = 0x3ff9a9df ); -PROVIDE ( dh_group16_generator = 0x3ff9a9de ); -PROVIDE ( dh_group16_prime = 0x3ff9a7de ); -PROVIDE ( dh_group17_generator = 0x3ff9a7dd ); -PROVIDE ( dh_group17_prime = 0x3ff9a4dd ); -PROVIDE ( dh_group18_generator = 0x3ff9a4dc ); -PROVIDE ( dh_group18_prime = 0x3ff9a0dc ); -PROVIDE ( dh_group1_generator = 0x3ff9ae03 ); -PROVIDE ( dh_group1_prime = 0x3ff9ada3 ); -PROVIDE ( dh_group2_generator = 0x3ff9ada2 ); -PROVIDE ( dh_group2_prime = 0x3ff9ad22 ); -PROVIDE ( dh_group5_generator = 0x3ff9ad21 ); -PROVIDE ( dh_group5_prime = 0x3ff9ac61 ); -PROVIDE ( div = 0x40056348 ); -PROVIDE ( __divdc3 = 0x40064460 ); -PROVIDE ( __divdf3 = 0x40002954 ); -PROVIDE ( __divdi3 = 0x4000ca84 ); -PROVIDE ( __divsc3 = 0x40064200 ); -PROVIDE ( __divsf3 = 0x4000234c ); -PROVIDE ( __divsi3 = 0x4000c7b8 ); -PROVIDE ( _DoubleExceptionVector = 0x400003c0 ); -PROVIDE ( dummy_len_plus = 0x3ffae290 ); -PROVIDE ( __dummy_lock = 0x4000c728 ); -PROVIDE ( __dummy_lock_try = 0x4000c730 ); -PROVIDE ( ecc_env = 0x3ffb8d60 ); -PROVIDE ( ecc_Jacobian_InfinityPoint256 = 0x3ff972e8 ); -PROVIDE ( em_buf_env = 0x3ffb8d74 ); -PROVIDE ( environ = 0x3ffae0b4 ); -PROVIDE ( __env_lock = 0x40001fd4 ); -PROVIDE ( __env_unlock = 0x40001fe0 ); -PROVIDE ( __eqdf2 = 0x400636a8 ); -PROVIDE ( __eqsf2 = 0x40063374 ); -PROVIDE ( esp_crc8 = 0x4005d144 ); -PROVIDE ( _etext = 0x4000d66c ); -PROVIDE ( ets_aes_crypt = 0x4005c9b8 ); -PROVIDE ( ets_aes_disable = 0x4005c8f8 ); -PROVIDE ( ets_aes_enable = 0x4005c8cc ); -PROVIDE ( ets_aes_set_endian = 0x4005c928 ); -PROVIDE ( ets_aes_setkey_dec = 0x4005c994 ); -PROVIDE ( ets_aes_setkey_enc = 0x4005c97c ); -PROVIDE ( ets_bigint_disable = 0x4005c4e0 ); -PROVIDE ( ets_bigint_enable = 0x4005c498 ); -PROVIDE ( ets_bigint_mod_mult_getz = 0x4005c818 ); -PROVIDE ( ets_bigint_mod_mult_prepare = 0x4005c7b4 ); -PROVIDE ( ets_bigint_mod_power_getz = 0x4005c614 ); -PROVIDE ( ets_bigint_mod_power_prepare = 0x4005c54c ); -PROVIDE ( ets_bigint_montgomery_mult_getz = 0x4005c7a4 ); -PROVIDE ( ets_bigint_montgomery_mult_prepare = 0x4005c6fc ); -PROVIDE ( ets_bigint_mult_getz = 0x4005c6e8 ); -PROVIDE ( ets_bigint_mult_prepare = 0x4005c630 ); -PROVIDE ( ets_bigint_wait_finish = 0x4005c520 ); -PROVIDE ( ets_delay_us = 0x40008534 ); -PROVIDE ( ets_efuse_get_8M_clock = 0x40008710 ); -PROVIDE ( ets_efuse_get_spiconfig = 0x40008658 ); -PROVIDE ( ets_efuse_program_op = 0x40008628 ); -PROVIDE ( ets_efuse_read_op = 0x40008600 ); -PROVIDE ( ets_get_cpu_frequency = 0x4000855c ); -PROVIDE ( ets_get_detected_xtal_freq = 0x40008588 ); -PROVIDE ( ets_get_xtal_scale = 0x4000856c ); -PROVIDE ( ets_install_putc1 = 0x40007d18 ); -PROVIDE ( ets_install_putc2 = 0x40007d38 ); -PROVIDE ( ets_install_uart_printf = 0x40007d28 ); -PROVIDE ( ets_post = 0x4000673c ); -PROVIDE ( ets_printf = 0x40007d54 ); -PROVIDE ( ets_readySet_ = 0x3ffe01f0 ); -PROVIDE ( ets_run = 0x400066bc ); -PROVIDE ( ets_secure_boot_check = 0x4005cb40 ); -PROVIDE ( ets_secure_boot_check_finish = 0x4005cc04 ); -PROVIDE ( ets_secure_boot_check_start = 0x4005cbcc ); -PROVIDE ( ets_secure_boot_finish = 0x4005ca84 ); -PROVIDE ( ets_secure_boot_hash = 0x4005cad4 ); -PROVIDE ( ets_secure_boot_obtain = 0x4005cb14 ); -PROVIDE ( ets_secure_boot_rd_abstract = 0x4005cba8 ); -PROVIDE ( ets_secure_boot_rd_iv = 0x4005cb84 ); -PROVIDE ( ets_secure_boot_start = 0x4005ca34 ); -PROVIDE ( ets_set_appcpu_boot_addr = 0x4000689c ); -PROVIDE ( ets_set_idle_cb = 0x40006674 ); -PROVIDE ( ets_set_startup_callback = 0x4000688c ); -PROVIDE ( ets_set_user_start = 0x4000687c ); -PROVIDE ( ets_sha_disable = 0x4005c0a8 ); -PROVIDE ( ets_sha_enable = 0x4005c07c ); -PROVIDE ( ets_sha_finish = 0x4005c104 ); -PROVIDE ( ets_sha_init = 0x4005c0d4 ); -PROVIDE ( ets_sha_update = 0x4005c2a0 ); -PROVIDE ( ets_startup_callback = 0x3ffe0404 ); -PROVIDE ( ets_task = 0x40006688 ); -PROVIDE ( ets_timer_arm = 0x40008368 ); -PROVIDE ( ets_timer_arm_us = 0x400083ac ); -PROVIDE ( ets_timer_disarm = 0x400083ec ); -PROVIDE ( ets_timer_done = 0x40008428 ); -PROVIDE ( ets_timer_handler_isr = 0x40008454 ); -PROVIDE ( ets_timer_init = 0x400084e8 ); -PROVIDE ( ets_timer_setfn = 0x40008350 ); -PROVIDE ( ets_unpack_flash_code = 0x40007018 ); -PROVIDE ( ets_unpack_flash_code_legacy = 0x4000694c ); -PROVIDE ( ets_update_cpu_frequency = 0x40008550 ); -PROVIDE ( ets_waiti0 = 0x400067d8 ); -PROVIDE ( exc_cause_table = 0x3ff991d0 ); -PROVIDE ( _exit_r = 0x4000bd28 ); -PROVIDE ( __extendsfdf2 = 0x40002c34 ); -PROVIDE ( fclose = 0x400020ac ); -PROVIDE ( _fclose_r = 0x40001fec ); -PROVIDE ( fflush = 0x40059394 ); -PROVIDE ( _fflush_r = 0x40059320 ); -PROVIDE ( __ffsdi2 = 0x4000ca2c ); -PROVIDE ( __ffssi2 = 0x4000c804 ); -PROVIDE ( FilePacketSendDeflatedReqMsgProc = 0x40008b24 ); -PROVIDE ( FilePacketSendReqMsgProc = 0x40008860 ); -PROVIDE ( _findenv_r = 0x40001f44 ); -PROVIDE ( __fixdfdi = 0x40002ac4 ); -PROVIDE ( __fixdfsi = 0x40002a78 ); -PROVIDE ( __fixsfdi = 0x4000244c ); -PROVIDE ( __fixsfsi = 0x4000240c ); -PROVIDE ( __fixunsdfsi = 0x40002b30 ); -PROVIDE ( __fixunssfdi = 0x40002504 ); -PROVIDE ( __fixunssfsi = 0x400024ac ); -PROVIDE ( FlashDwnLdDeflatedStartMsgProc = 0x40008ad8 ); -PROVIDE ( FlashDwnLdParamCfgMsgProc = 0x4000891c ); -PROVIDE ( FlashDwnLdStartMsgProc = 0x40008820 ); -PROVIDE ( FlashDwnLdStopDeflatedReqMsgProc = 0x40008c18 ); -PROVIDE ( FlashDwnLdStopReqMsgProc = 0x400088ec ); -PROVIDE ( __floatdidf = 0x4000c988 ); -PROVIDE ( __floatdisf = 0x4000c8c0 ); -PROVIDE ( __floatsidf = 0x4000c944 ); -PROVIDE ( __floatsisf = 0x4000c870 ); -PROVIDE ( __floatundidf = 0x4000c978 ); -PROVIDE ( __floatundisf = 0x4000c8b0 ); -PROVIDE ( __floatunsidf = 0x4000c938 ); -PROVIDE ( __floatunsisf = 0x4000c864 ); -PROVIDE ( __fp_lock_all = 0x40001f1c ); -PROVIDE ( __fp_unlock_all = 0x40001f30 ); -PROVIDE ( fputwc = 0x40058ea8 ); -PROVIDE ( __fputwc = 0x40058da0 ); -PROVIDE ( _fputwc_r = 0x40058e4c ); -PROVIDE ( free = 0x4000beb8 ); -PROVIDE ( _free_r = 0x4000bbcc ); -PROVIDE ( _fstat_r = 0x4000bccc ); -PROVIDE ( _fwalk = 0x4000c738 ); -PROVIDE ( _fwalk_reent = 0x4000c770 ); -PROVIDE ( __gcc_bcmp = 0x40064a70 ); -PROVIDE ( __gedf2 = 0x40063768 ); -PROVIDE ( _GeneralException = 0x40000e14 ); -PROVIDE ( __gesf2 = 0x4006340c ); -PROVIDE ( __get_current_time_locale = 0x40001834 ); -PROVIDE ( _getenv_r = 0x40001fbc ); -PROVIDE ( _getpid_r = 0x4000bcfc ); -PROVIDE ( __getreent = 0x4000be8c ); -PROVIDE ( _gettimeofday_r = 0x4000bc58 ); -PROVIDE ( __gettzinfo = 0x40001fcc ); -PROVIDE ( GetUartDevice = 0x40009598 ); -PROVIDE ( GF_Jacobian_Point_Addition256 = 0x400163a4 ); -PROVIDE ( GF_Jacobian_Point_Double256 = 0x40016260 ); -PROVIDE ( GF_Point_Jacobian_To_Affine256 = 0x40016b0c ); -PROVIDE ( _global_impure_ptr = 0x3ffae0b0 ); -PROVIDE ( gmtime = 0x40059848 ); -PROVIDE ( gmtime_r = 0x40059868 ); -PROVIDE ( g_phyFuns_instance = 0x3ffae0c4 ); -PROVIDE ( g_rom_flashchip = 0x3ffae270 ); -PROVIDE ( gpio_init = 0x40009c20 ); -PROVIDE ( gpio_input_get = 0x40009b88 ); -PROVIDE ( gpio_input_get_high = 0x40009b9c ); -PROVIDE ( gpio_intr_ack = 0x40009dd4 ); -PROVIDE ( gpio_intr_ack_high = 0x40009e1c ); -PROVIDE ( gpio_intr_handler_register = 0x40009e6c ); -PROVIDE ( gpio_intr_pending = 0x40009cec ); -PROVIDE ( gpio_intr_pending_high = 0x40009cf8 ); -PROVIDE ( gpio_matrix_in = 0x40009edc ); -PROVIDE ( gpio_matrix_out = 0x40009f0c ); -PROVIDE ( gpio_output_set = 0x40009b24 ); -PROVIDE ( gpio_output_set_high = 0x40009b5c ); -PROVIDE ( gpio_pad_hold = 0x4000a734 ); -PROVIDE ( gpio_pad_pulldown = 0x4000a348 ); -PROVIDE ( gpio_pad_pullup = 0x4000a22c ); -PROVIDE ( gpio_pad_select_gpio = 0x40009fdc ); -PROVIDE ( gpio_pad_set_drv = 0x4000a11c ); -PROVIDE ( gpio_pad_unhold = 0x4000a484 ); -PROVIDE ( gpio_pending_mask = 0x3ffe0038 ); -PROVIDE ( gpio_pending_mask_high = 0x3ffe0044 ); -PROVIDE ( gpio_pin_intr_state_set = 0x40009d04 ); -PROVIDE ( gpio_pin_wakeup_disable = 0x40009eb0 ); -PROVIDE ( gpio_pin_wakeup_enable = 0x40009e7c ); -PROVIDE ( gpio_register_get = 0x40009cbc ); -PROVIDE ( gpio_register_set = 0x40009bbc ); -PROVIDE ( __gtdf2 = 0x400636dc ); -PROVIDE ( __gtsf2 = 0x400633a0 ); -PROVIDE ( gTxMsg = 0x3ffe0050 ); -PROVIDE ( hci_cmd_desc_root_tab = 0x3ff976d4 ); -PROVIDE ( hci_cmd_desc_tab_ctrl_bb = 0x3ff97b70 ); -PROVIDE ( hci_cmd_desc_tab_info_par = 0x3ff97b1c ); -PROVIDE ( hci_cmd_desc_tab_le = 0x3ff97870 ); -PROVIDE ( hci_cmd_desc_tab_lk_ctrl = 0x3ff97fc0 ); -PROVIDE ( hci_cmd_desc_tab_lk_pol = 0x3ff97f3c ); -PROVIDE ( hci_cmd_desc_tab_stat_par = 0x3ff97ac8 ); -PROVIDE ( hci_cmd_desc_tab_testing = 0x3ff97a98 ); -PROVIDE ( hci_cmd_desc_tab_vs = 0x3ff97714 ); -PROVIDE ( hci_command_handler = 0x4004c928 ); -PROVIDE ( hci_env = 0x3ffb9350 ); -PROVIDE ( hci_evt_dbg_desc_tab = 0x3ff9750c ); -PROVIDE ( hci_evt_desc_tab = 0x3ff9751c ); -PROVIDE ( hci_evt_le_desc_tab = 0x3ff974b4 ); -PROVIDE ( hci_fc_env = 0x3ffb9340 ); -PROVIDE ( hmac_md5 = 0x4005d264 ); -PROVIDE ( hmac_md5_vector = 0x4005d17c ); -PROVIDE ( hmac_sha1 = 0x40060acc ); -PROVIDE ( hmac_sha1_vector = 0x400609e4 ); -PROVIDE ( hmac_sha256 = 0x40060d58 ); -PROVIDE ( hmac_sha256_vector = 0x40060c84 ); -PROVIDE ( intr_matrix_set = 0x4000681c ); -PROVIDE ( isalnum = 0x40000f04 ); -PROVIDE ( isalpha = 0x40000f18 ); -PROVIDE ( isascii = 0x4000c20c ); -PROVIDE ( _isatty_r = 0x40000ea0 ); -PROVIDE ( isblank = 0x40000f2c ); -PROVIDE ( iscntrl = 0x40000f50 ); -PROVIDE ( isdigit = 0x40000f64 ); -PROVIDE ( isgraph = 0x40000f94 ); -PROVIDE ( islower = 0x40000f78 ); -PROVIDE ( isprint = 0x40000fa8 ); -PROVIDE ( ispunct = 0x40000fc0 ); -PROVIDE ( isspace = 0x40000fd4 ); -PROVIDE ( isupper = 0x40000fe8 ); -PROVIDE ( itoa = 0x400566b4 ); -PROVIDE ( __itoa = 0x40056678 ); -PROVIDE ( jd_decomp = 0x400613e8 ); -PROVIDE ( jd_prepare = 0x40060fa8 ); -PROVIDE ( ke_env = 0x3ffb93cc ); -PROVIDE ( _KernelExceptionVector = 0x40000300 ); -PROVIDE ( _kill_r = 0x4000bd10 ); -PROVIDE ( labs = 0x40056370 ); -PROVIDE ( lb_default_handler = 0x3ff982b8 ); -PROVIDE ( lb_default_state_tab_p_get = 0x4001c198 ); -PROVIDE ( lb_env = 0x3ffb9424 ); -PROVIDE ( lb_hci_cmd_handler_tab_p_get = 0x4001c18c ); -PROVIDE ( lb_state = 0x3ffb94e8 ); -PROVIDE ( lc_default_handler = 0x3ff98648 ); -PROVIDE ( lc_default_state_tab_p_get = 0x4002f494 ); -PROVIDE ( lc_env = 0x3ffb94ec ); -PROVIDE ( lc_hci_cmd_handler_tab_p_get = 0x4002f488 ); -PROVIDE ( lc_state = 0x3ffb9508 ); -PROVIDE ( ld_acl_br_sizes = 0x3ff98a2a ); -PROVIDE ( ld_acl_br_types = 0x3ff98a36 ); -PROVIDE ( ld_acl_edr_sizes = 0x3ff98a14 ); -PROVIDE ( ld_acl_edr_types = 0x3ff98a22 ); -PROVIDE ( ld_env = 0x3ffb9510 ); -PROVIDE ( ldiv = 0x40056378 ); -PROVIDE ( ld_pcm_settings_dft = 0x3ff98a0c ); -PROVIDE ( ld_sched_params = 0x3ffb96c0 ); -PROVIDE ( ld_sync_train_channels = 0x3ff98a3c ); -PROVIDE ( __ledf2 = 0x40063704 ); -PROVIDE ( __lesf2 = 0x400633c0 ); -PROVIDE ( _Level2FromVector = 0x40000954 ); -PROVIDE ( _Level2Vector = 0x40000180 ); -PROVIDE ( _Level3FromVector = 0x40000a28 ); -PROVIDE ( _Level3Vector = 0x400001c0 ); -PROVIDE ( _Level4FromVector = 0x40000af8 ); -PROVIDE ( _Level4Vector = 0x40000200 ); -PROVIDE ( _Level5FromVector = 0x40000c68 ); -PROVIDE ( _Level5Vector = 0x40000240 ); -PROVIDE ( _LevelOneInterrupt = 0x40000835 ); -PROVIDE ( _link_r = 0x4000bc9c ); -PROVIDE ( llc_default_handler = 0x3ff98b3c ); -PROVIDE ( llc_default_state_tab_p_get = 0x40046058 ); -PROVIDE ( llc_env = 0x3ffb96d0 ); -PROVIDE ( llc_hci_acl_data_tx_handler = 0x40042398 ); -PROVIDE ( llc_hci_cmd_handler_tab_p_get = 0x40042358 ); -PROVIDE ( llc_hci_command_handler = 0x40042360 ); -PROVIDE ( llcp_pdu_handler_tab_p_get = 0x40043f64 ); -PROVIDE ( llc_state = 0x3ffb96f8 ); -PROVIDE ( lldesc_build_chain = 0x4000a850 ); -PROVIDE ( lldesc_num2link = 0x4000a948 ); -PROVIDE ( lldesc_set_owner = 0x4000a974 ); -PROVIDE ( lld_evt_env = 0x3ffb9704 ); -PROVIDE ( lld_pdu_adv_pk_desc_tab = 0x3ff98c70 ); -PROVIDE ( lld_pdu_llcp_pk_desc_tab = 0x3ff98b68 ); -PROVIDE ( LLM_AA_CT1 = 0x3ff98d8a ); -PROVIDE ( LLM_AA_CT2 = 0x3ff98d88 ); -PROVIDE ( llm_default_handler = 0x3ff98d80 ); -PROVIDE ( llm_default_state_tab_p_get = 0x4004e718 ); -PROVIDE ( llm_hci_cmd_handler_tab_p_get = 0x4004c920 ); -PROVIDE ( llm_le_env = 0x3ffb976c ); -PROVIDE ( llm_local_cmds = 0x3ff98d38 ); -PROVIDE ( llm_local_data_len_values = 0x3ff98d1c ); -PROVIDE ( llm_local_le_feats = 0x3ff98d30 ); -PROVIDE ( llm_local_le_states = 0x3ff98d28 ); -PROVIDE ( llm_state = 0x3ffb985c ); -PROVIDE ( lm_default_handler = 0x3ff990e0 ); -PROVIDE ( lm_default_state_tab_p_get = 0x40054268 ); -PROVIDE ( lm_env = 0x3ffb9860 ); -PROVIDE ( lm_hci_cmd_handler_tab_p_get = 0x4005425c ); -PROVIDE ( lm_local_supp_feats = 0x3ff990ee ); -PROVIDE ( lm_n_page_tab = 0x3ff990e8 ); -PROVIDE ( lmp_desc_tab = 0x3ff96e6c ); -PROVIDE ( lmp_ext_desc_tab = 0x3ff96d9c ); -PROVIDE ( lm_state = 0x3ffb9a1c ); -PROVIDE ( __locale_charset = 0x40059540 ); -PROVIDE ( __locale_cjk_lang = 0x40059558 ); -PROVIDE ( localeconv = 0x4005957c ); -PROVIDE ( _localeconv_r = 0x40059560 ); -PROVIDE ( __locale_mb_cur_max = 0x40059548 ); -PROVIDE ( __locale_msgcharset = 0x40059550 ); -PROVIDE ( localtime = 0x400595dc ); -PROVIDE ( localtime_r = 0x400595fc ); -PROVIDE ( _lock_acquire = 0x4000be14 ); -PROVIDE ( _lock_acquire_recursive = 0x4000be28 ); -PROVIDE ( _lock_close = 0x4000bdec ); -PROVIDE ( _lock_close_recursive = 0x4000be00 ); -PROVIDE ( _lock_init = 0x4000bdc4 ); -PROVIDE ( _lock_init_recursive = 0x4000bdd8 ); -PROVIDE ( _lock_release = 0x4000be64 ); -PROVIDE ( _lock_release_recursive = 0x4000be78 ); -PROVIDE ( _lock_try_acquire = 0x4000be3c ); -PROVIDE ( _lock_try_acquire_recursive = 0x4000be50 ); -PROVIDE ( longjmp = 0x400562cc ); -PROVIDE ( _lseek_r = 0x4000bd8c ); -PROVIDE ( __lshrdi3 = 0x4000c84c ); -PROVIDE ( __ltdf2 = 0x40063790 ); -PROVIDE ( __ltsf2 = 0x4006342c ); -PROVIDE ( malloc = 0x4000bea0 ); -PROVIDE ( _malloc_r = 0x4000bbb4 ); -PROVIDE ( maxSecretKey_256 = 0x3ff97448 ); -PROVIDE ( __mb_cur_max = 0x3ff96530 ); -PROVIDE ( MD5Final = 0x4005db1c ); -PROVIDE ( MD5Init = 0x4005da7c ); -PROVIDE ( MD5Update = 0x4005da9c ); -PROVIDE ( md5_vector = 0x4005db80 ); -PROVIDE ( memccpy = 0x4000c220 ); -PROVIDE ( memchr = 0x4000c244 ); -PROVIDE ( memcmp = 0x4000c260 ); -PROVIDE ( memcpy = 0x4000c2c8 ); -PROVIDE ( MemDwnLdStartMsgProc = 0x40008948 ); -PROVIDE ( MemDwnLdStopReqMsgProc = 0x400089dc ); -PROVIDE ( memmove = 0x4000c3c0 ); -PROVIDE ( MemPacketSendReqMsgProc = 0x40008978 ); -PROVIDE ( memrchr = 0x4000c400 ); -PROVIDE ( memset = 0x4000c44c ); -PROVIDE ( mktime = 0x4005a5e8 ); -PROVIDE ( mmu_init = 0x400095a4 ); -PROVIDE ( __moddi3 = 0x4000cd4c ); -PROVIDE ( __modsi3 = 0x4000c7c0 ); -PROVIDE ( __month_lengths = 0x3ff9609c ); -PROVIDE ( __muldc3 = 0x40063bf4 ); -PROVIDE ( __muldf3 = 0x4006358c ); -PROVIDE ( __muldi3 = 0x4000c9fc ); -PROVIDE ( __mulsc3 = 0x40063934 ); -PROVIDE ( __mulsf3 = 0x400632c8 ); -PROVIDE ( __mulsi3 = 0x4000c7b0 ); -PROVIDE ( MultiplyBigHexByUint32_256 = 0x40016214 ); -PROVIDE ( MultiplyBigHexModP256 = 0x400160b8 ); -PROVIDE ( MultiplyByU32ModP256 = 0x40015fdc ); -PROVIDE ( multofup = 0x4000ab8c ); -PROVIDE ( __mulvdi3 = 0x40002d78 ); -PROVIDE ( __mulvsi3 = 0x40002d60 ); -PROVIDE ( mz_adler32 = 0x4005edbc ); -PROVIDE ( mz_crc32 = 0x4005ee88 ); -PROVIDE ( mz_free = 0x4005eed4 ); -PROVIDE ( __nedf2 = 0x400636a8 ); -PROVIDE ( __negdf2 = 0x400634a0 ); -PROVIDE ( __negdi2 = 0x4000ca14 ); -PROVIDE ( __negsf2 = 0x400020c0 ); -PROVIDE ( __negvdi2 = 0x40002e98 ); -PROVIDE ( __negvsi2 = 0x40002e78 ); -PROVIDE ( __nesf2 = 0x40063374 ); -PROVIDE ( _NMIExceptionVector = 0x400002c0 ); -PROVIDE ( notEqual256 = 0x40015b04 ); -PROVIDE ( __nsau_data = 0x3ff96544 ); -PROVIDE ( one_bits = 0x3ff971f8 ); -PROVIDE ( open = 0x4000178c ); -PROVIDE ( _open_r = 0x4000bd54 ); -PROVIDE ( __paritysi2 = 0x40002f3c ); -PROVIDE ( pbkdf2_sha1 = 0x40060ba4 ); -PROVIDE ( phy_get_romfuncs = 0x40004100 ); -PROVIDE ( __popcountdi2 = 0x40002ef8 ); -PROVIDE ( __popcountsi2 = 0x40002ed0 ); -PROVIDE ( __popcount_tab = 0x3ff96544 ); -PROVIDE ( __powidf2 = 0x400638d4 ); -PROVIDE ( __powisf2 = 0x4006389c ); -PROVIDE ( _Pri_4_HandlerAddress = 0x3ffe0648 ); -PROVIDE ( _Pri_5_HandlerAddress = 0x3ffe064c ); -PROVIDE ( qsort = 0x40056424 ); -PROVIDE ( _raise_r = 0x4000bc70 ); -PROVIDE ( rand = 0x40001058 ); -PROVIDE ( rand_r = 0x400010d4 ); -PROVIDE ( r_btdm_option_data = 0x3ffae6e0 ); -PROVIDE ( r_bt_util_buf_acl_rx_alloc = 0x40010218 ); -PROVIDE ( r_bt_util_buf_acl_rx_free = 0x40010234 ); -PROVIDE ( r_bt_util_buf_acl_tx_alloc = 0x40010268 ); -PROVIDE ( r_bt_util_buf_acl_tx_free = 0x40010280 ); -PROVIDE ( r_bt_util_buf_init = 0x400100e4 ); -PROVIDE ( r_bt_util_buf_lmp_tx_alloc = 0x400101d0 ); -PROVIDE ( r_bt_util_buf_lmp_tx_free = 0x400101ec ); -PROVIDE ( r_bt_util_buf_sync_clear = 0x400103c8 ); -PROVIDE ( r_bt_util_buf_sync_init = 0x400102c4 ); -PROVIDE ( r_bt_util_buf_sync_rx_alloc = 0x40010468 ); -PROVIDE ( r_bt_util_buf_sync_rx_free = 0x4001049c ); -PROVIDE ( r_bt_util_buf_sync_tx_alloc = 0x400103ec ); -PROVIDE ( r_bt_util_buf_sync_tx_free = 0x40010428 ); -PROVIDE ( rc4_skip = 0x40060928 ); -PROVIDE ( r_co_bdaddr_compare = 0x40014324 ); -PROVIDE ( r_co_bytes_to_string = 0x400142e4 ); -PROVIDE ( r_co_list_check_size_available = 0x400142c4 ); -PROVIDE ( r_co_list_extract = 0x4001404c ); -PROVIDE ( r_co_list_extract_after = 0x40014118 ); -PROVIDE ( r_co_list_find = 0x4001419c ); -PROVIDE ( r_co_list_init = 0x40013f14 ); -PROVIDE ( r_co_list_insert_after = 0x40014254 ); -PROVIDE ( r_co_list_insert_before = 0x40014200 ); -PROVIDE ( r_co_list_merge = 0x400141bc ); -PROVIDE ( r_co_list_pool_init = 0x40013f30 ); -PROVIDE ( r_co_list_pop_front = 0x40014028 ); -PROVIDE ( r_co_list_push_back = 0x40013fb8 ); -PROVIDE ( r_co_list_push_front = 0x40013ff4 ); -PROVIDE ( r_co_list_size = 0x400142ac ); -PROVIDE ( r_co_nb_good_channels = 0x40014360 ); -PROVIDE ( r_co_slot_to_duration = 0x40014348 ); -PROVIDE ( RcvMsg = 0x4000954c ); -PROVIDE ( r_dbg_init = 0x40014394 ); -PROVIDE ( r_dbg_platform_reset_complete = 0x400143d0 ); -PROVIDE ( r_dbg_swdiag_init = 0x40014470 ); -PROVIDE ( r_dbg_swdiag_read = 0x400144a4 ); -PROVIDE ( r_dbg_swdiag_write = 0x400144d0 ); -PROVIDE ( r_E1 = 0x400108e8 ); -PROVIDE ( r_E21 = 0x40010968 ); -PROVIDE ( r_E22 = 0x400109b4 ); -PROVIDE ( r_E3 = 0x40010a58 ); -PROVIDE ( r_ea_alarm_clear = 0x40015ab4 ); -PROVIDE ( r_ea_alarm_set = 0x40015a10 ); -PROVIDE ( read = 0x400017dc ); -PROVIDE ( _read_r = 0x4000bda8 ); -PROVIDE ( r_ea_elt_cancel = 0x400150d0 ); -PROVIDE ( r_ea_elt_create = 0x40015264 ); -PROVIDE ( r_ea_elt_insert = 0x400152a8 ); -PROVIDE ( r_ea_elt_remove = 0x400154f0 ); -PROVIDE ( r_ea_finetimer_isr = 0x400155d4 ); -PROVIDE ( r_ea_init = 0x40015228 ); -PROVIDE ( r_ea_interval_create = 0x4001555c ); -PROVIDE ( r_ea_interval_delete = 0x400155a8 ); -PROVIDE ( r_ea_interval_duration_req = 0x4001597c ); -PROVIDE ( r_ea_interval_insert = 0x4001557c ); -PROVIDE ( r_ea_interval_remove = 0x40015590 ); -PROVIDE ( realloc = 0x4000becc ); -PROVIDE ( _realloc_r = 0x4000bbe0 ); -PROVIDE ( r_ea_offset_req = 0x40015748 ); -PROVIDE ( r_ea_sleep_check = 0x40015928 ); -PROVIDE ( r_ea_sw_isr = 0x40015724 ); -PROVIDE ( r_ea_time_get_halfslot_rounded = 0x40015894 ); -PROVIDE ( r_ea_time_get_slot_rounded = 0x400158d4 ); -PROVIDE ( r_ecc_abort_key256_generation = 0x40017070 ); -PROVIDE ( r_ecc_generate_key256 = 0x40016e00 ); -PROVIDE ( r_ecc_gen_new_public_key = 0x400170c0 ); -PROVIDE ( r_ecc_gen_new_secret_key = 0x400170e4 ); -PROVIDE ( r_ecc_get_debug_Keys = 0x40017224 ); -PROVIDE ( r_ecc_init = 0x40016dbc ); -PROVIDE ( RecvBuff = 0x3ffe009c ); -PROVIDE ( recv_packet = 0x40009424 ); -PROVIDE ( r_em_buf_init = 0x4001729c ); -PROVIDE ( r_em_buf_rx_buff_addr_get = 0x400173e8 ); -PROVIDE ( r_em_buf_rx_free = 0x400173c4 ); -PROVIDE ( r_em_buf_tx_buff_addr_get = 0x40017404 ); -PROVIDE ( r_em_buf_tx_free = 0x4001741c ); -PROVIDE ( _rename_r = 0x4000bc28 ); -PROVIDE ( _ResetHandler = 0x40000450 ); -PROVIDE ( _ResetVector = 0x40000400 ); -PROVIDE ( r_F1_256 = 0x400133e4 ); -PROVIDE ( r_F2_256 = 0x40013568 ); -PROVIDE ( r_F3_256 = 0x40013664 ); -PROVIDE ( RFPLL_ICP_TABLE = 0x3ffb8b7c ); -PROVIDE ( r_G_256 = 0x40013470 ); -PROVIDE ( r_H3 = 0x40013760 ); -PROVIDE ( r_H4 = 0x40013830 ); -PROVIDE ( r_h4tl_init = 0x40017878 ); -PROVIDE ( r_h4tl_start = 0x40017924 ); -PROVIDE ( r_h4tl_stop = 0x40017934 ); -PROVIDE ( r_h4tl_write = 0x400178d0 ); -PROVIDE ( r_H5 = 0x400138dc ); -PROVIDE ( r_hashConcat = 0x40013a38 ); -PROVIDE ( r_hci_acl_tx_data_alloc = 0x4001951c ); -PROVIDE ( r_hci_acl_tx_data_received = 0x40019654 ); -PROVIDE ( r_hci_bt_acl_bdaddr_register = 0x40018900 ); -PROVIDE ( r_hci_bt_acl_bdaddr_unregister = 0x400189ac ); -PROVIDE ( r_hci_bt_acl_conhdl_register = 0x4001895c ); -PROVIDE ( r_hci_cmd_get_max_param_size = 0x400192d0 ); -PROVIDE ( r_hci_cmd_received = 0x400192f8 ); -PROVIDE ( r_hci_evt_filter_add = 0x40018a64 ); -PROVIDE ( r_hci_evt_mask_set = 0x400189e4 ); -PROVIDE ( r_hci_fc_acl_buf_size_set = 0x40017988 ); -PROVIDE ( r_hci_fc_acl_en = 0x400179d8 ); -PROVIDE ( r_hci_fc_acl_packet_sent = 0x40017a3c ); -PROVIDE ( r_hci_fc_check_host_available_nb_acl_packets = 0x40017aa4 ); -PROVIDE ( r_hci_fc_check_host_available_nb_sync_packets = 0x40017ac8 ); -PROVIDE ( r_hci_fc_host_nb_acl_pkts_complete = 0x40017a6c ); -PROVIDE ( r_hci_fc_host_nb_sync_pkts_complete = 0x40017a88 ); -PROVIDE ( r_hci_fc_init = 0x40017974 ); -PROVIDE ( r_hci_fc_sync_buf_size_set = 0x400179b0 ); -PROVIDE ( r_hci_fc_sync_en = 0x40017a30 ); -PROVIDE ( r_hci_fc_sync_packet_sent = 0x40017a54 ); -PROVIDE ( r_hci_init = 0x40018538 ); -PROVIDE ( r_hci_look_for_cmd_desc = 0x40018454 ); -PROVIDE ( r_hci_look_for_dbg_evt_desc = 0x400184c4 ); -PROVIDE ( r_hci_look_for_evt_desc = 0x400184a0 ); -PROVIDE ( r_hci_look_for_le_evt_desc = 0x400184e0 ); -PROVIDE ( r_hci_reset = 0x4001856c ); -PROVIDE ( r_hci_send_2_host = 0x400185bc ); -PROVIDE ( r_hci_sync_tx_data_alloc = 0x40019754 ); -PROVIDE ( r_hci_sync_tx_data_received = 0x400197c0 ); -PROVIDE ( r_hci_tl_init = 0x40019290 ); -PROVIDE ( r_hci_tl_send = 0x40019228 ); -PROVIDE ( r_hci_util_pack = 0x40019874 ); -PROVIDE ( r_hci_util_unpack = 0x40019998 ); -PROVIDE ( r_hci_voice_settings_get = 0x40018bdc ); -PROVIDE ( r_hci_voice_settings_set = 0x40018be8 ); -PROVIDE ( r_HMAC = 0x40013968 ); -PROVIDE ( r_import_rf_phy_func = 0x3ffb8354 ); -PROVIDE ( r_import_rf_phy_func_p = 0x3ffafd64 ); -PROVIDE ( r_ip_funcs = 0x3ffae710 ); -PROVIDE ( r_ip_funcs_p = 0x3ffae70c ); -PROVIDE ( r_ke_check_malloc = 0x40019de0 ); -PROVIDE ( r_ke_event_callback_set = 0x40019ba8 ); -PROVIDE ( r_ke_event_clear = 0x40019c2c ); -PROVIDE ( r_ke_event_flush = 0x40019ccc ); -PROVIDE ( r_ke_event_get = 0x40019c78 ); -PROVIDE ( r_ke_event_get_all = 0x40019cc0 ); -PROVIDE ( r_ke_event_init = 0x40019b90 ); -PROVIDE ( r_ke_event_schedule = 0x40019cdc ); -PROVIDE ( r_ke_event_set = 0x40019be0 ); -PROVIDE ( r_ke_flush = 0x4001a374 ); -PROVIDE ( r_ke_free = 0x4001a014 ); -PROVIDE ( r_ke_get_max_mem_usage = 0x4001a1c8 ); -PROVIDE ( r_ke_get_mem_usage = 0x4001a1a0 ); -PROVIDE ( r_ke_init = 0x4001a318 ); -PROVIDE ( r_ke_is_free = 0x4001a184 ); -PROVIDE ( r_ke_malloc = 0x40019eb4 ); -PROVIDE ( r_ke_mem_init = 0x40019d3c ); -PROVIDE ( r_ke_mem_is_empty = 0x40019d8c ); -PROVIDE ( r_ke_msg_alloc = 0x4001a1e0 ); -PROVIDE ( r_ke_msg_dest_id_get = 0x4001a2e0 ); -PROVIDE ( r_ke_msg_discard = 0x4001a850 ); -PROVIDE ( r_ke_msg_forward = 0x4001a290 ); -PROVIDE ( r_ke_msg_forward_new_id = 0x4001a2ac ); -PROVIDE ( r_ke_msg_free = 0x4001a2cc ); -PROVIDE ( r_ke_msg_in_queue = 0x4001a2f8 ); -PROVIDE ( r_ke_msg_save = 0x4001a858 ); -PROVIDE ( r_ke_msg_send = 0x4001a234 ); -PROVIDE ( r_ke_msg_send_basic = 0x4001a26c ); -PROVIDE ( r_ke_msg_src_id_get = 0x4001a2ec ); -PROVIDE ( r_ke_queue_extract = 0x40055fd0 ); -PROVIDE ( r_ke_queue_insert = 0x40056020 ); -PROVIDE ( r_ke_sleep_check = 0x4001a3d8 ); -PROVIDE ( r_ke_state_get = 0x4001a7d8 ); -PROVIDE ( r_ke_state_set = 0x4001a6fc ); -PROVIDE ( r_ke_stats_get = 0x4001a3f0 ); -PROVIDE ( r_ke_task_check = 0x4001a8a4 ); -PROVIDE ( r_ke_task_create = 0x4001a674 ); -PROVIDE ( r_ke_task_delete = 0x4001a6c0 ); -PROVIDE ( r_ke_task_init = 0x4001a650 ); -PROVIDE ( r_ke_task_msg_flush = 0x4001a860 ); -PROVIDE ( r_ke_timer_active = 0x4001ac08 ); -PROVIDE ( r_ke_timer_adjust_all = 0x4001ac30 ); -PROVIDE ( r_ke_timer_clear = 0x4001ab90 ); -PROVIDE ( r_ke_timer_init = 0x4001aa9c ); -PROVIDE ( r_ke_timer_set = 0x4001aac0 ); -PROVIDE ( r_ke_timer_sleep_check = 0x4001ac50 ); -PROVIDE ( r_KPrimC = 0x40010ad4 ); -PROVIDE ( r_lb_clk_adj_activate = 0x4001ae70 ); -PROVIDE ( r_lb_clk_adj_id_get = 0x4001af14 ); -PROVIDE ( r_lb_clk_adj_period_update = 0x4001af20 ); -PROVIDE ( r_lb_init = 0x4001acd4 ); -PROVIDE ( r_lb_mst_key = 0x4001afc0 ); -PROVIDE ( r_lb_mst_key_cmp = 0x4001af74 ); -PROVIDE ( r_lb_mst_key_restart_enc = 0x4001b0d4 ); -PROVIDE ( r_lb_mst_start_act_bcst_enc = 0x4001b198 ); -PROVIDE ( r_lb_mst_stop_act_bcst_enc = 0x4001b24c ); -PROVIDE ( r_lb_reset = 0x4001ad38 ); -PROVIDE ( r_lb_send_lmp = 0x4001adbc ); -PROVIDE ( r_lb_send_pdu_clk_adj = 0x4001af3c ); -PROVIDE ( r_lb_util_get_csb_mode = 0x4001ada4 ); -PROVIDE ( r_lb_util_get_nb_broadcast = 0x4001ad80 ); -PROVIDE ( r_lb_util_get_res_lt_addr = 0x4001ad98 ); -PROVIDE ( r_lb_util_set_nb_broadcast = 0x4001ad8c ); -PROVIDE ( r_lc_afh_set = 0x4001cc74 ); -PROVIDE ( r_lc_afh_start = 0x4001d240 ); -PROVIDE ( r_lc_auth_cmp = 0x4001cd54 ); -PROVIDE ( r_lc_calc_link_key = 0x4001ce7c ); -PROVIDE ( r_lc_chg_pkt_type_cmp = 0x4001d038 ); -PROVIDE ( r_lc_chg_pkt_type_cont = 0x4001cfbc ); -PROVIDE ( r_lc_chg_pkt_type_retry = 0x4001d0ac ); -PROVIDE ( r_lc_chk_to = 0x4001d2a8 ); -PROVIDE ( r_lc_cmd_stat_send = 0x4001c914 ); -PROVIDE ( r_lc_comb_key_svr = 0x4001d30c ); -PROVIDE ( r_lc_con_cmp = 0x4001d44c ); -PROVIDE ( r_lc_con_cmp_evt_send = 0x4001d4fc ); -PROVIDE ( r_lc_conn_seq_done = 0x40021334 ); -PROVIDE ( r_lc_detach = 0x4002037c ); -PROVIDE ( r_lc_dhkey = 0x4001d564 ); -PROVIDE ( r_lc_enc_cmp = 0x4001d8bc ); -PROVIDE ( r_lc_enc_key_refresh = 0x4001d720 ); -PROVIDE ( r_lc_end_chk_colli = 0x4001d858 ); -PROVIDE ( r_lc_end_of_sniff_nego = 0x4001d9a4 ); -PROVIDE ( r_lc_enter_sniff_mode = 0x4001ddb8 ); -PROVIDE ( r_lc_epr_change_lk = 0x4001db38 ); -PROVIDE ( r_lc_epr_cmp = 0x4001da88 ); -PROVIDE ( r_lc_epr_resp = 0x4001e0b4 ); -PROVIDE ( r_lc_epr_rsw_cmp = 0x4001dd40 ); -PROVIDE ( r_lc_ext_feat = 0x40020d6c ); -PROVIDE ( r_lc_feat = 0x40020984 ); -PROVIDE ( r_lc_hl_connect = 0x400209e8 ); -PROVIDE ( r_lc_init = 0x4001c948 ); -PROVIDE ( r_lc_init_calc_f3 = 0x4001deb0 ); -PROVIDE ( r_lc_initiator_epr = 0x4001e064 ); -PROVIDE ( r_lc_init_passkey_loop = 0x4001dfc0 ); -PROVIDE ( r_lc_init_start_mutual_auth = 0x4001df60 ); -PROVIDE ( r_lc_key_exch_end = 0x4001e140 ); -PROVIDE ( r_lc_legacy_pair = 0x4001e1c0 ); -PROVIDE ( r_lc_local_switch = 0x4001e22c ); -PROVIDE ( r_lc_local_trans_mode = 0x4001e2e4 ); -PROVIDE ( r_lc_local_untrans_mode = 0x4001e3a0 ); -PROVIDE ( r_lc_loc_auth = 0x40020ecc ); -PROVIDE ( r_lc_locepr_lkref = 0x4001d648 ); -PROVIDE ( r_lc_locepr_rsw = 0x4001d5d0 ); -PROVIDE ( r_lc_loc_sniff = 0x40020a6c ); -PROVIDE ( r_lc_max_slot_mgt = 0x4001e410 ); -PROVIDE ( r_lc_mst_key = 0x4001e7c0 ); -PROVIDE ( r_lc_mst_qos_done = 0x4001ea80 ); -PROVIDE ( r_lc_mst_send_mst_key = 0x4001e8f4 ); -PROVIDE ( r_lc_mutual_auth_end = 0x4001e670 ); -PROVIDE ( r_lc_mutual_auth_end2 = 0x4001e4f4 ); -PROVIDE ( r_lc_packet_type = 0x40021038 ); -PROVIDE ( r_lc_pair = 0x40020ddc ); -PROVIDE ( r_lc_pairing_cont = 0x4001eafc ); -PROVIDE ( r_lc_passkey_comm = 0x4001ed20 ); -PROVIDE ( r_lc_prepare_all_links_for_clk_adj = 0x40021430 ); -PROVIDE ( r_lc_proc_rcv_dhkey = 0x4001edec ); -PROVIDE ( r_lc_ptt = 0x4001ee2c ); -PROVIDE ( r_lc_ptt_cmp = 0x4001eeec ); -PROVIDE ( r_lc_qos_setup = 0x4001ef50 ); -PROVIDE ( r_lc_rd_rem_name = 0x4001efd0 ); -PROVIDE ( r_lc_release = 0x4001f8a8 ); -PROVIDE ( r_lc_rem_enc = 0x4001f124 ); -PROVIDE ( r_lc_rem_name_cont = 0x4001f290 ); -PROVIDE ( r_lc_rem_nego_trans_mode = 0x4001f1b4 ); -PROVIDE ( r_lc_rem_sniff = 0x40020ca4 ); -PROVIDE ( r_lc_rem_sniff_sub_rate = 0x40020b10 ); -PROVIDE ( r_lc_rem_switch = 0x4001f070 ); -PROVIDE ( r_lc_rem_trans_mode = 0x4001f314 ); -PROVIDE ( r_lc_rem_unsniff = 0x400207a0 ); -PROVIDE ( r_lc_rem_untrans_mode = 0x4001f36c ); -PROVIDE ( r_lc_reset = 0x4001c99c ); -PROVIDE ( r_lc_resp_auth = 0x4001f518 ); -PROVIDE ( r_lc_resp_calc_f3 = 0x4001f710 ); -PROVIDE ( r_lc_resp_num_comp = 0x40020074 ); -PROVIDE ( r_lc_resp_oob_nonce = 0x4001f694 ); -PROVIDE ( r_lc_resp_oob_wait_nonce = 0x4001f66c ); -PROVIDE ( r_lc_resp_pair = 0x400208a4 ); -PROVIDE ( r_lc_resp_sec_auth = 0x4001f4a0 ); -PROVIDE ( r_lc_resp_wait_dhkey_cont = 0x4001f86c ); -PROVIDE ( r_lc_restart_enc = 0x4001f8ec ); -PROVIDE ( r_lc_restart_enc_cont = 0x4001f940 ); -PROVIDE ( r_lc_restore_afh_reporting = 0x4001f028 ); -PROVIDE ( r_lc_restore_to = 0x4001f9e0 ); -PROVIDE ( r_lc_ret_sniff_max_slot_chg = 0x4001fa30 ); -PROVIDE ( r_lc_rsw_clean_up = 0x4001dc70 ); -PROVIDE ( r_lc_rsw_done = 0x4001db94 ); -PROVIDE ( r_lc_sco_baseband_ack = 0x40022b00 ); -PROVIDE ( r_lc_sco_detach = 0x40021e40 ); -PROVIDE ( r_lc_sco_host_accept = 0x40022118 ); -PROVIDE ( r_lc_sco_host_reject = 0x400222b8 ); -PROVIDE ( r_lc_sco_host_request = 0x40021f4c ); -PROVIDE ( r_lc_sco_host_request_disc = 0x4002235c ); -PROVIDE ( r_lc_sco_init = 0x40021dc8 ); -PROVIDE ( r_lc_sco_peer_accept = 0x40022780 ); -PROVIDE ( r_lc_sco_peer_accept_disc = 0x40022a08 ); -PROVIDE ( r_lc_sco_peer_reject = 0x40022824 ); -PROVIDE ( r_lc_sco_peer_reject_disc = 0x40022a8c ); -PROVIDE ( r_lc_sco_peer_request = 0x4002240c ); -PROVIDE ( r_lc_sco_peer_request_disc = 0x400228ec ); -PROVIDE ( r_lc_sco_release = 0x40021eec ); -PROVIDE ( r_lc_sco_reset = 0x40021dfc ); -PROVIDE ( r_lc_sco_timeout = 0x40022bd4 ); -PROVIDE ( r_lc_sec_auth_compute_sres = 0x4001f3ec ); -PROVIDE ( r_lc_semi_key_cmp = 0x40020294 ); -PROVIDE ( r_lc_send_enc_chg_evt = 0x4002134c ); -PROVIDE ( r_lc_send_enc_mode = 0x40020220 ); -PROVIDE ( r_lc_send_lmp = 0x4001c1a8 ); -PROVIDE ( r_lc_send_pdu_acc = 0x4001c21c ); -PROVIDE ( r_lc_send_pdu_acc_ext4 = 0x4001c240 ); -PROVIDE ( r_lc_send_pdu_au_rand = 0x4001c308 ); -PROVIDE ( r_lc_send_pdu_auto_rate = 0x4001c5d0 ); -PROVIDE ( r_lc_send_pdu_clk_adj_ack = 0x4001c46c ); -PROVIDE ( r_lc_send_pdu_clk_adj_req = 0x4001c494 ); -PROVIDE ( r_lc_send_pdu_comb_key = 0x4001c368 ); -PROVIDE ( r_lc_send_pdu_dhkey_chk = 0x4001c8e8 ); -PROVIDE ( r_lc_send_pdu_encaps_head = 0x4001c440 ); -PROVIDE ( r_lc_send_pdu_encaps_payl = 0x4001c410 ); -PROVIDE ( r_lc_send_pdu_enc_key_sz_req = 0x4001c670 ); -PROVIDE ( r_lc_send_pdu_esco_lk_rem_req = 0x4001c5a8 ); -PROVIDE ( r_lc_send_pdu_feats_ext_req = 0x4001c6ec ); -PROVIDE ( r_lc_send_pdu_feats_res = 0x4001c694 ); -PROVIDE ( r_lc_send_pdu_in_rand = 0x4001c338 ); -PROVIDE ( r_lc_send_pdu_io_cap_res = 0x4001c72c ); -PROVIDE ( r_lc_send_pdu_lsto = 0x4001c64c ); -PROVIDE ( r_lc_send_pdu_max_slot = 0x4001c3c8 ); -PROVIDE ( r_lc_send_pdu_max_slot_req = 0x4001c3ec ); -PROVIDE ( r_lc_send_pdu_not_acc = 0x4001c26c ); -PROVIDE ( r_lc_send_pdu_not_acc_ext4 = 0x4001c294 ); -PROVIDE ( r_lc_send_pdu_num_comp_fail = 0x4001c770 ); -PROVIDE ( r_lc_send_pdu_pause_enc_aes_req = 0x4001c794 ); -PROVIDE ( r_lc_send_pdu_paus_enc_req = 0x4001c7c0 ); -PROVIDE ( r_lc_send_pdu_ptt_req = 0x4001c4c0 ); -PROVIDE ( r_lc_send_pdu_qos_req = 0x4001c82c ); -PROVIDE ( r_lc_send_pdu_resu_enc_req = 0x4001c7e4 ); -PROVIDE ( r_lc_send_pdu_sco_lk_rem_req = 0x4001c580 ); -PROVIDE ( r_lc_send_pdu_set_afh = 0x4001c2c8 ); -PROVIDE ( r_lc_send_pdu_setup_cmp = 0x4001c808 ); -PROVIDE ( r_lc_send_pdu_slot_off = 0x4001c854 ); -PROVIDE ( r_lc_send_pdu_sniff_req = 0x4001c5f0 ); -PROVIDE ( r_lc_send_pdu_sp_cfm = 0x4001c518 ); -PROVIDE ( r_lc_send_pdu_sp_nb = 0x4001c4e8 ); -PROVIDE ( r_lc_send_pdu_sres = 0x4001c548 ); -PROVIDE ( r_lc_send_pdu_tim_acc = 0x4001c6cc ); -PROVIDE ( r_lc_send_pdu_unit_key = 0x4001c398 ); -PROVIDE ( r_lc_send_pdu_unsniff_req = 0x4001c894 ); -PROVIDE ( r_lc_send_pdu_vers_req = 0x4001c8b4 ); -PROVIDE ( r_lc_skip_hl_oob_req = 0x400201bc ); -PROVIDE ( r_lc_sniff_init = 0x40022cac ); -PROVIDE ( r_lc_sniff_max_slot_chg = 0x40020590 ); -PROVIDE ( r_lc_sniff_reset = 0x40022cc8 ); -PROVIDE ( r_lc_sniff_slot_unchange = 0x40021100 ); -PROVIDE ( r_lc_sniff_sub_mode = 0x400204fc ); -PROVIDE ( r_lc_sp_end = 0x400213a8 ); -PROVIDE ( r_lc_sp_fail = 0x40020470 ); -PROVIDE ( r_lc_sp_oob_tid_fail = 0x400204cc ); -PROVIDE ( r_lc_ssr_nego = 0x4002125c ); -PROVIDE ( r_lc_start = 0x4001ca28 ); -PROVIDE ( r_lc_start_enc = 0x4001fb28 ); -PROVIDE ( r_lc_start_enc_key_size = 0x4001fd9c ); -PROVIDE ( r_lc_start_key_exch = 0x4001fe10 ); -PROVIDE ( r_lc_start_lmp_to = 0x4001fae8 ); -PROVIDE ( r_lc_start_oob = 0x4001fffc ); -PROVIDE ( r_lc_start_passkey = 0x4001feac ); -PROVIDE ( r_lc_start_passkey_loop = 0x4001ff88 ); -PROVIDE ( r_lc_stop_afh_report = 0x40020184 ); -PROVIDE ( r_lc_stop_enc = 0x40020110 ); -PROVIDE ( r_lc_switch_cmp = 0x40020448 ); -PROVIDE ( r_lc_unit_key_svr = 0x400206d8 ); -PROVIDE ( r_lc_unsniff = 0x40020c50 ); -PROVIDE ( r_lc_unsniff_cmp = 0x40020810 ); -PROVIDE ( r_lc_unsniff_cont = 0x40020750 ); -PROVIDE ( r_lc_upd_to = 0x4002065c ); -PROVIDE ( r_lc_util_convert_pref_rate_to_packet_type = 0x4002f9b0 ); -PROVIDE ( r_lc_util_get_max_packet_size = 0x4002f4ac ); -PROVIDE ( r_lc_util_get_offset_clke = 0x4002f538 ); -PROVIDE ( r_lc_util_get_offset_clkn = 0x4002f51c ); -PROVIDE ( r_lc_util_set_loc_trans_coll = 0x4002f500 ); -PROVIDE ( r_lc_version = 0x40020a30 ); -PROVIDE ( r_ld_acl_active_hop_types_get = 0x40036e10 ); -PROVIDE ( r_ld_acl_afh_confirm = 0x40036d40 ); -PROVIDE ( r_ld_acl_afh_prepare = 0x40036c84 ); -PROVIDE ( r_ld_acl_afh_set = 0x40036b60 ); -PROVIDE ( r_ld_acl_allowed_tx_packet_types_set = 0x40036810 ); -PROVIDE ( r_ld_acl_bcst_rx_dec = 0x40036394 ); -PROVIDE ( r_ld_acl_bit_off_get = 0x40036b18 ); -PROVIDE ( r_ld_acl_clk_adj_set = 0x40036a00 ); -PROVIDE ( r_ld_acl_clk_off_get = 0x40036b00 ); -PROVIDE ( r_ld_acl_clk_set = 0x40036950 ); -PROVIDE ( r_ld_acl_clock_offset_get = 0x400364c0 ); -PROVIDE ( r_ld_acl_current_tx_power_get = 0x400368f0 ); -PROVIDE ( r_ld_acl_data_flush = 0x400357bc ); -PROVIDE ( r_ld_acl_data_tx = 0x4003544c ); -PROVIDE ( r_ld_acl_edr_set = 0x4003678c ); -PROVIDE ( r_ld_acl_enc_key_load = 0x40036404 ); -PROVIDE ( r_ld_acl_flow_off = 0x40035400 ); -PROVIDE ( r_ld_acl_flow_on = 0x4003541c ); -PROVIDE ( r_ld_acl_flush_timeout_get = 0x40035f9c ); -PROVIDE ( r_ld_acl_flush_timeout_set = 0x40035fe0 ); -PROVIDE ( r_ld_acl_init = 0x40034d08 ); -PROVIDE ( r_ld_acl_lmp_flush = 0x40035d80 ); -PROVIDE ( r_ld_acl_lmp_tx = 0x40035b34 ); -PROVIDE ( r_ld_acl_lsto_get = 0x400366b4 ); -PROVIDE ( r_ld_acl_lsto_set = 0x400366f8 ); -PROVIDE ( r_ld_acl_reset = 0x40034d24 ); -PROVIDE ( r_ld_acl_role_get = 0x40036b30 ); -PROVIDE ( r_ld_acl_rssi_delta_get = 0x40037028 ); -PROVIDE ( r_ld_acl_rsw_req = 0x40035e74 ); -PROVIDE ( r_ld_acl_rx_enc = 0x40036344 ); -PROVIDE ( r_ld_acl_rx_max_slot_get = 0x40036e58 ); -PROVIDE ( r_ld_acl_rx_max_slot_set = 0x40036ea0 ); -PROVIDE ( r_ld_acl_slot_offset_get = 0x4003653c ); -PROVIDE ( r_ld_acl_slot_offset_set = 0x40036658 ); -PROVIDE ( r_ld_acl_sniff = 0x4003617c ); -PROVIDE ( r_ld_acl_sniff_trans = 0x400360a8 ); -PROVIDE ( r_ld_acl_ssr_set = 0x40036274 ); -PROVIDE ( r_ld_acl_start = 0x40034ddc ); -PROVIDE ( r_ld_acl_stop = 0x4003532c ); -PROVIDE ( r_ld_acl_test_mode_set = 0x40036f24 ); -PROVIDE ( r_ld_acl_timing_accuracy_set = 0x4003673c ); -PROVIDE ( r_ld_acl_t_poll_get = 0x40036024 ); -PROVIDE ( r_ld_acl_t_poll_set = 0x40036068 ); -PROVIDE ( r_ld_acl_tx_enc = 0x400362f8 ); -PROVIDE ( r_ld_acl_unsniff = 0x400361e0 ); -PROVIDE ( r_ld_active_check = 0x4003cac4 ); -PROVIDE ( r_ld_afh_ch_assess_data_get = 0x4003caec ); -PROVIDE ( r_ld_bcst_acl_data_tx = 0x40038d3c ); -PROVIDE ( r_ld_bcst_acl_init = 0x40038bd0 ); -PROVIDE ( r_ld_bcst_acl_reset = 0x40038bdc ); -PROVIDE ( r_ld_bcst_acl_start = 0x4003882c ); -PROVIDE ( r_ld_bcst_afh_update = 0x40038f3c ); -PROVIDE ( r_ld_bcst_enc_key_load = 0x4003906c ); -PROVIDE ( r_ld_bcst_lmp_tx = 0x40038bf8 ); -PROVIDE ( r_ld_bcst_tx_enc = 0x40038ff8 ); -PROVIDE ( r_ld_bd_addr_get = 0x4003ca20 ); -PROVIDE ( r_ld_channel_assess = 0x4003c184 ); -PROVIDE ( r_ld_class_of_dev_get = 0x4003ca34 ); -PROVIDE ( r_ld_class_of_dev_set = 0x4003ca50 ); -PROVIDE ( r_ld_csb_rx_afh_update = 0x40039af4 ); -PROVIDE ( r_ld_csb_rx_init = 0x40039690 ); -PROVIDE ( r_ld_csb_rx_reset = 0x4003969c ); -PROVIDE ( r_ld_csb_rx_start = 0x4003972c ); -PROVIDE ( r_ld_csb_rx_stop = 0x40039bb8 ); -PROVIDE ( r_ld_csb_tx_afh_update = 0x4003a5fc ); -PROVIDE ( r_ld_csb_tx_clr_data = 0x4003a71c ); -PROVIDE ( r_ld_csb_tx_dis = 0x4003a5e8 ); -PROVIDE ( r_ld_csb_tx_en = 0x4003a1c0 ); -PROVIDE ( r_ld_csb_tx_init = 0x4003a0e8 ); -PROVIDE ( r_ld_csb_tx_reset = 0x4003a0f8 ); -PROVIDE ( r_ld_csb_tx_set_data = 0x4003a6c0 ); -PROVIDE ( r_ld_fm_clk_isr = 0x4003a7a8 ); -PROVIDE ( r_ld_fm_frame_isr = 0x4003a82c ); -PROVIDE ( r_ld_fm_init = 0x4003a760 ); -PROVIDE ( r_ld_fm_prog_check = 0x4003ab28 ); -PROVIDE ( r_ld_fm_prog_disable = 0x4003a984 ); -PROVIDE ( r_ld_fm_prog_enable = 0x4003a944 ); -PROVIDE ( r_ld_fm_prog_push = 0x4003a9d4 ); -PROVIDE ( r_ld_fm_reset = 0x4003a794 ); -PROVIDE ( r_ld_fm_rx_isr = 0x4003a7f4 ); -PROVIDE ( r_ld_fm_sket_isr = 0x4003a8a4 ); -PROVIDE ( r_ld_init = 0x4003c294 ); -PROVIDE ( r_ld_inq_init = 0x4003b15c ); -PROVIDE ( r_ld_inq_reset = 0x4003b168 ); -PROVIDE ( r_ld_inq_start = 0x4003b1f0 ); -PROVIDE ( r_ld_inq_stop = 0x4003b4f0 ); -PROVIDE ( r_ld_iscan_eir_get = 0x4003c118 ); -PROVIDE ( r_ld_iscan_eir_set = 0x4003bfa0 ); -PROVIDE ( r_ld_iscan_init = 0x4003b9f0 ); -PROVIDE ( r_ld_iscan_reset = 0x4003ba14 ); -PROVIDE ( r_ld_iscan_restart = 0x4003ba44 ); -PROVIDE ( r_ld_iscan_start = 0x4003bb28 ); -PROVIDE ( r_ld_iscan_stop = 0x4003bf1c ); -PROVIDE ( r_ld_iscan_tx_pwr_get = 0x4003c138 ); -PROVIDE ( r_ld_page_init = 0x4003d808 ); -PROVIDE ( r_ld_page_reset = 0x4003d814 ); -PROVIDE ( r_ld_page_start = 0x4003d848 ); -PROVIDE ( r_ld_page_stop = 0x4003da54 ); -PROVIDE ( r_ld_pca_coarse_clock_adjust = 0x4003e324 ); -PROVIDE ( r_ld_pca_init = 0x4003deb4 ); -PROVIDE ( r_ld_pca_initiate_clock_dragging = 0x4003e4ac ); -PROVIDE ( r_ld_pca_local_config = 0x4003df6c ); -PROVIDE ( r_ld_pca_mws_frame_sync = 0x4003e104 ); -PROVIDE ( r_ld_pca_mws_moment_offset_gt = 0x4003e278 ); -PROVIDE ( r_ld_pca_mws_moment_offset_lt = 0x4003e280 ); -PROVIDE ( r_ld_pca_reporting_enable = 0x4003e018 ); -PROVIDE ( r_ld_pca_reset = 0x4003df0c ); -PROVIDE ( r_ld_pca_update_target_offset = 0x4003e050 ); -PROVIDE ( r_ld_pscan_evt_handler = 0x4003f238 ); -PROVIDE ( r_ld_pscan_init = 0x4003f474 ); -PROVIDE ( r_ld_pscan_reset = 0x4003f498 ); -PROVIDE ( r_ld_pscan_restart = 0x4003f4b8 ); -PROVIDE ( r_ld_pscan_start = 0x4003f514 ); -PROVIDE ( r_ld_pscan_stop = 0x4003f618 ); -PROVIDE ( r_ld_read_clock = 0x4003c9e4 ); -PROVIDE ( r_ld_reset = 0x4003c714 ); -PROVIDE ( r_ld_sched_acl_add = 0x4003f978 ); -PROVIDE ( r_ld_sched_acl_remove = 0x4003f99c ); -PROVIDE ( r_ld_sched_compute = 0x4003f6f8 ); -PROVIDE ( r_ld_sched_init = 0x4003f7ac ); -PROVIDE ( r_ld_sched_inq_add = 0x4003f8a8 ); -PROVIDE ( r_ld_sched_inq_remove = 0x4003f8d0 ); -PROVIDE ( r_ld_sched_iscan_add = 0x4003f7e8 ); -PROVIDE ( r_ld_sched_iscan_remove = 0x4003f808 ); -PROVIDE ( r_ld_sched_page_add = 0x4003f910 ); -PROVIDE ( r_ld_sched_page_remove = 0x4003f938 ); -PROVIDE ( r_ld_sched_pscan_add = 0x4003f828 ); -PROVIDE ( r_ld_sched_pscan_remove = 0x4003f848 ); -PROVIDE ( r_ld_sched_reset = 0x4003f7d4 ); -PROVIDE ( r_ld_sched_sco_add = 0x4003fa4c ); -PROVIDE ( r_ld_sched_sco_remove = 0x4003fa9c ); -PROVIDE ( r_ld_sched_sniff_add = 0x4003f9c4 ); -PROVIDE ( r_ld_sched_sniff_remove = 0x4003fa0c ); -PROVIDE ( r_ld_sched_sscan_add = 0x4003f868 ); -PROVIDE ( r_ld_sched_sscan_remove = 0x4003f888 ); -PROVIDE ( r_ld_sco_audio_isr = 0x40037cc8 ); -PROVIDE ( r_ld_sco_data_tx = 0x40037ee8 ); -PROVIDE ( r_ld_sco_start = 0x40037110 ); -PROVIDE ( r_ld_sco_stop = 0x40037c40 ); -PROVIDE ( r_ld_sco_update = 0x40037a74 ); -PROVIDE ( r_ld_sscan_activated = 0x4004031c ); -PROVIDE ( r_ld_sscan_init = 0x400402f0 ); -PROVIDE ( r_ld_sscan_reset = 0x400402fc ); -PROVIDE ( r_ld_sscan_start = 0x40040384 ); -PROVIDE ( r_ld_strain_init = 0x400409f4 ); -PROVIDE ( r_ld_strain_reset = 0x40040a00 ); -PROVIDE ( r_ld_strain_start = 0x40040a8c ); -PROVIDE ( r_ld_strain_stop = 0x40040df0 ); -PROVIDE ( r_ld_timing_accuracy_get = 0x4003caac ); -PROVIDE ( r_ld_util_active_master_afh_map_get = 0x4004131c ); -PROVIDE ( r_ld_util_active_master_afh_map_set = 0x40041308 ); -PROVIDE ( r_ld_util_bch_create = 0x40040fcc ); -PROVIDE ( r_ld_util_fhs_pk = 0x400411c8 ); -PROVIDE ( r_ld_util_fhs_unpk = 0x40040e54 ); -PROVIDE ( r_ld_util_stp_pk = 0x400413f4 ); -PROVIDE ( r_ld_util_stp_unpk = 0x40041324 ); -PROVIDE ( r_ld_version_get = 0x4003ca6c ); -PROVIDE ( r_ld_wlcoex_set = 0x4003caf8 ); -PROVIDE ( r_llc_ch_assess_get_current_ch_map = 0x40041574 ); -PROVIDE ( r_llc_ch_assess_get_local_ch_map = 0x4004150c ); -PROVIDE ( r_llc_ch_assess_local = 0x40041494 ); -PROVIDE ( r_llc_ch_assess_merge_ch = 0x40041588 ); -PROVIDE ( r_llc_ch_assess_reass_ch = 0x400415c0 ); -PROVIDE ( r_llc_common_cmd_complete_send = 0x40044eac ); -PROVIDE ( r_llc_common_cmd_status_send = 0x40044ee0 ); -PROVIDE ( r_llc_common_enc_change_evt_send = 0x40044f6c ); -PROVIDE ( r_llc_common_enc_key_ref_comp_evt_send = 0x40044f38 ); -PROVIDE ( r_llc_common_flush_occurred_send = 0x40044f0c ); -PROVIDE ( r_llc_common_nb_of_pkt_comp_evt_send = 0x40045000 ); -PROVIDE ( r_llc_con_update_complete_send = 0x40044d68 ); -PROVIDE ( r_llc_con_update_finished = 0x4004518c ); -PROVIDE ( r_llc_con_update_ind = 0x40045038 ); -PROVIDE ( r_llc_discon_event_complete_send = 0x40044a30 ); -PROVIDE ( r_llc_end_evt_defer = 0x40046330 ); -PROVIDE ( r_llc_feats_rd_event_send = 0x40044e0c ); -PROVIDE ( r_llc_init = 0x40044778 ); -PROVIDE ( r_llc_le_con_cmp_evt_send = 0x40044a78 ); -PROVIDE ( r_llc_llcp_ch_map_update_pdu_send = 0x40043f94 ); -PROVIDE ( r_llc_llcp_con_param_req_pdu_send = 0x400442fc ); -PROVIDE ( r_llc_llcp_con_param_rsp_pdu_send = 0x40044358 ); -PROVIDE ( r_llc_llcp_con_update_pdu_send = 0x400442c4 ); -PROVIDE ( r_llc_llcp_enc_req_pdu_send = 0x40044064 ); -PROVIDE ( r_llc_llcp_enc_rsp_pdu_send = 0x40044160 ); -PROVIDE ( r_llc_llcp_feats_req_pdu_send = 0x400443b4 ); -PROVIDE ( r_llc_llcp_feats_rsp_pdu_send = 0x400443f0 ); -PROVIDE ( r_llc_llcp_get_autorize = 0x4004475c ); -PROVIDE ( r_llc_llcp_length_req_pdu_send = 0x40044574 ); -PROVIDE ( r_llc_llcp_length_rsp_pdu_send = 0x400445ac ); -PROVIDE ( r_llc_llcp_pause_enc_req_pdu_send = 0x40043fd8 ); -PROVIDE ( r_llc_llcp_pause_enc_rsp_pdu_send = 0x40044010 ); -PROVIDE ( r_llc_llcp_ping_req_pdu_send = 0x4004454c ); -PROVIDE ( r_llc_llcp_ping_rsp_pdu_send = 0x40044560 ); -PROVIDE ( r_llc_llcp_recv_handler = 0x40044678 ); -PROVIDE ( r_llc_llcp_reject_ind_pdu_send = 0x4004425c ); -PROVIDE ( r_llc_llcp_start_enc_req_pdu_send = 0x4004441c ); -PROVIDE ( r_llc_llcp_start_enc_rsp_pdu_send = 0x400441f8 ); -PROVIDE ( r_llc_llcp_terminate_ind_pdu_send = 0x400444b0 ); -PROVIDE ( r_llc_llcp_tester_send = 0x400445e4 ); -PROVIDE ( r_llc_llcp_unknown_rsp_send_pdu = 0x40044534 ); -PROVIDE ( r_llc_llcp_version_ind_pdu_send = 0x40043f6c ); -PROVIDE ( r_llc_lsto_con_update = 0x40045098 ); -PROVIDE ( r_llc_ltk_req_send = 0x40044dc0 ); -PROVIDE ( r_llc_map_update_finished = 0x40045260 ); -PROVIDE ( r_llc_map_update_ind = 0x400450f0 ); -PROVIDE ( r_llc_pdu_acl_tx_ack_defer = 0x400464dc ); -PROVIDE ( r_llc_pdu_defer = 0x40046528 ); -PROVIDE ( r_llc_pdu_llcp_tx_ack_defer = 0x400463ac ); -PROVIDE ( r_llc_reset = 0x400447b8 ); -PROVIDE ( r_llc_start = 0x400447f4 ); -PROVIDE ( r_llc_stop = 0x400449ac ); -PROVIDE ( r_llc_util_bw_mgt = 0x4004629c ); -PROVIDE ( r_llc_util_clear_operation_ptr = 0x40046234 ); -PROVIDE ( r_llc_util_dicon_procedure = 0x40046130 ); -PROVIDE ( r_llc_util_get_free_conhdl = 0x400460c8 ); -PROVIDE ( r_llc_util_get_nb_active_link = 0x40046100 ); -PROVIDE ( r_llc_util_set_auth_payl_to_margin = 0x400461f4 ); -PROVIDE ( r_llc_util_set_llcp_discard_enable = 0x400461c8 ); -PROVIDE ( r_llc_util_update_channel_map = 0x400461ac ); -PROVIDE ( r_llc_version_rd_event_send = 0x40044e60 ); -PROVIDE ( r_lld_adv_start = 0x40048b38 ); -PROVIDE ( r_lld_adv_stop = 0x40048ea0 ); -PROVIDE ( r_lld_ch_map_ind = 0x4004a2f4 ); -PROVIDE ( r_lld_con_param_req = 0x40049f0c ); -PROVIDE ( r_lld_con_param_rsp = 0x40049e00 ); -PROVIDE ( r_lld_con_start = 0x400491f8 ); -PROVIDE ( r_lld_con_stop = 0x40049fdc ); -PROVIDE ( r_lld_con_update_after_param_req = 0x40049bcc ); -PROVIDE ( r_lld_con_update_ind = 0x4004a30c ); -PROVIDE ( r_lld_con_update_req = 0x40049b60 ); -PROVIDE ( r_lld_core_reset = 0x40048a9c ); -PROVIDE ( r_lld_crypt_isr = 0x4004a324 ); -PROVIDE ( r_lld_evt_adv_create = 0x400481f4 ); -PROVIDE ( r_lld_evt_canceled = 0x400485c8 ); -PROVIDE ( r_lld_evt_channel_next = 0x40046aac ); -PROVIDE ( r_lld_evt_deffered_elt_handler = 0x400482bc ); -PROVIDE ( r_lld_evt_delete_elt_handler = 0x40046974 ); -PROVIDE ( r_lld_evt_delete_elt_push = 0x40046a3c ); -PROVIDE ( r_lld_evt_drift_compute = 0x40047670 ); -PROVIDE ( r_lld_evt_elt_delete = 0x40047538 ); -PROVIDE ( r_lld_evt_elt_insert = 0x400474c8 ); -PROVIDE ( r_lld_evt_end = 0x400483e8 ); -PROVIDE ( r_lld_evt_end_isr = 0x4004862c ); -PROVIDE ( r_lld_evt_init = 0x40046b3c ); -PROVIDE ( r_lld_evt_init_evt = 0x40046cd0 ); -PROVIDE ( r_lld_evt_move_to_master = 0x40047ba0 ); -PROVIDE ( r_lld_evt_move_to_slave = 0x40047e18 ); -PROVIDE ( r_lld_evt_prevent_stop = 0x40047adc ); -PROVIDE ( r_lld_evt_restart = 0x40046d50 ); -PROVIDE ( r_lld_evt_rx = 0x40048578 ); -PROVIDE ( r_lld_evt_rx_isr = 0x40048678 ); -PROVIDE ( r_lld_evt_scan_create = 0x40047ae8 ); -PROVIDE ( r_lld_evt_schedule = 0x40047908 ); -PROVIDE ( r_lld_evt_schedule_next = 0x400477dc ); -PROVIDE ( r_lld_evt_schedule_next_instant = 0x400476a8 ); -PROVIDE ( r_lld_evt_slave_update = 0x40048138 ); -PROVIDE ( r_lld_evt_update_create = 0x40047cd8 ); -PROVIDE ( r_lld_get_mode = 0x40049ff8 ); -PROVIDE ( r_lld_init = 0x4004873c ); -PROVIDE ( r_lld_move_to_master = 0x400499e0 ); -PROVIDE ( r_lld_move_to_slave = 0x4004a024 ); -PROVIDE ( r_lld_pdu_adv_pack = 0x4004b488 ); -PROVIDE ( r_lld_pdu_check = 0x4004ac34 ); -PROVIDE ( r_lld_pdu_data_send = 0x4004b018 ); -PROVIDE ( r_lld_pdu_data_tx_push = 0x4004aecc ); -PROVIDE ( r_lld_pdu_rx_handler = 0x4004b4d4 ); -PROVIDE ( r_lld_pdu_send_packet = 0x4004b774 ); -PROVIDE ( r_lld_pdu_tx_flush = 0x4004b414 ); -PROVIDE ( r_lld_pdu_tx_loop = 0x4004ae40 ); -PROVIDE ( r_lld_pdu_tx_prog = 0x4004b120 ); -PROVIDE ( r_lld_pdu_tx_push = 0x4004b080 ); -PROVIDE ( r_lld_ral_renew_req = 0x4004a73c ); -PROVIDE ( r_lld_scan_start = 0x40048ee0 ); -PROVIDE ( r_lld_scan_stop = 0x40049190 ); -PROVIDE ( r_lld_test_mode_rx = 0x4004a540 ); -PROVIDE ( r_lld_test_mode_tx = 0x4004a350 ); -PROVIDE ( r_lld_test_stop = 0x4004a710 ); -PROVIDE ( r_lld_util_anchor_point_move = 0x4004bacc ); -PROVIDE ( r_lld_util_compute_ce_max = 0x4004bc0c ); -PROVIDE ( r_lld_util_connection_param_set = 0x4004ba40 ); -PROVIDE ( r_lld_util_dle_set_cs_fields = 0x4004ba90 ); -PROVIDE ( r_lld_util_eff_tx_time_set = 0x4004bd88 ); -PROVIDE ( r_lld_util_elt_programmed = 0x4004bce0 ); -PROVIDE ( r_lld_util_flush_list = 0x4004bbd8 ); -PROVIDE ( r_lld_util_freq2chnl = 0x4004b9e4 ); -PROVIDE ( r_lld_util_get_bd_address = 0x4004b8ac ); -PROVIDE ( r_lld_util_get_local_offset = 0x4004ba10 ); -PROVIDE ( r_lld_util_get_peer_offset = 0x4004ba24 ); -PROVIDE ( r_lld_util_get_tx_pkt_cnt = 0x4004bd80 ); -PROVIDE ( r_lld_util_instant_get = 0x4004b890 ); -PROVIDE ( r_lld_util_instant_ongoing = 0x4004bbfc ); -PROVIDE ( r_lld_util_priority_set = 0x4004bd10 ); -PROVIDE ( r_lld_util_priority_update = 0x4004bd78 ); -PROVIDE ( r_lld_util_ral_force_rpa_renew = 0x4004b980 ); -PROVIDE ( r_lld_util_set_bd_address = 0x4004b8f8 ); -PROVIDE ( r_lld_wlcoex_set = 0x4004bd98 ); -PROVIDE ( r_llm_ble_ready = 0x4004cc34 ); -PROVIDE ( r_llm_common_cmd_complete_send = 0x4004d288 ); -PROVIDE ( r_llm_common_cmd_status_send = 0x4004d2b4 ); -PROVIDE ( r_llm_con_req_ind = 0x4004cc54 ); -PROVIDE ( r_llm_con_req_tx_cfm = 0x4004d158 ); -PROVIDE ( r_llm_create_con = 0x4004de78 ); -PROVIDE ( r_llm_encryption_done = 0x4004dff8 ); -PROVIDE ( r_llm_encryption_start = 0x4004e128 ); -PROVIDE ( r_llm_end_evt_defer = 0x4004eb6c ); -PROVIDE ( r_llm_init = 0x4004c9f8 ); -PROVIDE ( r_llm_le_adv_report_ind = 0x4004cdf4 ); -PROVIDE ( r_llm_pdu_defer = 0x4004ec48 ); -PROVIDE ( r_llm_ral_clear = 0x4004e1fc ); -PROVIDE ( r_llm_ral_dev_add = 0x4004e23c ); -PROVIDE ( r_llm_ral_dev_rm = 0x4004e3bc ); -PROVIDE ( r_llm_ral_get_rpa = 0x4004e400 ); -PROVIDE ( r_llm_ral_set_timeout = 0x4004e4a0 ); -PROVIDE ( r_llm_ral_update = 0x4004e4f8 ); -PROVIDE ( r_llm_set_adv_data = 0x4004d960 ); -PROVIDE ( r_llm_set_adv_en = 0x4004d7ec ); -PROVIDE ( r_llm_set_adv_param = 0x4004d5f4 ); -PROVIDE ( r_llm_set_scan_en = 0x4004db64 ); -PROVIDE ( r_llm_set_scan_param = 0x4004dac8 ); -PROVIDE ( r_llm_set_scan_rsp_data = 0x4004da14 ); -PROVIDE ( r_llm_test_mode_start_rx = 0x4004d534 ); -PROVIDE ( r_llm_test_mode_start_tx = 0x4004d2fc ); -PROVIDE ( r_llm_util_adv_data_update = 0x4004e8fc ); -PROVIDE ( r_llm_util_apply_bd_addr = 0x4004e868 ); -PROVIDE ( r_llm_util_bd_addr_in_ral = 0x4004eb08 ); -PROVIDE ( r_llm_util_bd_addr_in_wl = 0x4004e788 ); -PROVIDE ( r_llm_util_bd_addr_wl_position = 0x4004e720 ); -PROVIDE ( r_llm_util_bl_add = 0x4004e9ac ); -PROVIDE ( r_llm_util_bl_check = 0x4004e930 ); -PROVIDE ( r_llm_util_bl_rem = 0x4004ea70 ); -PROVIDE ( r_llm_util_check_address_validity = 0x4004e7e4 ); -PROVIDE ( r_llm_util_check_evt_mask = 0x4004e8b0 ); -PROVIDE ( r_llm_util_check_map_validity = 0x4004e800 ); -PROVIDE ( r_llm_util_get_channel_map = 0x4004e8d4 ); -PROVIDE ( r_llm_util_get_supp_features = 0x4004e8e8 ); -PROVIDE ( r_llm_util_set_public_addr = 0x4004e89c ); -PROVIDE ( r_llm_wl_clr = 0x4004dc54 ); -PROVIDE ( r_llm_wl_dev_add = 0x4004dcc0 ); -PROVIDE ( r_llm_wl_dev_add_hdl = 0x4004dd38 ); -PROVIDE ( r_llm_wl_dev_rem = 0x4004dcfc ); -PROVIDE ( r_llm_wl_dev_rem_hdl = 0x4004dde0 ); -PROVIDE ( r_lm_acl_disc = 0x4004f148 ); -PROVIDE ( r_LM_AddSniff = 0x40022d20 ); -PROVIDE ( r_lm_add_sync = 0x40051358 ); -PROVIDE ( r_lm_afh_activate_timer = 0x4004f444 ); -PROVIDE ( r_lm_afh_ch_ass_en_get = 0x4004f3f8 ); -PROVIDE ( r_lm_afh_host_ch_class_get = 0x4004f410 ); -PROVIDE ( r_lm_afh_master_ch_map_get = 0x4004f43c ); -PROVIDE ( r_lm_afh_peer_ch_class_set = 0x4004f418 ); -PROVIDE ( r_lm_check_active_sync = 0x40051334 ); -PROVIDE ( r_LM_CheckEdrFeatureRequest = 0x4002f90c ); -PROVIDE ( r_LM_CheckSwitchInstant = 0x4002f8c0 ); -PROVIDE ( r_lm_check_sync_hl_rsp = 0x4005169c ); -PROVIDE ( r_lm_clk_adj_ack_pending_clear = 0x4004f514 ); -PROVIDE ( r_lm_clk_adj_instant_pending_set = 0x4004f4d8 ); -PROVIDE ( r_LM_ComputePacketType = 0x4002f554 ); -PROVIDE ( r_LM_ComputeSniffSubRate = 0x400233ac ); -PROVIDE ( r_lm_debug_key_compare_192 = 0x4004f3a8 ); -PROVIDE ( r_lm_debug_key_compare_256 = 0x4004f3d0 ); -PROVIDE ( r_lm_dhkey_calc_init = 0x40013234 ); -PROVIDE ( r_lm_dhkey_compare = 0x400132d8 ); -PROVIDE ( r_lm_dut_mode_en_get = 0x4004f3ec ); -PROVIDE ( r_LM_ExtractMaxEncKeySize = 0x4001aca4 ); -PROVIDE ( r_lm_f1 = 0x40012bb8 ); -PROVIDE ( r_lm_f2 = 0x40012cfc ); -PROVIDE ( r_lm_f3 = 0x40013050 ); -PROVIDE ( r_lm_g = 0x40012f90 ); -PROVIDE ( r_LM_GetAFHSwitchInstant = 0x4002f86c ); -PROVIDE ( r_lm_get_auth_en = 0x4004f1ac ); -PROVIDE ( r_lm_get_common_pkt_types = 0x4002fa1c ); -PROVIDE ( r_LM_GetConnectionAcceptTimeout = 0x4004f1f4 ); -PROVIDE ( r_LM_GetFeature = 0x4002f924 ); -PROVIDE ( r_LM_GetLinkTimeout = 0x400233ec ); -PROVIDE ( r_LM_GetLocalNameSeg = 0x4004f200 ); -PROVIDE ( r_lm_get_loopback_mode = 0x4004f248 ); -PROVIDE ( r_LM_GetMasterEncKeySize = 0x4001b29c ); -PROVIDE ( r_LM_GetMasterEncRand = 0x4001b288 ); -PROVIDE ( r_LM_GetMasterKey = 0x4001b260 ); -PROVIDE ( r_LM_GetMasterKeyRand = 0x4001b274 ); -PROVIDE ( r_lm_get_min_sync_intv = 0x400517a8 ); -PROVIDE ( r_lm_get_nb_acl = 0x4004ef9c ); -PROVIDE ( r_lm_get_nb_sync_link = 0x4005179c ); -PROVIDE ( r_lm_get_nonce = 0x400131c4 ); -PROVIDE ( r_lm_get_oob_local_commit = 0x4004f374 ); -PROVIDE ( r_lm_get_oob_local_data_192 = 0x4004f2d4 ); -PROVIDE ( r_lm_get_oob_local_data_256 = 0x4004f318 ); -PROVIDE ( r_LM_GetPINType = 0x4004f1e8 ); -PROVIDE ( r_lm_get_priv_key_192 = 0x4004f278 ); -PROVIDE ( r_lm_get_priv_key_256 = 0x4004f2b8 ); -PROVIDE ( r_lm_get_pub_key_192 = 0x4004f258 ); -PROVIDE ( r_lm_get_pub_key_256 = 0x4004f298 ); -PROVIDE ( r_LM_GetQoSParam = 0x4002f6e0 ); -PROVIDE ( r_lm_get_sec_con_host_supp = 0x4004f1d4 ); -PROVIDE ( r_LM_GetSniffSubratingParam = 0x4002325c ); -PROVIDE ( r_lm_get_sp_en = 0x4004f1c0 ); -PROVIDE ( r_LM_GetSwitchInstant = 0x4002f7f8 ); -PROVIDE ( r_lm_get_synchdl = 0x4005175c ); -PROVIDE ( r_lm_get_sync_param = 0x400503b4 ); -PROVIDE ( r_lm_init = 0x4004ed34 ); -PROVIDE ( r_lm_init_sync = 0x400512d8 ); -PROVIDE ( r_lm_is_acl_con = 0x4004f47c ); -PROVIDE ( r_lm_is_acl_con_role = 0x4004f49c ); -PROVIDE ( r_lm_is_clk_adj_ack_pending = 0x4004f4e8 ); -PROVIDE ( r_lm_is_clk_adj_instant_pending = 0x4004f4c8 ); -PROVIDE ( r_lm_local_ext_fr_configured = 0x4004f540 ); -PROVIDE ( r_lm_look_for_stored_link_key = 0x4002f948 ); -PROVIDE ( r_lm_look_for_sync = 0x40051774 ); -PROVIDE ( r_lm_lt_addr_alloc = 0x4004ef1c ); -PROVIDE ( r_lm_lt_addr_free = 0x4004ef74 ); -PROVIDE ( r_lm_lt_addr_reserve = 0x4004ef48 ); -PROVIDE ( r_LM_MakeCof = 0x4002f84c ); -PROVIDE ( r_LM_MakeRandVec = 0x400112d8 ); -PROVIDE ( r_lm_master_clk_adj_req_handler = 0x40054180 ); -PROVIDE ( r_LM_MaxSlot = 0x4002f694 ); -PROVIDE ( r_lm_modif_sync = 0x40051578 ); -PROVIDE ( r_lm_n_is_zero = 0x40012170 ); -PROVIDE ( r_lm_num_clk_adj_ack_pending_set = 0x4004f500 ); -PROVIDE ( r_lm_oob_f1 = 0x40012e54 ); -PROVIDE ( r_lm_pca_sscan_link_get = 0x4004f560 ); -PROVIDE ( r_lm_pca_sscan_link_set = 0x4004f550 ); -PROVIDE ( r_lmp_pack = 0x4001135c ); -PROVIDE ( r_lmp_unpack = 0x4001149c ); -PROVIDE ( r_lm_read_features = 0x4004f0d8 ); -PROVIDE ( r_LM_RemoveSniff = 0x40023124 ); -PROVIDE ( r_LM_RemoveSniffSubrating = 0x400233c4 ); -PROVIDE ( r_lm_remove_sync = 0x400517c8 ); -PROVIDE ( r_lm_reset_sync = 0x40051304 ); -PROVIDE ( r_lm_role_switch_finished = 0x4004f028 ); -PROVIDE ( r_lm_role_switch_start = 0x4004efe0 ); -PROVIDE ( r_lm_sco_nego_end = 0x40051828 ); -PROVIDE ( r_LM_SniffSubrateNegoRequired = 0x40023334 ); -PROVIDE ( r_LM_SniffSubratingHlReq = 0x40023154 ); -PROVIDE ( r_LM_SniffSubratingPeerReq = 0x400231dc ); -PROVIDE ( r_lm_sp_debug_mode_get = 0x4004f398 ); -PROVIDE ( r_lm_sp_n192_convert_wnaf = 0x400123c0 ); -PROVIDE ( r_lm_sp_n_one = 0x400123a4 ); -PROVIDE ( r_lm_sp_p192_add = 0x40012828 ); -PROVIDE ( r_lm_sp_p192_dbl = 0x4001268c ); -PROVIDE ( r_lm_sp_p192_invert = 0x40012b6c ); -PROVIDE ( r_lm_sp_p192_point_jacobian_to_affine = 0x40012468 ); -PROVIDE ( r_lm_sp_p192_points_jacobian_to_affine = 0x400124e4 ); -PROVIDE ( r_lm_sp_p192_point_to_inf = 0x40012458 ); -PROVIDE ( r_lm_sp_pre_compute_points = 0x40012640 ); -PROVIDE ( r_lm_sp_sha256_calculate = 0x400121a0 ); -PROVIDE ( r_LM_SuppressAclPacket = 0x4002f658 ); -PROVIDE ( r_lm_sync_flow_ctrl_en_get = 0x4004f404 ); -PROVIDE ( r_LM_UpdateAclEdrPacketType = 0x4002f5d8 ); -PROVIDE ( r_LM_UpdateAclPacketType = 0x4002f584 ); -PROVIDE ( r_modules_funcs = 0x3ffafd6c ); -PROVIDE ( r_modules_funcs_p = 0x3ffafd68 ); -PROVIDE ( r_nvds_del = 0x400544c4 ); -PROVIDE ( r_nvds_get = 0x40054488 ); -PROVIDE ( r_nvds_init = 0x40054410 ); -PROVIDE ( r_nvds_lock = 0x400544fc ); -PROVIDE ( r_nvds_put = 0x40054534 ); -PROVIDE ( rom_abs_temp = 0x400054f0 ); -PROVIDE ( rom_bb_bss_bw_40_en = 0x4000401c ); -PROVIDE ( rom_bb_bss_cbw40_dig = 0x40003bac ); -PROVIDE ( rom_bb_rx_ht20_cen_bcov_en = 0x40003734 ); -PROVIDE ( rom_bb_tx_ht20_cen = 0x40003760 ); -PROVIDE ( rom_bb_wdg_test_en = 0x40003b70 ); -PROVIDE ( rom_cbw2040_cfg = 0x400040b0 ); -PROVIDE ( rom_check_noise_floor = 0x40003c78 ); -PROVIDE ( rom_chip_i2c_readReg = 0x40004110 ); -PROVIDE ( rom_chip_i2c_writeReg = 0x40004168 ); -PROVIDE ( rom_chip_v7_bt_init = 0x40004d8c ); -PROVIDE ( rom_chip_v7_rx_init = 0x40004cec ); -PROVIDE ( rom_chip_v7_rx_rifs_en = 0x40003d90 ); -PROVIDE ( rom_chip_v7_tx_init = 0x40004d18 ); -PROVIDE ( rom_clk_force_on_vit = 0x40003710 ); -PROVIDE ( rom_correct_rf_ana_gain = 0x400062a8 ); -PROVIDE ( rom_dc_iq_est = 0x400055c8 ); -PROVIDE ( rom_disable_agc = 0x40002fa4 ); -PROVIDE ( rom_enable_agc = 0x40002fcc ); -PROVIDE ( rom_en_pwdet = 0x4000506c ); -PROVIDE ( rom_gen_rx_gain_table = 0x40003e3c ); -PROVIDE ( rom_get_data_sat = 0x4000312c ); -PROVIDE ( rom_get_fm_sar_dout = 0x40005204 ); -PROVIDE ( rom_get_power_db = 0x40005fc8 ); -PROVIDE ( rom_get_pwctrl_correct = 0x400065d4 ); -PROVIDE ( rom_get_rfcal_rxiq_data = 0x40005bbc ); -PROVIDE ( rom_get_rf_gain_qdb = 0x40006290 ); -PROVIDE ( rom_get_sar_dout = 0x40006564 ); -PROVIDE ( rom_i2c_readReg = 0x40004148 ); -PROVIDE ( rom_i2c_readReg_Mask = 0x400041c0 ); -PROVIDE ( rom_i2c_writeReg = 0x400041a4 ); -PROVIDE ( rom_i2c_writeReg_Mask = 0x400041fc ); -PROVIDE ( rom_index_to_txbbgain = 0x40004df8 ); -PROVIDE ( rom_iq_est_disable = 0x40005590 ); -PROVIDE ( rom_iq_est_enable = 0x40005514 ); -PROVIDE ( rom_linear_to_db = 0x40005f64 ); -PROVIDE ( rom_loopback_mode_en = 0x400030f8 ); -PROVIDE ( rom_main = 0x400076c4 ); -PROVIDE ( rom_meas_tone_pwr_db = 0x40006004 ); -PROVIDE ( rom_mhz2ieee = 0x4000404c ); -PROVIDE ( rom_noise_floor_auto_set = 0x40003bdc ); -PROVIDE ( rom_pbus_debugmode = 0x40004458 ); -PROVIDE ( rom_pbus_force_mode = 0x40004270 ); -PROVIDE ( rom_pbus_force_test = 0x400043c0 ); -PROVIDE ( rom_pbus_rd = 0x40004414 ); -PROVIDE ( rom_pbus_rd_addr = 0x40004334 ); -PROVIDE ( rom_pbus_rd_shift = 0x40004374 ); -PROVIDE ( rom_pbus_rx_dco_cal = 0x40005620 ); -PROVIDE ( rom_pbus_set_dco = 0x40004638 ); -PROVIDE ( rom_pbus_set_rxgain = 0x40004480 ); -PROVIDE ( rom_pbus_workmode = 0x4000446c ); -PROVIDE ( rom_pbus_xpd_rx_off = 0x40004508 ); -PROVIDE ( rom_pbus_xpd_rx_on = 0x4000453c ); -PROVIDE ( rom_pbus_xpd_tx_off = 0x40004590 ); -PROVIDE ( rom_pbus_xpd_tx_on = 0x400045e0 ); -PROVIDE ( rom_phy_disable_agc = 0x40002f6c ); -PROVIDE ( rom_phy_disable_cca = 0x40003000 ); -PROVIDE ( rom_phy_enable_agc = 0x40002f88 ); -PROVIDE ( rom_phy_enable_cca = 0x4000302c ); -PROVIDE ( rom_phy_freq_correct = 0x40004b44 ); -PROVIDE ( rom_phyFuns = 0x3ffae0c0 ); -PROVIDE ( rom_phy_get_noisefloor = 0x40003c2c ); -PROVIDE ( rom_phy_get_vdd33 = 0x4000642c ); -PROVIDE ( rom_pow_usr = 0x40003044 ); -PROVIDE ( rom_read_sar_dout = 0x400051c0 ); -PROVIDE ( rom_restart_cal = 0x400046e0 ); -PROVIDE ( rom_rfcal_pwrctrl = 0x40006058 ); -PROVIDE ( rom_rfcal_rxiq = 0x40005b4c ); -PROVIDE ( rom_rfcal_txcap = 0x40005dec ); -PROVIDE ( rom_rfpll_reset = 0x40004680 ); -PROVIDE ( rom_rfpll_set_freq = 0x400047f8 ); -PROVIDE ( rom_rtc_mem_backup = 0x40003db4 ); -PROVIDE ( rom_rtc_mem_recovery = 0x40003df4 ); -PROVIDE ( rom_rx_gain_force = 0x4000351c ); -PROVIDE ( rom_rxiq_cover_mg_mp = 0x40005a68 ); -PROVIDE ( rom_rxiq_get_mis = 0x400058e4 ); -PROVIDE ( rom_rxiq_set_reg = 0x40005a00 ); -PROVIDE ( rom_set_cal_rxdc = 0x400030b8 ); -PROVIDE ( rom_set_chan_cal_interp = 0x40005ce0 ); -PROVIDE ( rom_set_channel_freq = 0x40004880 ); -PROVIDE ( rom_set_loopback_gain = 0x40003060 ); -PROVIDE ( rom_set_noise_floor = 0x40003d48 ); -PROVIDE ( rom_set_pbus_mem = 0x400031a4 ); -PROVIDE ( rom_set_rf_freq_offset = 0x40004ca8 ); -PROVIDE ( rom_set_rxclk_en = 0x40003594 ); -PROVIDE ( rom_set_txcap_reg = 0x40005d50 ); -PROVIDE ( rom_set_txclk_en = 0x40003564 ); -PROVIDE ( rom_spur_coef_cfg = 0x40003ac8 ); -PROVIDE ( rom_spur_reg_write_one_tone = 0x400037f0 ); -PROVIDE ( rom_start_tx_tone = 0x400036b4 ); -PROVIDE ( rom_start_tx_tone_step = 0x400035d0 ); -PROVIDE ( rom_stop_tx_tone = 0x40003f98 ); -PROVIDE ( _rom_store = 0x4000d66c ); -PROVIDE ( _rom_store_table = 0x4000d4f8 ); -PROVIDE ( rom_target_power_add_backoff = 0x40006268 ); -PROVIDE ( rom_tx_atten_set_interp = 0x400061cc ); -PROVIDE ( rom_txbbgain_to_index = 0x40004dc0 ); -PROVIDE ( rom_txcal_work_mode = 0x4000510c ); -PROVIDE ( rom_txdc_cal_init = 0x40004e10 ); -PROVIDE ( rom_txdc_cal_v70 = 0x40004ea4 ); -PROVIDE ( rom_txiq_cover = 0x4000538c ); -PROVIDE ( rom_txiq_get_mis_pwr = 0x400052dc ); -PROVIDE ( rom_txiq_set_reg = 0x40005154 ); -PROVIDE ( rom_tx_pwctrl_bg_init = 0x4000662c ); -PROVIDE ( rom_txtone_linear_pwr = 0x40005290 ); -PROVIDE ( rom_wait_rfpll_cal_end = 0x400047a8 ); -PROVIDE ( rom_write_gain_mem = 0x4000348c ); -PROVIDE ( rom_write_rfpll_sdm = 0x40004740 ); -PROVIDE ( roundup2 = 0x4000ab7c ); -PROVIDE ( r_plf_funcs_p = 0x3ffb8360 ); -PROVIDE ( r_rf_rw_bt_init = 0x40054868 ); -PROVIDE ( r_rf_rw_init = 0x40054b0c ); -PROVIDE ( r_rf_rw_le_init = 0x400549d0 ); -PROVIDE ( r_rwble_activity_ongoing_check = 0x40054d8c ); -PROVIDE ( r_rwble_init = 0x40054bf4 ); -PROVIDE ( r_rwble_isr = 0x40054e08 ); -PROVIDE ( r_rwble_reset = 0x40054ce8 ); -PROVIDE ( r_rwble_sleep_check = 0x40054d78 ); -PROVIDE ( r_rwble_version = 0x40054dac ); -PROVIDE ( r_rwbt_init = 0x40055160 ); -PROVIDE ( r_rwbt_isr = 0x40055248 ); -PROVIDE ( r_rwbt_reset = 0x400551bc ); -PROVIDE ( r_rwbt_sleep_check = 0x4005577c ); -PROVIDE ( r_rwbt_sleep_enter = 0x400557a4 ); -PROVIDE ( r_rwbt_sleep_wakeup = 0x400557fc ); -PROVIDE ( r_rwbt_sleep_wakeup_end = 0x400558cc ); -PROVIDE ( r_rwbt_version = 0x4005520c ); -PROVIDE ( r_rwip_assert_err = 0x40055f88 ); -PROVIDE ( r_rwip_check_wakeup_boundary = 0x400558fc ); -PROVIDE ( r_rwip_ext_wakeup_enable = 0x40055f3c ); -PROVIDE ( r_rwip_init = 0x4005595c ); -PROVIDE ( r_rwip_pca_clock_dragging_only = 0x40055f48 ); -PROVIDE ( r_rwip_prevent_sleep_clear = 0x40055ec8 ); -PROVIDE ( r_rwip_prevent_sleep_set = 0x40055e64 ); -PROVIDE ( r_rwip_reset = 0x40055ab8 ); -PROVIDE ( r_rwip_schedule = 0x40055b38 ); -PROVIDE ( r_rwip_sleep = 0x40055b5c ); -PROVIDE ( r_rwip_sleep_enable = 0x40055f30 ); -PROVIDE ( r_rwip_version = 0x40055b20 ); -PROVIDE ( r_rwip_wakeup = 0x40055dc4 ); -PROVIDE ( r_rwip_wakeup_delay_set = 0x40055e4c ); -PROVIDE ( r_rwip_wakeup_end = 0x40055e18 ); -PROVIDE ( r_rwip_wlcoex_set = 0x40055f60 ); -PROVIDE ( r_SHA_256 = 0x40013a90 ); -PROVIDE ( rtc_boot_control = 0x4000821c ); -PROVIDE ( rtc_get_reset_reason = 0x400081d4 ); -PROVIDE ( rtc_get_wakeup_cause = 0x400081f4 ); -PROVIDE ( rtc_select_apb_bridge = 0x40008288 ); -PROVIDE ( rwip_coex_cfg = 0x3ff9914c ); -PROVIDE ( rwip_priority = 0x3ff99159 ); -PROVIDE ( rwip_rf = 0x3ffbdb28 ); -PROVIDE ( rwip_rf_p_get = 0x400558f4 ); -PROVIDE ( r_XorKey = 0x400112c0 ); -PROVIDE ( sbrk = 0x400017f4 ); -PROVIDE ( _sbrk_r = 0x4000bce4 ); -PROVIDE ( __sccl = 0x4000c498 ); -PROVIDE ( __sclose = 0x400011b8 ); -PROVIDE ( SelectSpiFunction = 0x40061f84 ); -PROVIDE ( SelectSpiQIO = 0x40061ddc ); -PROVIDE ( SendMsg = 0x40009384 ); -PROVIDE ( send_packet = 0x40009340 ); -PROVIDE ( __seofread = 0x40001148 ); -PROVIDE ( setjmp = 0x40056268 ); -PROVIDE ( setlocale = 0x40059568 ); -PROVIDE ( _setlocale_r = 0x4005950c ); -PROVIDE ( set_rtc_memory_crc = 0x40008208 ); -PROVIDE ( SetSpiDrvs = 0x40061e78 ); -PROVIDE ( __sf_fake_stderr = 0x3ff96458 ); -PROVIDE ( __sf_fake_stdin = 0x3ff96498 ); -PROVIDE ( __sf_fake_stdout = 0x3ff96478 ); -PROVIDE ( __sflush_r = 0x400591e0 ); -PROVIDE ( __sfmoreglue = 0x40001dc8 ); -PROVIDE ( __sfp = 0x40001e90 ); -PROVIDE ( __sfp_lock_acquire = 0x40001e08 ); -PROVIDE ( __sfp_lock_release = 0x40001e14 ); -PROVIDE ( __sfputs_r = 0x40057790 ); -PROVIDE ( __sfvwrite_r = 0x4005893c ); -PROVIDE ( sha1_prf = 0x40060ae8 ); -PROVIDE ( sha1_vector = 0x40060b64 ); -PROVIDE ( sha256_prf = 0x40060d70 ); -PROVIDE ( sha256_vector = 0x40060e08 ); -PROVIDE ( sha_blk_bits = 0x3ff99290 ); -PROVIDE ( sha_blk_bits_bytes = 0x3ff99288 ); -PROVIDE ( sha_blk_hash_bytes = 0x3ff9928c ); -PROVIDE ( sig_matrix = 0x3ffae293 ); -PROVIDE ( __sinit = 0x40001e38 ); -PROVIDE ( __sinit_lock_acquire = 0x40001e20 ); -PROVIDE ( __sinit_lock_release = 0x40001e2c ); -PROVIDE ( sip_after_tx_complete = 0x4000b358 ); -PROVIDE ( sip_alloc_to_host_evt = 0x4000ab9c ); -PROVIDE ( sip_get_ptr = 0x4000b34c ); -PROVIDE ( sip_get_state = 0x4000ae2c ); -PROVIDE ( sip_init_attach = 0x4000ae58 ); -PROVIDE ( sip_install_rx_ctrl_cb = 0x4000ae10 ); -PROVIDE ( sip_install_rx_data_cb = 0x4000ae20 ); -PROVIDE ( sip_is_active = 0x4000b3c0 ); -PROVIDE ( sip_post_init = 0x4000aed8 ); -PROVIDE ( sip_reclaim_from_host_cmd = 0x4000adbc ); -PROVIDE ( sip_reclaim_tx_data_pkt = 0x4000ad5c ); -PROVIDE ( sip_send = 0x4000af54 ); -PROVIDE ( sip_to_host_chain_append = 0x4000aef8 ); -PROVIDE ( sip_to_host_evt_send_done = 0x4000ac04 ); -PROVIDE ( slc_add_credits = 0x4000baf4 ); -PROVIDE ( slc_enable = 0x4000b64c ); -PROVIDE ( slc_from_host_chain_fetch = 0x4000b7e8 ); -PROVIDE ( slc_from_host_chain_recycle = 0x4000bb10 ); -PROVIDE ( slc_has_pkt_to_host = 0x4000b5fc ); -PROVIDE ( slc_init_attach = 0x4000b918 ); -PROVIDE ( slc_init_credit = 0x4000badc ); -PROVIDE ( slc_reattach = 0x4000b62c ); -PROVIDE ( slc_send_to_host_chain = 0x4000b6a0 ); -PROVIDE ( slc_set_host_io_max_window = 0x4000b89c ); -PROVIDE ( slc_to_host_chain_recycle = 0x4000b758 ); -PROVIDE ( __smakebuf_r = 0x40059108 ); -PROVIDE ( software_reset = 0x4000824c ); -PROVIDE ( software_reset_cpu = 0x40008264 ); -PROVIDE ( specialModP256 = 0x4001600c ); -PROVIDE ( spi_cache_sram_init = 0x400626e4 ); -PROVIDE ( SPIClkConfig = 0x40062bc8 ); -PROVIDE ( SPI_Common_Command = 0x4006246c ); -PROVIDE ( spi_dummy_len_fix = 0x40061d90 ); -PROVIDE ( SPI_Encrypt_Write = 0x40062e78 ); -PROVIDE ( SPIEraseArea = 0x400631ac ); -PROVIDE ( SPIEraseBlock = 0x40062c4c ); -PROVIDE ( SPIEraseChip = 0x40062c14 ); -PROVIDE ( SPIEraseSector = 0x40062ccc ); -PROVIDE ( spi_flash_attach = 0x40062a6c ); -/* NB: SPIUnlock @ 0x400628b0 has been replaced with an updated - version in the "spi_flash" component */ -PROVIDE ( SPILock = 0x400628f0 ); -PROVIDE ( SPIMasterReadModeCnfig = 0x40062b64 ); -PROVIDE ( spi_modes = 0x3ff99270 ); -PROVIDE ( SPIParamCfg = 0x40063238 ); -PROVIDE ( SPI_Prepare_Encrypt_Data = 0x40062e1c ); -PROVIDE ( SPIRead = 0x40062ed8 ); -PROVIDE ( SPIReadModeCnfig = 0x40062944 ); -/* This is static function, but can be used, not generated by script*/ -PROVIDE ( SPI_read_status = 0x4006226c ); -/* This is static function, but can be used, not generated by script*/ -PROVIDE ( SPI_read_status_high = 0x40062448 ); -PROVIDE ( SPI_user_command_read = 0x400621b0 ); -PROVIDE ( SPI_flashchip_data = 0x3ffae270 ); -PROVIDE ( SPIWrite = 0x40062d50 ); -/* This is static function, but can be used, not generated by script*/ -PROVIDE ( SPI_write_enable = 0x40062320 ); -PROVIDE ( SPI_Write_Encrypt_Disable = 0x40062e60 ); -PROVIDE ( SPI_Write_Encrypt_Enable = 0x40062df4 ); -/* This is static function, but can be used, not generated by script*/ -PROVIDE ( SPI_write_status = 0x400622f0 ); -PROVIDE ( srand = 0x40001004 ); -PROVIDE ( __sread = 0x40001118 ); -PROVIDE ( __srefill_r = 0x400593d4 ); -PROVIDE ( __sseek = 0x40001184 ); -PROVIDE ( __ssprint_r = 0x40056ff8 ); -PROVIDE ( __ssputs_r = 0x40056f2c ); -PROVIDE ( __ssrefill_r = 0x40057fec ); -PROVIDE ( __stack = 0x3ffe3f20 ); -PROVIDE ( __stack_app = 0x3ffe7e30 ); -PROVIDE ( _stack_sentry = 0x3ffe1320 ); -PROVIDE ( _stack_sentry_app = 0x3ffe5230 ); -PROVIDE ( _start = 0x40000704 ); -PROVIDE ( start_tb_console = 0x4005a980 ); -PROVIDE ( _stat_r = 0x4000bcb4 ); -PROVIDE ( _stext = 0x40000560 ); -PROVIDE ( strcasecmp = 0x400011cc ); -PROVIDE ( strcasestr = 0x40001210 ); -PROVIDE ( strcat = 0x4000c518 ); -PROVIDE ( strchr = 0x4000c53c ); -PROVIDE ( strcmp = 0x40001274 ); -PROVIDE ( strcoll = 0x40001398 ); -PROVIDE ( strcpy = 0x400013ac ); -PROVIDE ( strcspn = 0x4000c558 ); -PROVIDE ( strdup = 0x4000143c ); -PROVIDE ( _strdup_r = 0x40001450 ); -PROVIDE ( strftime = 0x40059ab4 ); -PROVIDE ( strlcat = 0x40001470 ); -PROVIDE ( strlcpy = 0x4000c584 ); -PROVIDE ( strlen = 0x400014c0 ); -PROVIDE ( strlwr = 0x40001524 ); -PROVIDE ( strncasecmp = 0x40001550 ); -PROVIDE ( strncat = 0x4000c5c4 ); -PROVIDE ( strncmp = 0x4000c5f4 ); -PROVIDE ( strncpy = 0x400015d4 ); -PROVIDE ( strndup = 0x400016b0 ); -PROVIDE ( _strndup_r = 0x400016c4 ); -PROVIDE ( strnlen = 0x4000c628 ); -PROVIDE ( strrchr = 0x40001708 ); -PROVIDE ( strsep = 0x40001734 ); -PROVIDE ( strspn = 0x4000c648 ); -PROVIDE ( strstr = 0x4000c674 ); -PROVIDE ( __strtok_r = 0x4000c6a8 ); -PROVIDE ( strtok_r = 0x4000c70c ); -PROVIDE ( strtol = 0x4005681c ); -PROVIDE ( _strtol_r = 0x40056714 ); -PROVIDE ( strtoul = 0x4005692c ); -PROVIDE ( _strtoul_r = 0x40056834 ); -PROVIDE ( strupr = 0x4000174c ); -PROVIDE ( __subdf3 = 0x400026e4 ); -PROVIDE ( __submore = 0x40058f3c ); -PROVIDE ( __subsf3 = 0x400021d0 ); -PROVIDE ( SubtractBigHex256 = 0x40015bcc ); -PROVIDE ( SubtractBigHexMod256 = 0x40015e8c ); -PROVIDE ( SubtractBigHexUint32_256 = 0x40015f8c ); -PROVIDE ( SubtractFromSelfBigHex256 = 0x40015c20 ); -PROVIDE ( SubtractFromSelfBigHexSign256 = 0x40015dc8 ); -PROVIDE ( __subvdi3 = 0x40002d20 ); -PROVIDE ( __subvsi3 = 0x40002cf8 ); -PROVIDE ( _sungetc_r = 0x40057f6c ); -PROVIDE ( __swbuf = 0x40058cb4 ); -PROVIDE ( __swbuf_r = 0x40058bec ); -PROVIDE ( __swrite = 0x40001150 ); -PROVIDE ( __swsetup_r = 0x40058cc8 ); -PROVIDE ( sw_to_hw = 0x3ffb8d40 ); -PROVIDE ( _SyscallException = 0x400007cf ); -PROVIDE ( syscall_table_ptr_app = 0x3ffae020 ); -PROVIDE ( syscall_table_ptr_pro = 0x3ffae024 ); -PROVIDE ( _system_r = 0x4000bc10 ); -PROVIDE ( tdefl_compress = 0x400600bc ); -PROVIDE ( tdefl_compress_buffer = 0x400607f4 ); -PROVIDE ( tdefl_compress_mem_to_mem = 0x40060900 ); -PROVIDE ( tdefl_compress_mem_to_output = 0x400608e0 ); -PROVIDE ( tdefl_get_adler32 = 0x400608d8 ); -PROVIDE ( tdefl_get_prev_return_status = 0x400608d0 ); -PROVIDE ( tdefl_init = 0x40060810 ); -PROVIDE ( tdefl_write_image_to_png_file_in_memory = 0x4006091c ); -PROVIDE ( tdefl_write_image_to_png_file_in_memory_ex = 0x40060910 ); -PROVIDE ( time = 0x40001844 ); -PROVIDE ( __time_load_locale = 0x4000183c ); -PROVIDE ( times = 0x40001808 ); -PROVIDE ( _times_r = 0x4000bc40 ); -PROVIDE ( _timezone = 0x3ffae0a0 ); -PROVIDE ( tinfl_decompress = 0x4005ef30 ); -PROVIDE ( tinfl_decompress_mem_to_callback = 0x40060090 ); -PROVIDE ( tinfl_decompress_mem_to_mem = 0x40060050 ); -PROVIDE ( toascii = 0x4000c720 ); -PROVIDE ( tolower = 0x40001868 ); -PROVIDE ( toupper = 0x40001884 ); -PROVIDE ( __truncdfsf2 = 0x40002b90 ); -PROVIDE ( __tzcalc_limits = 0x400018a0 ); -PROVIDE ( __tz_lock = 0x40001a04 ); -PROVIDE ( _tzname = 0x3ffae030 ); -PROVIDE ( tzset = 0x40001a1c ); -PROVIDE ( _tzset_r = 0x40001a28 ); -PROVIDE ( __tz_unlock = 0x40001a10 ); -PROVIDE ( uartAttach = 0x40008fd0 ); -PROVIDE ( uart_baudrate_detect = 0x40009034 ); -PROVIDE ( uart_buff_switch = 0x400093c0 ); -PROVIDE ( UartConnCheck = 0x40008738 ); -PROVIDE ( UartConnectProc = 0x40008a04 ); -PROVIDE ( UartDev = 0x3ffe019c ); -PROVIDE ( uart_div_modify = 0x400090cc ); -PROVIDE ( UartDwnLdProc = 0x40008ce8 ); -PROVIDE ( UartGetCmdLn = 0x40009564 ); -PROVIDE ( Uart_Init = 0x40009120 ); -PROVIDE ( UartRegReadProc = 0x40008a58 ); -PROVIDE ( UartRegWriteProc = 0x40008a14 ); -PROVIDE ( uart_rx_intr_handler = 0x40008f4c ); -PROVIDE ( uart_rx_one_char = 0x400092d0 ); -PROVIDE ( uart_rx_one_char_block = 0x400092a4 ); -PROVIDE ( uart_rx_readbuff = 0x40009394 ); -PROVIDE ( UartRxString = 0x400092fc ); -PROVIDE ( UartSetBaudProc = 0x40008aac ); -PROVIDE ( UartSpiAttachProc = 0x40008a6c ); -PROVIDE ( UartSpiReadProc = 0x40008a80 ); -PROVIDE ( uart_tx_flush = 0x40009258 ); -/*PROVIDE ( uart_tx_one_char = 0x40009200 );*/ -/* Note: remapping this to uart_tx_one_char2, to keep consistency */ -PROVIDE ( uart_tx_one_char = 0x4000922c ); -PROVIDE ( uart_tx_one_char2 = 0x4000922c ); -PROVIDE ( uart_tx_switch = 0x40009028 ); -PROVIDE ( uart_tx_wait_idle = 0x40009278 ); -PROVIDE ( __ucmpdi2 = 0x40063840 ); -PROVIDE ( __udivdi3 = 0x4000cff8 ); -PROVIDE ( __udivmoddi4 = 0x40064ab0 ); -PROVIDE ( __udivsi3 = 0x4000c7c8 ); -PROVIDE ( __udiv_w_sdiv = 0x40064aa8 ); -PROVIDE ( __umoddi3 = 0x4000d280 ); -PROVIDE ( __umodsi3 = 0x4000c7d0 ); -PROVIDE ( __umulsidi3 = 0x4000c7d8 ); -PROVIDE ( ungetc = 0x400590f4 ); -PROVIDE ( _ungetc_r = 0x40058fa0 ); -PROVIDE ( _unlink_r = 0x4000bc84 ); -PROVIDE ( __unorddf2 = 0x400637f4 ); -PROVIDE ( __unordsf2 = 0x40063478 ); -PROVIDE ( user_code_start = 0x3ffe0400 ); -PROVIDE ( _UserExceptionVector = 0x40000340 ); -PROVIDE ( utoa = 0x40056258 ); -PROVIDE ( __utoa = 0x400561f0 ); -PROVIDE ( VerifyFlashMd5Proc = 0x40008c44 ); -PROVIDE ( veryBigHexP256 = 0x3ff9736c ); -PROVIDE ( wcrtomb = 0x40058920 ); -PROVIDE ( _wcrtomb_r = 0x400588d8 ); -PROVIDE ( __wctomb = 0x3ff96540 ); -PROVIDE ( _wctomb_r = 0x40058f14 ); -PROVIDE ( _WindowOverflow12 = 0x40000100 ); -PROVIDE ( _WindowOverflow4 = 0x40000000 ); -PROVIDE ( _WindowOverflow8 = 0x40000080 ); -PROVIDE ( _WindowUnderflow12 = 0x40000140 ); -PROVIDE ( _WindowUnderflow4 = 0x40000040 ); -PROVIDE ( _WindowUnderflow8 = 0x400000c0 ); -PROVIDE ( write = 0x4000181c ); -PROVIDE ( _write_r = 0x4000bd70 ); -PROVIDE ( xthal_bcopy = 0x4000c098 ); -PROVIDE ( xthal_copy123 = 0x4000c124 ); -PROVIDE ( xthal_get_ccompare = 0x4000c078 ); -PROVIDE ( xthal_get_ccount = 0x4000c050 ); -PROVIDE ( xthal_get_interrupt = 0x4000c1e4 ); -PROVIDE ( xthal_get_intread = 0x4000c1e4 ); -PROVIDE ( Xthal_intlevel = 0x3ff9c2b4 ); -PROVIDE ( xthal_memcpy = 0x4000c0bc ); -PROVIDE ( xthal_set_ccompare = 0x4000c058 ); -PROVIDE ( xthal_set_intclear = 0x4000c1ec ); -PROVIDE ( _xtos_set_intlevel = 0x4000bfdc ); -PROVIDE ( _xtos_alloca_handler = 0x40000010 ); -PROVIDE ( _xtos_cause3_handler = 0x40000dd8 ); -PROVIDE ( _xtos_c_handler_table = 0x3ffe0548 ); -PROVIDE ( _xtos_c_wrapper_handler = 0x40000de8 ); -PROVIDE ( _xtos_enabled = 0x3ffe0650 ); -PROVIDE ( _xtos_exc_handler_table = 0x3ffe0448 ); -PROVIDE ( _xtos_interrupt_mask_table = 0x3ffe0758 ); -PROVIDE ( _xtos_interrupt_table = 0x3ffe0658 ); -PROVIDE ( _xtos_ints_off = 0x4000bfac ); -PROVIDE ( _xtos_ints_on = 0x4000bf88 ); -PROVIDE ( _xtos_intstruct = 0x3ffe0650 ); -PROVIDE ( _xtos_l1int_handler = 0x40000814 ); -PROVIDE ( _xtos_p_none = 0x4000bfd4 ); -PROVIDE ( _xtos_restore_intlevel = 0x40000928 ); -PROVIDE ( _xtos_return_from_exc = 0x4000c034 ); -PROVIDE ( _xtos_set_exception_handler = 0x4000074c ); -PROVIDE ( _xtos_set_interrupt_handler = 0x4000bf78 ); -PROVIDE ( _xtos_set_interrupt_handler_arg = 0x4000bf34 ); -PROVIDE ( _xtos_set_min_intlevel = 0x4000bff8 ); -PROVIDE ( _xtos_set_vpri = 0x40000934 ); -PROVIDE ( _xtos_syscall_handler = 0x40000790 ); -PROVIDE ( _xtos_unhandled_exception = 0x4000c024 ); -PROVIDE ( _xtos_unhandled_interrupt = 0x4000c01c ); -PROVIDE ( _xtos_vpri_enabled = 0x3ffe0654 ); -PROVIDE ( ets_intr_count = 0x3ffe03fc ); -PROVIDE ( ets_intr_lock = 0x400067b0 ); -PROVIDE ( ets_intr_unlock = 0x400067c4 ); -PROVIDE ( ets_isr_attach = 0x400067ec ); -PROVIDE ( ets_isr_mask = 0x400067fc ); -PROVIDE ( ets_isr_unmask = 0x40006808 ); -/* Following are static data, but can be used, not generated by script <<<<< btdm data */ -PROVIDE ( ld_acl_env = 0x3ffb8258 ); -PROVIDE ( ld_active_ch_map = 0x3ffb8334 ); -PROVIDE ( ld_bcst_acl_env = 0x3ffb8274 ); -PROVIDE ( ld_csb_rx_env = 0x3ffb8278 ); -PROVIDE ( ld_csb_tx_env = 0x3ffb827c ); -PROVIDE ( ld_env = 0x3ffb9510 ); -PROVIDE ( ld_fm_env = 0x3ffb8284 ); -PROVIDE ( ld_inq_env = 0x3ffb82e4 ); -PROVIDE ( ld_iscan_env = 0x3ffb82e8 ); -PROVIDE ( ld_page_env = 0x3ffb82f0 ); -PROVIDE ( ld_pca_env = 0x3ffb82f4 ); -PROVIDE ( ld_pscan_env = 0x3ffb8308 ); -PROVIDE ( ld_sched_env = 0x3ffb830c ); -PROVIDE ( ld_sched_params = 0x3ffb96c0 ); -PROVIDE ( ld_sco_env = 0x3ffb824c ); -PROVIDE ( ld_sscan_env = 0x3ffb832c ); -PROVIDE ( ld_strain_env = 0x3ffb8330 ); - - -PROVIDE ( esp_rom_spiflash_write_encrypted = 0x40062e78 ); -/* Above are static data, but can be used, not generated by script >>>>> btdm data */ diff --git a/flasher_stub/ld/rom_32c2.ld b/flasher_stub/ld/rom_32c2.ld deleted file mode 100755 index ae1136497..000000000 --- a/flasher_stub/ld/rom_32c2.ld +++ /dev/null @@ -1,2960 +0,0 @@ -/* ROM function interface esp32c2.rom.ld for esp32c2 - * - * - * Generated from ./interface-esp8684.yml md5sum 6c4d0f3a9f2d0c93477024a1a8f13746 - * - * Compatible with ROM where ECO version equal or greater to 0. - * - * THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT. - */ - -/*************************************** - Group common - ***************************************/ - -PROVIDE ( SPIWrite = esp_rom_spiflash_write); -PROVIDE ( SPI_read_status_high = esp_rom_spiflash_read_statushigh); -PROVIDE ( SPI_write_status = esp_rom_spiflash_write_status); -PROVIDE ( SPIRead = esp_rom_spiflash_read); -PROVIDE ( SPIParamCfg = esp_rom_spiflash_config_param); -PROVIDE ( SPIEraseChip = esp_rom_spiflash_erase_chip); -PROVIDE ( SPIEraseSector = esp_rom_spiflash_erase_sector); -PROVIDE ( SPIEraseBlock = esp_rom_spiflash_erase_block); -PROVIDE ( SPI_Write_Encrypt_Enable = esp_rom_spiflash_write_encrypted_enable); -PROVIDE ( SPI_Write_Encrypt_Disable = esp_rom_spiflash_write_encrypted_disable); -PROVIDE ( SPI_Encrypt_Write = esp_rom_spiflash_write_encrypted); - -PROVIDE ( mbedtls_md5_starts_ret = mbedtls_md5_starts_ret ); -PROVIDE ( mbedtls_md5_update_ret = mbedtls_md5_update_ret ); -PROVIDE ( mbedtls_md5_finish_ret = mbedtls_md5_finish_ret ); - -/*************************************** - Group common - ***************************************/ - -/* Functions */ -rtc_get_reset_reason = 0x40000018; -analog_super_wdt_reset_happened = 0x4000001c; -rtc_get_wakeup_cause = 0x40000020; -rtc_select_apb_bridge = 0x40000024; -rtc_unhold_all_pads = 0x40000028; -ets_is_print_boot = 0x4000002c; -ets_vprintf = 0x40000030; -ets_printf = 0x40000034; -ets_install_putc1 = 0x40000038; -ets_install_uart_printf = 0x4000003c; -ets_install_putc2 = 0x40000040; -PROVIDE( ets_delay_us = 0x40000044 ); -ets_get_stack_info = 0x40000048; -ets_install_lock = 0x4000004c; -UartRxString = 0x40000050; -UartGetCmdLn = 0x40000054; -uart_tx_one_char = 0x40000058; -uart_tx_one_char2 = 0x4000005c; -uart_rx_one_char = 0x40000060; -uart_rx_one_char_block = 0x40000064; -uart_rx_readbuff = 0x40000068; -uartAttach = 0x4000006c; -uart_tx_flush = 0x40000070; -uart_tx_wait_idle = 0x40000074; -uart_div_modify = 0x40000078; -ets_write_char_uart = 0x4000007c; -uart_tx_switch = 0x40000080; -multofup = 0x40000084; -software_reset = 0x40000088; -software_reset_cpu = 0x4000008c; -assist_debug_clock_enable = 0x40000090; -assist_debug_record_enable = 0x40000094; -clear_super_wdt_reset_flag = 0x40000098; -disable_default_watchdog = 0x4000009c; -send_packet = 0x400000a0; -recv_packet = 0x400000a4; -GetUartDevice = 0x400000a8; -UartDwnLdProc = 0x400000ac; -GetSecurityInfoProc = 0x400000b0; -Uart_Init = 0x400000b4; -ets_set_user_start = 0x400000b8; -/* Data (.data, .bss, .rodata) */ -ets_rom_layout_p = 0x3ff4fffc; -ets_ops_table_ptr = 0x3fcdfffc; - - -/*************************************** - Group miniz - ***************************************/ - -/* Functions */ -mz_adler32 = 0x400000bc; -mz_free = 0x400000c0; -tdefl_compress = 0x400000c4; -tdefl_compress_buffer = 0x400000c8; -tdefl_compress_mem_to_heap = 0x400000cc; -tdefl_compress_mem_to_mem = 0x400000d0; -tdefl_compress_mem_to_output = 0x400000d4; -tdefl_get_adler32 = 0x400000d8; -tdefl_get_prev_return_status = 0x400000dc; -tdefl_init = 0x400000e0; -tdefl_write_image_to_png_file_in_memory = 0x400000e4; -tdefl_write_image_to_png_file_in_memory_ex = 0x400000e8; -tinfl_decompress = 0x400000ec; -tinfl_decompress_mem_to_callback = 0x400000f0; -tinfl_decompress_mem_to_heap = 0x400000f4; -tinfl_decompress_mem_to_mem = 0x400000f8; - - -/*************************************** - Group spiflash_legacy - ***************************************/ - -/* Functions */ -PROVIDE( esp_rom_spiflash_wait_idle = 0x400000fc ); -PROVIDE( esp_rom_spiflash_write_encrypted = 0x40000100 ); -PROVIDE( esp_rom_spiflash_write_encrypted_dest = 0x40000104 ); -PROVIDE( esp_rom_spiflash_write_encrypted_enable = 0x40000108 ); -PROVIDE( esp_rom_spiflash_write_encrypted_disable = 0x4000010c ); -PROVIDE( esp_rom_spiflash_erase_chip = 0x40000110 ); -PROVIDE( _esp_rom_spiflash_erase_sector = 0x40000114 ); -PROVIDE( _esp_rom_spiflash_erase_block = 0x40000118 ); -PROVIDE( _esp_rom_spiflash_write = 0x4000011c ); -PROVIDE( _esp_rom_spiflash_read = 0x40000120 ); -PROVIDE( _esp_rom_spiflash_unlock = 0x40000124 ); -PROVIDE( _SPIEraseArea = 0x40000128 ); -PROVIDE( _SPI_write_enable = 0x4000012c ); -PROVIDE( esp_rom_spiflash_erase_sector = 0x40000130 ); -PROVIDE( esp_rom_spiflash_erase_block = 0x40000134 ); -PROVIDE( esp_rom_spiflash_write = 0x40000138 ); -PROVIDE( esp_rom_spiflash_read = 0x4000013c ); -PROVIDE( esp_rom_spiflash_unlock = 0x40000140 ); -PROVIDE( SPIEraseArea = 0x40000144 ); -PROVIDE( SPI_write_enable = 0x40000148 ); -PROVIDE( esp_rom_spiflash_config_param = 0x4000014c ); -PROVIDE( esp_rom_spiflash_read_user_cmd = 0x40000150 ); -PROVIDE( esp_rom_spiflash_select_qio_pins = 0x40000154 ); -PROVIDE( esp_rom_spi_flash_auto_sus_res = 0x40000158 ); -PROVIDE( esp_rom_spi_flash_send_resume = 0x4000015c ); -PROVIDE( esp_rom_spi_flash_update_id = 0x40000160 ); -PROVIDE( esp_rom_spiflash_config_clk = 0x40000164 ); -PROVIDE( esp_rom_spiflash_config_readmode = 0x40000168 ); -PROVIDE( esp_rom_spiflash_read_status = 0x4000016c ); -PROVIDE( esp_rom_spiflash_read_statushigh = 0x40000170 ); -PROVIDE( esp_rom_spiflash_write_status = 0x40000174 ); -PROVIDE( spi_flash_attach = 0x40000178 ); -PROVIDE( spi_flash_get_chip_size = 0x4000017c ); -PROVIDE( spi_flash_guard_set = 0x40000180 ); -PROVIDE( spi_flash_guard_get = 0x40000184 ); -PROVIDE( spi_flash_read_encrypted = 0x40000188 ); -PROVIDE( spi_flash_mmap_os_func_set = 0x4000018c ); -PROVIDE( spi_flash_mmap_page_num_init = 0x40000190 ); -PROVIDE( spi_flash_mmap = 0x40000194 ); -PROVIDE( spi_flash_mmap_pages = 0x40000198 ); -PROVIDE( spi_flash_munmap = 0x4000019c ); -PROVIDE( spi_flash_mmap_dump = 0x400001a0 ); -PROVIDE( spi_flash_check_and_flush_cache = 0x400001a4 ); -PROVIDE( spi_flash_mmap_get_free_pages = 0x400001a8 ); -PROVIDE( spi_flash_cache2phys = 0x400001ac ); -PROVIDE( spi_flash_phys2cache = 0x400001b0 ); -PROVIDE( spi_flash_disable_cache = 0x400001b4 ); -PROVIDE( spi_flash_restore_cache = 0x400001b8 ); -PROVIDE( spi_flash_cache_enabled = 0x400001bc ); -PROVIDE( spi_flash_enable_cache = 0x400001c0 ); -PROVIDE( spi_cache_mode_switch = 0x400001c4 ); -PROVIDE( spi_common_set_dummy_output = 0x400001c8 ); -PROVIDE( spi_common_set_flash_cs_timing = 0x400001cc ); -PROVIDE( esp_rom_spi_set_address_bit_len = 0x400001d0 ); -PROVIDE( esp_enable_cache_flash_wrap = 0x400001d4 ); -PROVIDE( SPILock = 0x400001d8 ); -PROVIDE( SPIMasterReadModeCnfig = 0x400001dc ); -PROVIDE( SPI_Common_Command = 0x400001e0 ); -PROVIDE( SPI_WakeUp = 0x400001e4 ); -PROVIDE( SPI_block_erase = 0x400001e8 ); -PROVIDE( SPI_chip_erase = 0x400001ec ); -PROVIDE( SPI_init = 0x400001f0 ); -PROVIDE( SPI_page_program = 0x400001f4 ); -PROVIDE( SPI_read_data = 0x400001f8 ); -PROVIDE( SPI_sector_erase = 0x400001fc ); -PROVIDE( SelectSpiFunction = 0x40000200 ); -PROVIDE( SetSpiDrvs = 0x40000204 ); -PROVIDE( Wait_SPI_Idle = 0x40000208 ); -PROVIDE( spi_dummy_len_fix = 0x4000020c ); -PROVIDE( Disable_QMode = 0x40000210 ); -PROVIDE( Enable_QMode = 0x40000214 ); -/* Data (.data, .bss, .rodata) */ -PROVIDE( rom_spiflash_legacy_funcs = 0x3fcdfff4 ); -PROVIDE( rom_spiflash_legacy_data = 0x3fcdfff0 ); -PROVIDE( g_flash_guard_ops = 0x3fcdfff8 ); - - -/*************************************** - Group hal_soc - ***************************************/ - -/* Functions */ -PROVIDE( spi_flash_hal_poll_cmd_done = 0x40000218 ); -PROVIDE( spi_flash_hal_device_config = 0x4000021c ); -PROVIDE( spi_flash_hal_configure_host_io_mode = 0x40000220 ); -PROVIDE( spi_flash_hal_common_command = 0x40000224 ); -PROVIDE( spi_flash_hal_read = 0x40000228 ); -PROVIDE( spi_flash_hal_erase_chip = 0x4000022c ); -PROVIDE( spi_flash_hal_erase_sector = 0x40000230 ); -PROVIDE( spi_flash_hal_erase_block = 0x40000234 ); -PROVIDE( spi_flash_hal_program_page = 0x40000238 ); -PROVIDE( spi_flash_hal_set_write_protect = 0x4000023c ); -PROVIDE( spi_flash_hal_host_idle = 0x40000240 ); -PROVIDE( spi_flash_hal_check_status = 0x40000244 ); -PROVIDE( spi_flash_hal_setup_read_suspend = 0x40000248 ); -PROVIDE( spi_flash_hal_setup_auto_suspend_mode = 0x4000024c ); -PROVIDE( spi_flash_hal_setup_auto_resume_mode = 0x40000250 ); -PROVIDE( spi_flash_hal_disable_auto_suspend_mode = 0x40000254 ); -PROVIDE( spi_flash_hal_disable_auto_resume_mode = 0x40000258 ); -PROVIDE( spi_flash_hal_resume = 0x4000025c ); -PROVIDE( spi_flash_hal_suspend = 0x40000260 ); -PROVIDE( spi_flash_encryption_hal_enable = 0x40000264 ); -PROVIDE( spi_flash_encryption_hal_disable = 0x40000268 ); -PROVIDE( spi_flash_encryption_hal_prepare = 0x4000026c ); -PROVIDE( spi_flash_encryption_hal_done = 0x40000270 ); -PROVIDE( spi_flash_encryption_hal_destroy = 0x40000274 ); -PROVIDE( spi_flash_encryption_hal_check = 0x40000278 ); -PROVIDE( wdt_hal_init = 0x4000027c ); -PROVIDE( wdt_hal_deinit = 0x40000280 ); -PROVIDE( wdt_hal_config_stage = 0x40000284 ); -PROVIDE( wdt_hal_write_protect_disable = 0x40000288 ); -PROVIDE( wdt_hal_write_protect_enable = 0x4000028c ); -PROVIDE( wdt_hal_enable = 0x40000290 ); -PROVIDE( wdt_hal_disable = 0x40000294 ); -PROVIDE( wdt_hal_handle_intr = 0x40000298 ); -PROVIDE( wdt_hal_feed = 0x4000029c ); -PROVIDE( wdt_hal_set_flashboot_en = 0x400002a0 ); -PROVIDE( wdt_hal_is_enabled = 0x400002a4 ); -PROVIDE( systimer_hal_init = 0x400002a8 ); -PROVIDE( systimer_hal_get_counter_value = 0x400002ac ); -PROVIDE( systimer_hal_get_time = 0x400002b0 ); -PROVIDE( systimer_hal_set_alarm_target = 0x400002b4 ); -PROVIDE( systimer_hal_set_alarm_period = 0x400002b8 ); -PROVIDE( systimer_hal_get_alarm_value = 0x400002bc ); -PROVIDE( systimer_hal_enable_alarm_int = 0x400002c0 ); -PROVIDE( systimer_hal_on_apb_freq_update = 0x400002c4 ); -PROVIDE( systimer_hal_counter_value_advance = 0x400002c8 ); -PROVIDE( systimer_hal_enable_counter = 0x400002cc ); -PROVIDE( systimer_hal_select_alarm_mode = 0x400002d0 ); -PROVIDE( systimer_hal_connect_alarm_counter = 0x400002d4 ); -PROVIDE( systimer_hal_counter_can_stall_by_cpu = 0x400002d8 ); - - -/*************************************** - Group heap - ***************************************/ - -/* Functions */ -PROVIDE( tlsf_create = 0x400002dc ); -PROVIDE( tlsf_create_with_pool = 0x400002e0 ); -PROVIDE( tlsf_get_pool = 0x400002e4 ); -PROVIDE( tlsf_add_pool = 0x400002e8 ); -PROVIDE( tlsf_remove_pool = 0x400002ec ); -PROVIDE( tlsf_malloc = 0x400002f0 ); -PROVIDE( tlsf_memalign = 0x400002f4 ); -PROVIDE( tlsf_memalign_offs = 0x400002f8 ); -PROVIDE( tlsf_realloc = 0x400002fc ); -PROVIDE( tlsf_free = 0x40000300 ); -PROVIDE( tlsf_block_size = 0x40000304 ); -PROVIDE( tlsf_size = 0x40000308 ); -PROVIDE( tlsf_align_size = 0x4000030c ); -PROVIDE( tlsf_block_size_min = 0x40000310 ); -PROVIDE( tlsf_block_size_max = 0x40000314 ); -PROVIDE( tlsf_pool_overhead = 0x40000318 ); -PROVIDE( tlsf_alloc_overhead = 0x4000031c ); -PROVIDE( tlsf_walk_pool = 0x40000320 ); -PROVIDE( tlsf_check = 0x40000324 ); -PROVIDE( tlsf_check_pool = 0x40000328 ); -PROVIDE( tlsf_poison_fill_pfunc_set = 0x4000032c ); -PROVIDE( multi_heap_get_block_address_impl = 0x40000330 ); -PROVIDE( multi_heap_get_allocated_size_impl = 0x40000334 ); -PROVIDE( multi_heap_register_impl = 0x40000338 ); -PROVIDE( multi_heap_set_lock = 0x4000033c ); -PROVIDE( multi_heap_mutex_init = 0x40000340 ); -PROVIDE( multi_heap_internal_lock = 0x40000344 ); -PROVIDE( multi_heap_internal_unlock = 0x40000348 ); -PROVIDE( multi_heap_get_first_block = 0x4000034c ); -PROVIDE( multi_heap_get_next_block = 0x40000350 ); -PROVIDE( multi_heap_is_free = 0x40000354 ); -PROVIDE( multi_heap_malloc_impl = 0x40000358 ); -PROVIDE( multi_heap_free_impl = 0x4000035c ); -PROVIDE( multi_heap_realloc_impl = 0x40000360 ); -PROVIDE( multi_heap_aligned_alloc_impl_offs = 0x40000364 ); -PROVIDE( multi_heap_aligned_alloc_impl = 0x40000368 ); -PROVIDE( multi_heap_check = 0x4000036c ); -PROVIDE( multi_heap_dump = 0x40000370 ); -PROVIDE( multi_heap_free_size_impl = 0x40000374 ); -PROVIDE( multi_heap_minimum_free_size_impl = 0x40000378 ); -PROVIDE( multi_heap_get_info_impl = 0x4000037c ); -/* Data (.data, .bss, .rodata) */ -PROVIDE( heap_tlsf_table_ptr = 0x3fcdffec ); - - -/*************************************** - Group spi_flash_chips - ***************************************/ - -/* Functions */ -PROVIDE( spi_flash_chip_generic_probe = 0x40000380 ); -PROVIDE( spi_flash_chip_generic_detect_size = 0x40000384 ); -PROVIDE( spi_flash_chip_generic_write = 0x40000388 ); -PROVIDE( spi_flash_chip_generic_write_encrypted = 0x4000038c ); -PROVIDE( spi_flash_chip_generic_set_write_protect = 0x40000390 ); -PROVIDE( spi_flash_common_write_status_16b_wrsr = 0x40000394 ); -PROVIDE( spi_flash_chip_generic_reset = 0x40000398 ); -PROVIDE( spi_flash_chip_generic_erase_chip = 0x4000039c ); -PROVIDE( spi_flash_chip_generic_erase_sector = 0x400003a0 ); -PROVIDE( spi_flash_chip_generic_erase_block = 0x400003a4 ); -PROVIDE( spi_flash_chip_generic_page_program = 0x400003a8 ); -PROVIDE( spi_flash_chip_generic_get_write_protect = 0x400003ac ); -PROVIDE( spi_flash_common_read_status_16b_rdsr_rdsr2 = 0x400003b0 ); -PROVIDE( spi_flash_chip_generic_read_reg = 0x400003b4 ); -PROVIDE( spi_flash_chip_generic_yield = 0x400003b8 ); -PROVIDE( spi_flash_generic_wait_host_idle = 0x400003bc ); -PROVIDE( spi_flash_chip_generic_wait_idle = 0x400003c0 ); -PROVIDE( spi_flash_chip_generic_config_host_io_mode = 0x400003c4 ); -PROVIDE( spi_flash_chip_generic_read = 0x400003c8 ); -PROVIDE( spi_flash_common_read_status_8b_rdsr2 = 0x400003cc ); -PROVIDE( spi_flash_chip_generic_get_io_mode = 0x400003d0 ); -PROVIDE( spi_flash_common_read_status_8b_rdsr = 0x400003d4 ); -PROVIDE( spi_flash_common_write_status_8b_wrsr = 0x400003d8 ); -PROVIDE( spi_flash_common_write_status_8b_wrsr2 = 0x400003dc ); -PROVIDE( spi_flash_common_set_io_mode = 0x400003e0 ); -PROVIDE( spi_flash_chip_generic_set_io_mode = 0x400003e4 ); -PROVIDE( spi_flash_chip_generic_read_unique_id = 0x400003e8 ); -PROVIDE( spi_flash_chip_generic_get_caps = 0x400003ec ); -PROVIDE( spi_flash_chip_generic_suspend_cmd_conf = 0x400003f0 ); -PROVIDE( spi_flash_chip_gd_get_io_mode = 0x400003f4 ); -PROVIDE( spi_flash_chip_gd_probe = 0x400003f8 ); -PROVIDE( spi_flash_chip_gd_set_io_mode = 0x400003fc ); -/* Data (.data, .bss, .rodata) */ -PROVIDE( spi_flash_chip_generic_config_data = 0x3fcdffe8 ); -PROVIDE( spi_flash_encryption = 0x3fcdffe4 ); - - -/*************************************** - Group memspi_host - ***************************************/ - -/* Functions */ -PROVIDE( memspi_host_read_id_hs = 0x40000400 ); -PROVIDE( memspi_host_read_status_hs = 0x40000404 ); -PROVIDE( memspi_host_flush_cache = 0x40000408 ); -PROVIDE( memspi_host_erase_chip = 0x4000040c ); -PROVIDE( memspi_host_erase_sector = 0x40000410 ); -PROVIDE( memspi_host_erase_block = 0x40000414 ); -PROVIDE( memspi_host_program_page = 0x40000418 ); -PROVIDE( memspi_host_read = 0x4000041c ); -PROVIDE( memspi_host_set_write_protect = 0x40000420 ); -PROVIDE( memspi_host_set_max_read_len = 0x40000424 ); -PROVIDE( memspi_host_read_data_slicer = 0x40000428 ); -PROVIDE( memspi_host_write_data_slicer = 0x4000042c ); - - -/*************************************** - Group esp_flash - ***************************************/ - -/* Functions */ -PROVIDE( esp_flash_chip_driver_initialized = 0x40000430 ); -PROVIDE( esp_flash_read_id = 0x40000434 ); -PROVIDE( esp_flash_get_size = 0x40000438 ); -PROVIDE( esp_flash_erase_chip = 0x4000043c ); -PROVIDE( esp_flash_erase_region = 0x40000440 ); -PROVIDE( esp_flash_get_chip_write_protect = 0x40000444 ); -PROVIDE( esp_flash_set_chip_write_protect = 0x40000448 ); -PROVIDE( esp_flash_get_protectable_regions = 0x4000044c ); -PROVIDE( esp_flash_get_protected_region = 0x40000450 ); -PROVIDE( esp_flash_set_protected_region = 0x40000454 ); -PROVIDE( esp_flash_read = 0x40000458 ); -PROVIDE( esp_flash_write = 0x4000045c ); -PROVIDE( esp_flash_write_encrypted = 0x40000460 ); -PROVIDE( esp_flash_read_encrypted = 0x40000464 ); -PROVIDE( esp_flash_get_io_mode = 0x40000468 ); -PROVIDE( esp_flash_set_io_mode = 0x4000046c ); -PROVIDE( spi_flash_boot_attach = 0x40000470 ); -PROVIDE( esp_flash_read_chip_id = 0x40000474 ); -PROVIDE( detect_spi_flash_chip = 0x40000478 ); -PROVIDE( esp_rom_spiflash_write_disable = 0x4000047c ); -PROVIDE( esp_flash_suspend_cmd_init = 0x40000480 ); -/* Data (.data, .bss, .rodata) */ -PROVIDE( esp_flash_default_chip = 0x3fcdffe0 ); -PROVIDE( esp_flash_api_funcs = 0x3fcdffdc ); - - -/*************************************** - Group cache - ***************************************/ - -/* Functions */ -PROVIDE( Cache_Get_ICache_Line_Size = 0x400006e0 ); -PROVIDE( Cache_Get_Mode = 0x400006e4 ); -PROVIDE( Cache_Address_Through_IBus = 0x400006e8 ); -PROVIDE( Cache_Address_Through_DBus = 0x400006ec ); -PROVIDE( Cache_Set_Default_Mode = 0x400006f0 ); -PROVIDE( Cache_Enable_Defalut_ICache_Mode = 0x400006f4 ); -PROVIDE( ROM_Boot_Cache_Init = 0x400006f8 ); -PROVIDE( MMU_Set_Page_Mode = 0x400006fc ); -PROVIDE( MMU_Get_Page_Mode = 0x40000700 ); -PROVIDE( Cache_Invalidate_ICache_Items = 0x40000704 ); -PROVIDE( Cache_Op_Addr = 0x40000708 ); -PROVIDE( Cache_Invalidate_Addr = 0x4000070c ); -PROVIDE( Cache_Invalidate_ICache_All = 0x40000710 ); -PROVIDE( Cache_Mask_All = 0x40000714 ); -PROVIDE( Cache_UnMask_Dram0 = 0x40000718 ); -PROVIDE( Cache_Disable_ICache = 0x4000071c ); -PROVIDE( Cache_Enable_ICache = 0x40000720 ); -PROVIDE( Cache_Suspend_ICache = 0x40000724 ); -PROVIDE( Cache_Resume_ICache = 0x40000728 ); -PROVIDE( Cache_Freeze_ICache_Enable = 0x4000072c ); -PROVIDE( Cache_Freeze_ICache_Disable = 0x40000730 ); -PROVIDE( Cache_Set_IDROM_MMU_Size = 0x40000734 ); -PROVIDE( Cache_Get_IROM_MMU_End = 0x40000738 ); -PROVIDE( Cache_Get_DROM_MMU_End = 0x4000073c ); -PROVIDE( Cache_Owner_Init = 0x40000740 ); -PROVIDE( Cache_Occupy_ICache_MEMORY = 0x40000744 ); -PROVIDE( Cache_MMU_Init = 0x40000748 ); -PROVIDE( Cache_Ibus_MMU_Set = 0x4000074c ); -PROVIDE( Cache_Dbus_MMU_Set = 0x40000750 ); -PROVIDE( Cache_Count_Flash_Pages = 0x40000754 ); -PROVIDE( Cache_Travel_Tag_Memory = 0x40000758 ); -PROVIDE( Cache_Get_Virtual_Addr = 0x4000075c ); -PROVIDE( Cache_Get_Memory_BaseAddr = 0x40000760 ); -PROVIDE( Cache_Get_Memory_Addr = 0x40000764 ); -PROVIDE( Cache_Get_Memory_value = 0x40000768 ); -/* Data (.data, .bss, .rodata) */ -PROVIDE( rom_cache_op_cb = 0x3fcdffd0 ); -PROVIDE( rom_cache_internal_table_ptr = 0x3fcdffcc ); - - -/*************************************** - Group clock - ***************************************/ - -/* Functions */ -ets_get_apb_freq = 0x4000076c; -ets_get_cpu_frequency = 0x40000770; -ets_update_cpu_frequency = 0x40000774; -ets_get_printf_channel = 0x40000778; -ets_get_xtal_div = 0x4000077c; -ets_set_xtal_div = 0x40000780; -ets_get_xtal_freq = 0x40000784; - - -/*************************************** - Group gpio - ***************************************/ - -/* Functions */ -gpio_input_get = 0x40000788; -gpio_matrix_in = 0x4000078c; -gpio_matrix_out = 0x40000790; -gpio_output_disable = 0x40000794; -gpio_output_enable = 0x40000798; -gpio_output_set = 0x4000079c; -gpio_pad_hold = 0x400007a0; -gpio_pad_input_disable = 0x400007a4; -gpio_pad_input_enable = 0x400007a8; -gpio_pad_pulldown = 0x400007ac; -gpio_pad_pullup = 0x400007b0; -gpio_pad_select_gpio = 0x400007b4; -gpio_pad_set_drv = 0x400007b8; -gpio_pad_unhold = 0x400007bc; -gpio_pin_wakeup_disable = 0x400007c0; -gpio_pin_wakeup_enable = 0x400007c4; -gpio_bypass_matrix_in = 0x400007c8; - - -/*************************************** - Group interrupts - ***************************************/ - -/* Functions */ -esprv_intc_int_set_priority = 0x400007cc; -esprv_intc_int_set_threshold = 0x400007d0; -esprv_intc_int_enable = 0x400007d4; -esprv_intc_int_disable = 0x400007d8; -esprv_intc_int_set_type = 0x400007dc; -PROVIDE( intr_handler_set = 0x400007e0 ); -intr_matrix_set = 0x400007e4; -ets_intr_lock = 0x400007e8; -ets_intr_unlock = 0x400007ec; -ets_isr_attach = 0x400007f0; -ets_isr_mask = 0x400007f4; -ets_isr_unmask = 0x400007f8; - - -/*************************************** - Group crypto - ***************************************/ - -/* Functions */ -crc32_le = 0x400007fc; -crc16_le = 0x40000800; -crc8_le = 0x40000804; -crc32_be = 0x40000808; -crc16_be = 0x4000080c; -crc8_be = 0x40000810; -esp_crc8 = 0x40000814; -ets_sha_enable = 0x40000818; -ets_sha_disable = 0x4000081c; -ets_sha_get_state = 0x40000820; -ets_sha_init = 0x40000824; -ets_sha_process = 0x40000828; -ets_sha_starts = 0x4000082c; -ets_sha_update = 0x40000830; -ets_sha_finish = 0x40000834; -ets_sha_clone = 0x40000838; -/* Data (.data, .bss, .rodata) */ -crc32_le_table_ptr = 0x3ff4fff8; -crc16_le_table_ptr = 0x3ff4fff4; -crc8_le_table_ptr = 0x3ff4fff0; -crc32_be_table_ptr = 0x3ff4ffec; -crc16_be_table_ptr = 0x3ff4ffe8; -crc8_be_table_ptr = 0x3ff4ffe4; - - -/*************************************** - Group efuse - ***************************************/ - -/* Functions */ -ets_efuse_read = 0x4000083c; -ets_efuse_program = 0x40000840; -ets_efuse_clear_program_registers = 0x40000844; -ets_efuse_write_key = 0x40000848; -ets_efuse_get_read_register_address = 0x4000084c; -ets_efuse_get_key_purpose = 0x40000850; -ets_efuse_key_block_unused = 0x40000854; -ets_efuse_find_unused_key_block = 0x40000858; -ets_efuse_rs_calculate = 0x4000085c; -ets_efuse_count_unused_key_blocks = 0x40000860; -ets_efuse_secure_boot_enabled = 0x40000864; -ets_efuse_secure_boot_aggressive_revoke_enabled = 0x40000868; -ets_efuse_cache_encryption_enabled = 0x4000086c; -ets_efuse_download_modes_disabled = 0x40000870; -ets_efuse_find_purpose = 0x40000874; -ets_efuse_force_send_resume = 0x40000878; -ets_efuse_get_flash_delay_us = 0x4000087c; -ets_efuse_get_mac = 0x40000880; -ets_efuse_get_uart_print_control = 0x40000884; -ets_efuse_direct_boot_mode_disabled = 0x40000888; -ets_efuse_security_download_modes_enabled = 0x4000088c; -ets_efuse_set_timing = 0x40000890; -ets_efuse_jtag_disabled = 0x40000894; - - -/*************************************** - Group secureboot - ***************************************/ - -/* Functions */ -ets_ecdsa_verify = 0x40000898; -ets_secure_boot_verify_bootloader_with_keys = 0x4000089c; -ets_secure_boot_verify_signature = 0x400008a0; -ets_secure_boot_read_key_digests = 0x400008a4; - - -/*************************************** - Group usb_uart - ***************************************/ - -/* Data (.data, .bss, .rodata) */ -g_uart_print = 0x3fcdffc9; -g_usb_print = 0x3fcdffc8; - - -/*************************************** - Group bluetooth - ***************************************/ - -/* Functions */ -ble_controller_rom_data_init = 0x40000aa8; -ble_osi_coex_funcs_register = 0x40000aac; -bt_rf_coex_cfg_get_default = 0x40000ab0; -bt_rf_coex_dft_pti_get_default = 0x40000ab4; -bt_rf_coex_hooks_p_set = 0x40000ab8; -r__os_mbuf_copypkthdr = 0x40000abc; -r__os_msys_find_pool = 0x40000ac0; -r_ble_controller_get_rom_compile_version = 0x40000ac4; -r_ble_hci_ram_hs_acl_tx = 0x40000ac8; -r_ble_hci_ram_hs_cmd_tx = 0x40000acc; -r_ble_hci_ram_ll_acl_tx = 0x40000ad0; -r_ble_hci_ram_ll_evt_tx = 0x40000ad4; -r_ble_hci_ram_reset = 0x40000ad8; -r_ble_hci_ram_set_acl_free_cb = 0x40000adc; -r_ble_hci_trans_acl_buf_alloc = 0x40000ae0; -r_ble_hci_trans_buf_alloc = 0x40000ae4; -r_ble_hci_trans_buf_free = 0x40000ae8; -r_ble_hci_trans_cfg_hs = 0x40000aec; -r_ble_hci_trans_cfg_ll = 0x40000af0; -r_ble_hci_trans_deinit = 0x40000af4; -r_ble_hci_trans_env_init = 0x40000af8; -r_ble_hci_trans_init = 0x40000afc; -r_ble_hci_uart_acl_tx = 0x40000b00; -r_ble_hci_uart_cmdevt_tx = 0x40000b04; -r_ble_hci_uart_config = 0x40000b08; -r_ble_hci_uart_free_pkt = 0x40000b0c; -r_ble_hci_uart_hs_acl_tx = 0x40000b10; -r_ble_hci_uart_hs_cmd_tx = 0x40000b14; -r_ble_hci_uart_ll_acl_tx = 0x40000b18; -r_ble_hci_uart_ll_evt_tx = 0x40000b1c; -r_ble_hci_uart_rx_acl = 0x40000b20; -r_ble_hci_uart_rx_char = 0x40000b24; -r_ble_hci_uart_rx_cmd = 0x40000b28; -r_ble_hci_uart_rx_evt = 0x40000b2c; -r_ble_hci_uart_rx_evt_cb = 0x40000b30; -r_ble_hci_uart_rx_le_evt = 0x40000b34; -r_ble_hci_uart_rx_pkt_type = 0x40000b38; -r_ble_hci_uart_rx_skip_acl = 0x40000b3c; -r_ble_hci_uart_rx_skip_cmd = 0x40000b40; -r_ble_hci_uart_rx_skip_evt = 0x40000b44; -r_ble_hci_uart_rx_sync_loss = 0x40000b48; -r_ble_hci_uart_set_acl_free_cb = 0x40000b4c; -r_ble_hci_uart_sync_lost = 0x40000b50; -r_ble_hci_uart_trans_reset = 0x40000b54; -r_ble_hci_uart_tx_char = 0x40000b58; -r_ble_hci_uart_tx_pkt_type = 0x40000b5c; -r_ble_hw_driver_deinit = 0x40000b60; -r_ble_hw_driver_env_init = 0x40000b64; -r_ble_hw_encrypt_block = 0x40000b68; -r_ble_hw_get_public_addr = 0x40000b6c; -r_ble_hw_get_static_addr = 0x40000b70; -r_ble_hw_periodiclist_add = 0x40000b74; -r_ble_hw_periodiclist_clear = 0x40000b78; -r_ble_hw_periodiclist_rmv = 0x40000b7c; -r_ble_hw_resolv_list_cur_entry = 0x40000b80; -r_ble_hw_resolv_list_get_cur_entry = 0x40000b84; -r_ble_hw_resolv_list_set = 0x40000b88; -r_ble_hw_rng_init = 0x40000b8c; -r_ble_hw_rng_start = 0x40000b90; -r_ble_hw_rng_stop = 0x40000b94; -r_ble_hw_rx_local_is_resolved = 0x40000b98; -r_ble_hw_rx_local_is_rpa = 0x40000b9c; -r_ble_hw_whitelist_add = 0x40000ba0; -r_ble_hw_whitelist_clear = 0x40000ba4; -r_ble_hw_whitelist_dev_num = 0x40000ba8; -r_ble_hw_whitelist_get_base = 0x40000bac; -r_ble_hw_whitelist_rmv = 0x40000bb0; -r_ble_hw_whitelist_search = 0x40000bb4; -r_ble_hw_whitelist_sort = 0x40000bb8; -r_ble_ll_acl_data_in = 0x40000bbc; -r_ble_ll_addr_is_id = 0x40000bc0; -r_ble_ll_addr_subtype = 0x40000bc4; -r_ble_ll_adv_active_chanset_clear = 0x40000bc8; -r_ble_ll_adv_active_chanset_is_pri = 0x40000bcc; -r_ble_ll_adv_active_chanset_is_sec = 0x40000bd0; -r_ble_ll_adv_active_chanset_set_pri = 0x40000bd4; -r_ble_ll_adv_active_chanset_set_sec = 0x40000bd8; -r_ble_ll_adv_aux_calculate = 0x40000bdc; -r_ble_ll_adv_aux_conn_rsp_pdu_make = 0x40000be0; -r_ble_ll_adv_aux_pdu_make = 0x40000be4; -r_ble_ll_adv_aux_scannable_pdu_make = 0x40000be8; -r_ble_ll_adv_aux_txed = 0x40000bec; -r_ble_ll_adv_can_chg_whitelist = 0x40000bf0; -r_ble_ll_adv_chk_rpa_timeout = 0x40000bf4; -r_ble_ll_adv_clear_all = 0x40000bf8; -r_ble_ll_adv_conn_req_rxd = 0x40000bfc; -r_ble_ll_adv_deinit = 0x40000c00; -r_ble_ll_adv_enabled = 0x40000c04; -r_ble_ll_adv_env_init = 0x40000c08; -r_ble_ll_adv_ext_set_adv_data = 0x40000c0c; -r_ble_ll_adv_ext_set_enable = 0x40000c10; -r_ble_ll_adv_ext_set_param = 0x40000c14; -r_ble_ll_adv_ext_set_scan_rsp = 0x40000c18; -r_ble_ll_adv_final_chan = 0x40000c1c; -r_ble_ll_adv_first_chan = 0x40000c20; -r_ble_ll_adv_flags_clear = 0x40000c24; -r_ble_ll_adv_flags_set = 0x40000c28; -r_ble_ll_adv_get_chan_num = 0x40000c2c; -r_ble_ll_adv_get_local_rpa = 0x40000c30; -r_ble_ll_adv_get_peer_rpa = 0x40000c34; -r_ble_ll_adv_hci_set_random_addr = 0x40000c38; -r_ble_ll_adv_init = 0x40000c3c; -r_ble_ll_adv_legacy_pdu_make = 0x40000c40; -r_ble_ll_adv_next_chan = 0x40000c44; -r_ble_ll_adv_pdu_make = 0x40000c48; -r_ble_ll_adv_periodic_check_data_itvl = 0x40000c4c; -r_ble_ll_adv_periodic_enable = 0x40000c50; -r_ble_ll_adv_periodic_estimate_data_itvl = 0x40000c54; -r_ble_ll_adv_periodic_send_sync_ind = 0x40000c58; -r_ble_ll_adv_periodic_set_data = 0x40000c5c; -r_ble_ll_adv_periodic_set_info_transfer = 0x40000c60; -r_ble_ll_adv_periodic_set_param = 0x40000c64; -r_ble_ll_adv_pre_process = 0x40000c68; -r_ble_ll_adv_put_acad_chM_update_ind = 0x40000c6c; -r_ble_ll_adv_put_aux_ptr = 0x40000c70; -r_ble_ll_adv_put_syncinfo = 0x40000c74; -r_ble_ll_adv_rd_max_adv_data_len = 0x40000c78; -r_ble_ll_adv_rd_sup_adv_sets = 0x40000c7c; -r_ble_ll_adv_read_txpwr = 0x40000c80; -r_ble_ll_adv_remove = 0x40000c84; -r_ble_ll_adv_reset = 0x40000c88; -r_ble_ll_adv_rpa_timeout = 0x40000c8c; -r_ble_ll_adv_rpa_update = 0x40000c90; -r_ble_ll_adv_rx_pkt_in = 0x40000c94; -r_ble_ll_adv_scan_req_rxd = 0x40000c98; -r_ble_ll_adv_scan_rsp_legacy_pdu_make = 0x40000c9c; -r_ble_ll_adv_scan_rsp_pdu_make = 0x40000ca0; -r_ble_ll_adv_scheduled = 0x40000ca4; -r_ble_ll_adv_send_conn_comp_ev = 0x40000ca8; -r_ble_ll_adv_set_adv_data = 0x40000cac; -r_ble_ll_adv_set_adv_params = 0x40000cb0; -r_ble_ll_adv_set_enable = 0x40000cb4; -r_ble_ll_adv_set_random_addr = 0x40000cb8; -r_ble_ll_adv_set_scan_rsp_data = 0x40000cbc; -r_ble_ll_adv_set_sched = 0x40000cc0; -r_ble_ll_adv_sm_deinit = 0x40000cc4; -r_ble_ll_adv_sm_event_init = 0x40000cc8; -r_ble_ll_adv_sm_find_configured = 0x40000ccc; -r_ble_ll_adv_sm_get = 0x40000cd0; -r_ble_ll_adv_sm_init = 0x40000cd4; -r_ble_ll_adv_sm_reset = 0x40000cd8; -r_ble_ll_adv_sm_start = 0x40000cdc; -r_ble_ll_adv_sm_start_periodic = 0x40000ce0; -r_ble_ll_adv_sm_stop = 0x40000ce4; -r_ble_ll_adv_sm_stop_limit_reached = 0x40000ce8; -r_ble_ll_adv_sm_stop_periodic = 0x40000cec; -r_ble_ll_adv_sm_stop_timeout = 0x40000cf0; -r_ble_ll_adv_sync_calculate = 0x40000cf4; -r_ble_ll_adv_sync_get_pdu_len = 0x40000cf8; -r_ble_ll_adv_sync_pdu_make = 0x40000cfc; -r_ble_ll_adv_update_adv_scan_rsp_data = 0x40000d00; -r_ble_ll_adv_update_data_mbuf = 0x40000d04; -r_ble_ll_adv_update_did = 0x40000d08; -r_ble_ll_adv_update_periodic_data = 0x40000d0c; -r_ble_ll_arr_pool_init = 0x40000d10; -r_ble_ll_auth_pyld_tmo_event_send = 0x40000d14; -r_ble_ll_calc_offset_ticks_us_for_rampup = 0x40000d18; -r_ble_ll_calc_session_key = 0x40000d1c; -r_ble_ll_calc_ticks_per_slot = 0x40000d20; -r_ble_ll_check_scan_params = 0x40000d24; -r_ble_ll_chk_txrx_octets = 0x40000d28; -r_ble_ll_chk_txrx_time = 0x40000d2c; -r_ble_ll_conn_adjust_pyld_len = 0x40000d30; -r_ble_ll_conn_auth_pyld_timer_cb = 0x40000d34; -r_ble_ll_conn_auth_pyld_timer_start = 0x40000d38; -r_ble_ll_conn_calc_dci = 0x40000d3c; -r_ble_ll_conn_calc_dci_csa1 = 0x40000d40; -r_ble_ll_conn_calc_itvl_ticks = 0x40000d44; -r_ble_ll_conn_chk_csm_flags = 0x40000d48; -r_ble_ll_conn_chk_phy_upd_start = 0x40000d4c; -r_ble_ll_conn_comp_event_send = 0x40000d50; -r_ble_ll_conn_connect_ind_pdu_make = 0x40000d54; -r_ble_ll_conn_create = 0x40000d58; -r_ble_ll_conn_create_cancel = 0x40000d5c; -r_ble_ll_conn_created = 0x40000d60; -r_ble_ll_conn_cth_flow_enable = 0x40000d64; -r_ble_ll_conn_cth_flow_error_fn = 0x40000d68; -r_ble_ll_conn_cth_flow_have_credit = 0x40000d6c; -r_ble_ll_conn_cth_flow_is_enabled = 0x40000d70; -r_ble_ll_conn_cth_flow_process_cmd = 0x40000d74; -r_ble_ll_conn_cth_flow_set_buffers = 0x40000d78; -r_ble_ll_conn_enqueue_pkt = 0x40000d7c; -r_ble_ll_conn_env_init = 0x40000d80; -r_ble_ll_conn_ext_master_init = 0x40000d84; -r_ble_ll_conn_find_active_conn = 0x40000d88; -r_ble_ll_conn_get_active_conn = 0x40000d8c; -r_ble_ll_conn_get_anchor = 0x40000d90; -r_ble_ll_conn_hcc_params_set_fallback = 0x40000d94; -r_ble_ll_conn_hci_cancel_conn_complete_event = 0x40000d98; -r_ble_ll_conn_hci_chk_conn_params = 0x40000d9c; -r_ble_ll_conn_hci_chk_scan_params = 0x40000da0; -r_ble_ll_conn_hci_disconnect_cmd = 0x40000da4; -r_ble_ll_conn_hci_le_ltk_neg_reply = 0x40000da8; -r_ble_ll_conn_hci_le_ltk_reply = 0x40000dac; -r_ble_ll_conn_hci_le_rd_phy = 0x40000db0; -r_ble_ll_conn_hci_le_set_phy = 0x40000db4; -r_ble_ll_conn_hci_le_start_encrypt = 0x40000db8; -r_ble_ll_conn_hci_param_nrr = 0x40000dbc; -r_ble_ll_conn_hci_param_rr = 0x40000dc0; -r_ble_ll_conn_hci_rd_auth_pyld_tmo = 0x40000dc4; -r_ble_ll_conn_hci_rd_chan_map = 0x40000dc8; -r_ble_ll_conn_hci_rd_rem_ver_cmd = 0x40000dcc; -r_ble_ll_conn_hci_rd_rssi = 0x40000dd0; -r_ble_ll_conn_hci_read_rem_features = 0x40000dd4; -r_ble_ll_conn_hci_set_chan_class = 0x40000dd8; -r_ble_ll_conn_hci_set_data_len = 0x40000ddc; -r_ble_ll_conn_hci_update = 0x40000de0; -r_ble_ll_conn_hci_wr_auth_pyld_tmo = 0x40000de4; -r_ble_ll_conn_init_phy = 0x40000de8; -r_ble_ll_conn_is_dev_connected = 0x40000dec; -r_ble_ll_conn_is_empty_pdu = 0x40000df0; -r_ble_ll_conn_is_lru = 0x40000df4; -r_ble_ll_conn_master_init = 0x40000df8; -r_ble_ll_conn_module_deinit = 0x40000dfc; -r_ble_ll_conn_module_init = 0x40000e00; -r_ble_ll_conn_module_reset = 0x40000e04; -r_ble_ll_conn_next_event = 0x40000e08; -r_ble_ll_conn_num_comp_pkts_event_send = 0x40000e0c; -r_ble_ll_conn_prepare_tx_pdu = 0x40000e10; -r_ble_ll_conn_process_conn_params = 0x40000e14; -r_ble_ll_conn_req_peer_sca = 0x40000e18; -r_ble_ll_conn_rx_data_pdu = 0x40000e1c; -r_ble_ll_conn_set_csa = 0x40000e20; -r_ble_ll_conn_set_ext_con_params = 0x40000e24; -r_ble_ll_conn_set_global_chanmap = 0x40000e28; -r_ble_ll_conn_set_phy = 0x40000e2c; -r_ble_ll_conn_set_txpwr_by_handle = 0x40000e30; -r_ble_ll_conn_set_unknown_rx_octets = 0x40000e34; -r_ble_ll_conn_slave_start = 0x40000e38; -r_ble_ll_conn_sm_get = 0x40000e3c; -r_ble_ll_conn_sm_new = 0x40000e40; -r_ble_ll_conn_sm_npl_deinit = 0x40000e44; -r_ble_ll_conn_sm_npl_init = 0x40000e48; -r_ble_ll_conn_tx_pkt_in = 0x40000e4c; -r_ble_ll_conn_update_eff_data_len = 0x40000e50; -r_ble_ll_ctrl_chanmap_req_make = 0x40000e54; -r_ble_ll_ctrl_chk_proc_start = 0x40000e58; -r_ble_ll_ctrl_conn_param_pdu_make = 0x40000e5c; -r_ble_ll_ctrl_conn_param_pdu_proc = 0x40000e60; -r_ble_ll_ctrl_conn_param_reply = 0x40000e64; -r_ble_ll_ctrl_conn_upd_make = 0x40000e68; -r_ble_ll_ctrl_datalen_upd_make = 0x40000e6c; -r_ble_ll_ctrl_enc_allowed_pdu = 0x40000e70; -r_ble_ll_ctrl_enc_allowed_pdu_rx = 0x40000e74; -r_ble_ll_ctrl_enc_allowed_pdu_tx = 0x40000e78; -r_ble_ll_ctrl_enc_req_make = 0x40000e7c; -r_ble_ll_ctrl_find_new_phy = 0x40000e80; -r_ble_ll_ctrl_initiate_dle = 0x40000e84; -r_ble_ll_ctrl_len_proc = 0x40000e88; -r_ble_ll_ctrl_min_used_chan_rsp = 0x40000e8c; -r_ble_ll_ctrl_phy_from_phy_mask = 0x40000e90; -r_ble_ll_ctrl_phy_req_rsp_make = 0x40000e94; -r_ble_ll_ctrl_phy_tx_transition_get = 0x40000e98; -r_ble_ll_ctrl_phy_update_cancel = 0x40000e9c; -r_ble_ll_ctrl_phy_update_ind_make = 0x40000ea0; -r_ble_ll_ctrl_phy_update_proc_complete = 0x40000ea4; -r_ble_ll_ctrl_proc_init = 0x40000ea8; -r_ble_ll_ctrl_proc_rsp_timer_cb = 0x40000eac; -r_ble_ll_ctrl_proc_start = 0x40000eb0; -r_ble_ll_ctrl_proc_stop = 0x40000eb4; -r_ble_ll_ctrl_proc_unk_rsp = 0x40000eb8; -r_ble_ll_ctrl_proc_with_instant_initiated = 0x40000ebc; -r_ble_ll_ctrl_rej_ext_ind_make = 0x40000ec0; -r_ble_ll_ctrl_reject_ind_send = 0x40000ec4; -r_ble_ll_ctrl_rx_chanmap_req = 0x40000ec8; -r_ble_ll_ctrl_rx_conn_param_req = 0x40000ecc; -r_ble_ll_ctrl_rx_conn_param_rsp = 0x40000ed0; -r_ble_ll_ctrl_rx_conn_update = 0x40000ed4; -r_ble_ll_ctrl_rx_enc_req = 0x40000ed8; -r_ble_ll_ctrl_rx_enc_rsp = 0x40000edc; -r_ble_ll_ctrl_rx_feature_req = 0x40000ee0; -r_ble_ll_ctrl_rx_feature_rsp = 0x40000ee4; -r_ble_ll_ctrl_rx_pause_enc_req = 0x40000ee8; -r_ble_ll_ctrl_rx_pause_enc_rsp = 0x40000eec; -r_ble_ll_ctrl_rx_pdu = 0x40000ef0; -r_ble_ll_ctrl_rx_periodic_sync_ind = 0x40000ef4; -r_ble_ll_ctrl_rx_phy_req = 0x40000ef8; -r_ble_ll_ctrl_rx_phy_rsp = 0x40000efc; -r_ble_ll_ctrl_rx_phy_update_ind = 0x40000f00; -r_ble_ll_ctrl_rx_ping_rsp = 0x40000f04; -r_ble_ll_ctrl_rx_reject_ind = 0x40000f08; -r_ble_ll_ctrl_rx_sca_req = 0x40000f0c; -r_ble_ll_ctrl_rx_sca_rsp = 0x40000f10; -r_ble_ll_ctrl_rx_start_enc_req = 0x40000f14; -r_ble_ll_ctrl_rx_start_enc_rsp = 0x40000f18; -r_ble_ll_ctrl_rx_version_ind = 0x40000f1c; -r_ble_ll_ctrl_sca_req_rsp_make = 0x40000f20; -r_ble_ll_ctrl_start_enc_send = 0x40000f24; -r_ble_ll_ctrl_start_rsp_timer = 0x40000f28; -r_ble_ll_ctrl_terminate_start = 0x40000f2c; -r_ble_ll_ctrl_tx_done = 0x40000f30; -r_ble_ll_ctrl_update_features = 0x40000f34; -r_ble_ll_ctrl_version_ind_make = 0x40000f38; -r_ble_ll_data_buffer_overflow = 0x40000f3c; -r_ble_ll_deinit = 0x40000f40; -r_ble_ll_disconn_comp_event_send = 0x40000f44; -r_ble_ll_env_init = 0x40000f48; -r_ble_ll_event_comp_pkts = 0x40000f4c; -r_ble_ll_event_dbuf_overflow = 0x40000f50; -r_ble_ll_event_send = 0x40000f54; -r_ble_ll_event_tx_pkt = 0x40000f58; -r_ble_ll_ext_adv_phy_mode_to_local_phy = 0x40000f5c; -r_ble_ll_ext_conn_create = 0x40000f60; -r_ble_ll_ext_scan_parse_adv_info = 0x40000f64; -r_ble_ll_ext_scan_parse_aux_ptr = 0x40000f68; -r_ble_ll_flush_pkt_queue = 0x40000f6c; -r_ble_ll_generate_dh_key_v1 = 0x40000f70; -r_ble_ll_generate_dh_key_v2 = 0x40000f74; -r_ble_ll_generic_data_init = 0x40000f78; -r_ble_ll_get_addr_type = 0x40000f7c; -r_ble_ll_get_chan_to_scan = 0x40000f80; -r_ble_ll_get_our_devaddr = 0x40000f84; -r_ble_ll_get_tx_pwr_compensation = 0x40000f88; -r_ble_ll_hci_acl_rx = 0x40000f8c; -r_ble_ll_hci_adv_mode_ext = 0x40000f90; -r_ble_ll_hci_adv_set_enable = 0x40000f94; -r_ble_ll_hci_cb_host_buf_size = 0x40000f98; -r_ble_ll_hci_cb_set_ctrlr_to_host_fc = 0x40000f9c; -r_ble_ll_hci_cb_set_event_mask = 0x40000fa0; -r_ble_ll_hci_cb_set_event_mask2 = 0x40000fa4; -r_ble_ll_hci_chk_phy_masks = 0x40000fa8; -r_ble_ll_hci_cmd_proc = 0x40000fac; -r_ble_ll_hci_cmd_rx = 0x40000fb0; -r_ble_ll_hci_ctlr_bb_cmd_proc = 0x40000fb4; -r_ble_ll_hci_deinit = 0x40000fb8; -r_ble_ll_hci_disconnect = 0x40000fbc; -r_ble_ll_hci_env_init = 0x40000fc0; -r_ble_ll_hci_ev_conn_update = 0x40000fc4; -r_ble_ll_hci_ev_databuf_overflow = 0x40000fc8; -r_ble_ll_hci_ev_datalen_chg = 0x40000fcc; -r_ble_ll_hci_ev_encrypt_chg = 0x40000fd0; -r_ble_ll_hci_ev_hw_err = 0x40000fd4; -r_ble_ll_hci_ev_le_csa = 0x40000fd8; -r_ble_ll_hci_ev_ltk_req = 0x40000fdc; -r_ble_ll_hci_ev_phy_update = 0x40000fe0; -r_ble_ll_hci_ev_rd_rem_used_feat = 0x40000fe4; -r_ble_ll_hci_ev_rd_rem_ver = 0x40000fe8; -r_ble_ll_hci_ev_rem_conn_parm_req = 0x40000fec; -r_ble_ll_hci_ev_sca_update = 0x40000ff0; -r_ble_ll_hci_ev_send_adv_set_terminated = 0x40000ff4; -r_ble_ll_hci_ev_send_scan_req_recv = 0x40000ff8; -r_ble_ll_hci_ev_send_scan_timeout = 0x40000ffc; -r_ble_ll_hci_ev_send_vendor_err = 0x40001000; -r_ble_ll_hci_event_send = 0x40001004; -r_ble_ll_hci_ext_scan_set_enable = 0x40001008; -r_ble_ll_hci_get_num_cmd_pkts = 0x4000100c; -r_ble_ll_hci_info_params_cmd_proc = 0x40001010; -r_ble_ll_hci_init = 0x40001014; -r_ble_ll_hci_init_support_cmd_base_on_lmp_ver = 0x40001018; -r_ble_ll_hci_is_event_enabled = 0x4000101c; -r_ble_ll_hci_is_le_event_enabled = 0x40001020; -r_ble_ll_hci_le_cmd_proc = 0x40001024; -r_ble_ll_hci_le_cmd_send_cmd_status = 0x40001028; -r_ble_ll_hci_le_encrypt = 0x4000102c; -r_ble_ll_hci_le_rand = 0x40001030; -r_ble_ll_hci_le_rd_max_data_len = 0x40001034; -r_ble_ll_hci_le_rd_sugg_data_len = 0x40001038; -r_ble_ll_hci_le_read_bufsize = 0x4000103c; -r_ble_ll_hci_le_read_local_features = 0x40001040; -r_ble_ll_hci_le_read_supp_states = 0x40001044; -r_ble_ll_hci_le_set_def_phy = 0x40001048; -r_ble_ll_hci_le_wr_sugg_data_len = 0x4000104c; -r_ble_ll_hci_link_ctrl_cmd_proc = 0x40001050; -r_ble_ll_hci_npl_init = 0x40001054; -r_ble_ll_hci_post_gen_dhkey_cmp_evt = 0x40001058; -r_ble_ll_hci_post_rd_p256_pubkey_cmp_evt = 0x4000105c; -r_ble_ll_hci_rd_bd_addr = 0x40001060; -r_ble_ll_hci_rd_local_supp_cmd = 0x40001064; -r_ble_ll_hci_rd_local_supp_feat = 0x40001068; -r_ble_ll_hci_rd_local_version = 0x4000106c; -r_ble_ll_hci_scan_set_enable = 0x40001070; -r_ble_ll_hci_send_adv_report = 0x40001074; -r_ble_ll_hci_send_dir_adv_report = 0x40001078; -r_ble_ll_hci_send_ext_adv_report = 0x4000107c; -r_ble_ll_hci_send_legacy_ext_adv_report = 0x40001080; -r_ble_ll_hci_send_noop = 0x40001084; -r_ble_ll_hci_set_adv_data = 0x40001088; -r_ble_ll_hci_set_le_event_mask = 0x4000108c; -r_ble_ll_hci_set_scan_rsp_data = 0x40001090; -r_ble_ll_hci_status_params_cmd_proc = 0x40001094; -r_ble_ll_hci_vs_cmd_proc = 0x40001098; -r_ble_ll_hci_vs_rd_static_addr = 0x4000109c; -r_ble_ll_hw_err_timer_cb = 0x400010a0; -r_ble_ll_hw_error = 0x400010a4; -r_ble_ll_init = 0x400010a8; -r_ble_ll_init_alloc_conn_comp_ev = 0x400010ac; -r_ble_ll_init_get_conn_comp_ev = 0x400010b0; -r_ble_ll_init_rx_pkt_in = 0x400010b4; -r_ble_ll_is_addr_empty = 0x400010b8; -r_ble_ll_is_controller_busy = 0x400010bc; -r_ble_ll_is_on_resolv_list = 0x400010c0; -r_ble_ll_is_our_devaddr = 0x400010c4; -r_ble_ll_is_rpa = 0x400010c8; -r_ble_ll_is_valid_adv_mode = 0x400010cc; -r_ble_ll_is_valid_own_addr_type = 0x400010d0; -r_ble_ll_is_valid_public_addr = 0x400010d4; -r_ble_ll_is_valid_random_addr = 0x400010d8; -r_ble_ll_mbuf_init = 0x400010dc; -r_ble_ll_misc_options_set = 0x400010e0; -r_ble_ll_modify_sca = 0x400010e4; -r_ble_ll_modify_sca_action = 0x400010e8; -r_ble_ll_pdu_max_tx_octets_get = 0x400010ec; -r_ble_ll_pdu_tx_time_get = 0x400010f0; -r_ble_ll_phy_to_phy_mode = 0x400010f4; -r_ble_ll_qa_enable = 0x400010f8; -r_ble_ll_rand = 0x400010fc; -r_ble_ll_rand_data_get = 0x40001100; -r_ble_ll_rand_deinit = 0x40001104; -r_ble_ll_rand_env_init = 0x40001108; -r_ble_ll_rand_init = 0x4000110c; -r_ble_ll_rand_prand_get = 0x40001110; -r_ble_ll_rand_sample = 0x40001114; -r_ble_ll_rand_start = 0x40001118; -r_ble_ll_read_local_p256_pub_key = 0x4000111c; -r_ble_ll_read_rf_path_compensation = 0x40001120; -r_ble_ll_read_supp_features = 0x40001124; -r_ble_ll_read_supp_states = 0x40001128; -r_ble_ll_read_tx_power = 0x4000112c; -r_ble_ll_reset = 0x40001130; -r_ble_ll_resolv_clear_all_pl_bit = 0x40001134; -r_ble_ll_resolv_clear_all_wl_bit = 0x40001138; -r_ble_ll_resolv_deinit = 0x4000113c; -r_ble_ll_resolv_enable_cmd = 0x40001140; -r_ble_ll_resolv_enabled = 0x40001144; -r_ble_ll_resolv_env_init = 0x40001148; -r_ble_ll_resolv_gen_priv_addr = 0x4000114c; -r_ble_ll_resolv_gen_rpa = 0x40001150; -r_ble_ll_resolv_get_addr_pointer = 0x40001154; -r_ble_ll_resolv_get_index = 0x40001158; -r_ble_ll_resolv_get_irk_pointer = 0x4000115c; -r_ble_ll_resolv_get_list = 0x40001160; -r_ble_ll_resolv_get_priv_addr = 0x40001164; -r_ble_ll_resolv_get_rpa_tmo = 0x40001168; -r_ble_ll_resolv_init = 0x4000116c; -r_ble_ll_resolv_irk_nonzero = 0x40001170; -r_ble_ll_resolv_list_add = 0x40001174; -r_ble_ll_resolv_list_chg_allowed = 0x40001178; -r_ble_ll_resolv_list_clr = 0x4000117c; -r_ble_ll_resolv_list_find = 0x40001180; -r_ble_ll_resolv_list_read_size = 0x40001184; -r_ble_ll_resolv_list_reset = 0x40001188; -r_ble_ll_resolv_list_rmv = 0x4000118c; -r_ble_ll_resolv_local_addr_rd = 0x40001190; -r_ble_ll_resolv_peer_addr_rd = 0x40001194; -r_ble_ll_resolv_peer_rpa_any = 0x40001198; -r_ble_ll_resolv_reset = 0x4000119c; -r_ble_ll_resolv_rpa = 0x400011a0; -r_ble_ll_resolv_rpa_timer_cb = 0x400011a4; -r_ble_ll_resolv_set_local_rpa = 0x400011a8; -r_ble_ll_resolv_set_peer_rpa = 0x400011ac; -r_ble_ll_resolv_set_rpa_tmo = 0x400011b0; -r_ble_ll_resolve_set_priv_mode = 0x400011b4; -r_ble_ll_rxpdu_alloc = 0x400011b8; -r_ble_ll_scan_add_scan_rsp_adv = 0x400011bc; -r_ble_ll_scan_adv_decode_addr = 0x400011c0; -r_ble_ll_scan_aux_data_ref = 0x400011c4; -r_ble_ll_scan_aux_data_unref = 0x400011c8; -r_ble_ll_scan_can_chg_whitelist = 0x400011cc; -r_ble_ll_scan_check_periodic_sync = 0x400011d0; -r_ble_ll_scan_classify_filter_aux_init = 0x400011d4; -r_ble_ll_scan_classify_filter_init = 0x400011d8; -r_ble_ll_scan_common_init = 0x400011dc; -r_ble_ll_scan_continue_en = 0x400011e0; -r_ble_ll_scan_deinit = 0x400011e4; -r_ble_ll_scan_dup_check_ext = 0x400011e8; -r_ble_ll_scan_dup_check_legacy = 0x400011ec; -r_ble_ll_scan_dup_move_to_head = 0x400011f0; -r_ble_ll_scan_dup_new = 0x400011f4; -r_ble_ll_scan_dup_update_ext = 0x400011f8; -r_ble_ll_scan_dup_update_legacy = 0x400011fc; -r_ble_ll_scan_enabled = 0x40001200; -r_ble_ll_scan_end_adv_evt = 0x40001204; -r_ble_ll_scan_env_init = 0x40001208; -r_ble_ll_scan_ext_initiator_start = 0x4000120c; -r_ble_ll_scan_get_addr_data_from_legacy = 0x40001210; -r_ble_ll_scan_get_addr_from_ext_adv = 0x40001214; -r_ble_ll_scan_get_cur_sm = 0x40001218; -r_ble_ll_scan_get_ext_adv_report = 0x4000121c; -r_ble_ll_scan_get_local_rpa = 0x40001220; -r_ble_ll_scan_get_next_adv_prim_chan = 0x40001224; -r_ble_ll_scan_get_peer_rpa = 0x40001228; -r_ble_ll_scan_have_rxd_scan_rsp = 0x4000122c; -r_ble_ll_scan_init = 0x40001230; -r_ble_ll_scan_initiator_start = 0x40001234; -r_ble_ll_scan_is_inside_window = 0x40001238; -r_ble_ll_scan_move_window_to = 0x4000123c; -r_ble_ll_scan_npl_reset = 0x40001240; -r_ble_ll_scan_parse_auxptr = 0x40001244; -r_ble_ll_scan_parse_ext_hdr = 0x40001248; -r_ble_ll_scan_pre_process = 0x4000124c; -r_ble_ll_scan_record_new_adv = 0x40001250; -r_ble_ll_scan_refresh_nrpa = 0x40001254; -r_ble_ll_scan_reset = 0x40001258; -r_ble_ll_scan_rx_pkt_in = 0x4000125c; -r_ble_ll_scan_rx_pkt_in_on_aux = 0x40001260; -r_ble_ll_scan_rx_pkt_in_on_legacy = 0x40001264; -r_ble_ll_scan_rx_pkt_in_restore_addr_data = 0x40001268; -r_ble_ll_scan_rxed = 0x4000126c; -r_ble_ll_scan_send_adv_report = 0x40001270; -r_ble_ll_scan_send_truncated = 0x40001274; -r_ble_ll_scan_set_enable = 0x40001278; -r_ble_ll_scan_set_peer_rpa = 0x4000127c; -r_ble_ll_scan_set_perfer_addr = 0x40001280; -r_ble_ll_scan_set_scan_params = 0x40001284; -r_ble_ll_scan_sm_start = 0x40001288; -r_ble_ll_scan_sm_stop = 0x4000128c; -r_ble_ll_scan_time_hci_to_ticks = 0x40001290; -r_ble_ll_scan_update_aux_data = 0x40001294; -r_ble_ll_scan_whitelist_enabled = 0x40001298; -r_ble_ll_set_default_privacy_mode = 0x4000129c; -r_ble_ll_set_default_sync_transfer_params = 0x400012a0; -r_ble_ll_set_ext_scan_params = 0x400012a4; -r_ble_ll_set_host_feat = 0x400012a8; -r_ble_ll_set_public_addr = 0x400012ac; -r_ble_ll_set_random_addr = 0x400012b0; -r_ble_ll_set_sync_transfer_params = 0x400012b4; -r_ble_ll_state_get = 0x400012b8; -r_ble_ll_state_set = 0x400012bc; -r_ble_ll_sync_adjust_ext_hdr = 0x400012c0; -r_ble_ll_sync_cancel = 0x400012c4; -r_ble_ll_sync_cancel_complete_event = 0x400012c8; -r_ble_ll_sync_check_acad = 0x400012cc; -r_ble_ll_sync_check_failed = 0x400012d0; -r_ble_ll_sync_create = 0x400012d4; -r_ble_ll_sync_deinit = 0x400012d8; -r_ble_ll_sync_enabled = 0x400012dc; -r_ble_ll_sync_env_init = 0x400012e0; -r_ble_ll_sync_est_event_failed = 0x400012e4; -r_ble_ll_sync_est_event_success = 0x400012e8; -r_ble_ll_sync_established = 0x400012ec; -r_ble_ll_sync_filter_enabled = 0x400012f0; -r_ble_ll_sync_find = 0x400012f4; -r_ble_ll_sync_get_cur_sm = 0x400012f8; -r_ble_ll_sync_get_handle = 0x400012fc; -r_ble_ll_sync_get_sm = 0x40001300; -r_ble_ll_sync_info_event = 0x40001304; -r_ble_ll_sync_init = 0x40001308; -r_ble_ll_sync_list_add = 0x4000130c; -r_ble_ll_sync_list_clear = 0x40001310; -r_ble_ll_sync_list_empty = 0x40001314; -r_ble_ll_sync_list_get_free = 0x40001318; -r_ble_ll_sync_list_remove = 0x4000131c; -r_ble_ll_sync_list_search = 0x40001320; -r_ble_ll_sync_list_size = 0x40001324; -r_ble_ll_sync_lost_event = 0x40001328; -r_ble_ll_sync_next_event = 0x4000132c; -r_ble_ll_sync_on_list = 0x40001330; -r_ble_ll_sync_parse_ext_hdr = 0x40001334; -r_ble_ll_sync_periodic_ind = 0x40001338; -r_ble_ll_sync_phy_mode_to_aux_phy = 0x4000133c; -r_ble_ll_sync_phy_mode_to_hci = 0x40001340; -r_ble_ll_sync_put_syncinfo = 0x40001344; -r_ble_ll_sync_receive_enable = 0x40001348; -r_ble_ll_sync_reserve = 0x4000134c; -r_ble_ll_sync_reset = 0x40001350; -r_ble_ll_sync_reset_sm = 0x40001354; -r_ble_ll_sync_rx_pkt_in = 0x40001358; -r_ble_ll_sync_send_per_adv_rpt = 0x4000135c; -r_ble_ll_sync_send_sync_ind = 0x40001360; -r_ble_ll_sync_send_truncated_per_adv_rpt = 0x40001364; -r_ble_ll_sync_sm_clear = 0x40001368; -r_ble_ll_sync_terminate = 0x4000136c; -r_ble_ll_sync_transfer = 0x40001370; -r_ble_ll_sync_transfer_get = 0x40001374; -r_ble_ll_sync_transfer_received = 0x40001378; -r_ble_ll_task = 0x4000137c; -r_ble_ll_trace_set_func = 0x40001380; -r_ble_ll_trace_u32 = 0x40001384; -r_ble_ll_trace_u32x2 = 0x40001388; -r_ble_ll_trace_u32x3 = 0x4000138c; -r_ble_ll_tx_flat_mbuf_pducb = 0x40001390; -r_ble_ll_tx_mbuf_pducb = 0x40001394; -r_ble_ll_tx_pkt_in = 0x40001398; -r_ble_ll_update_max_tx_octets_phy_mode = 0x4000139c; -r_ble_ll_usecs_to_ticks_round_up = 0x400013a0; -r_ble_ll_utils_calc_access_addr = 0x400013a4; -r_ble_ll_utils_calc_dci_csa2 = 0x400013a8; -r_ble_ll_utils_calc_num_used_chans = 0x400013ac; -r_ble_ll_utils_calc_window_widening = 0x400013b0; -r_ble_ll_utils_csa2_perm = 0x400013b4; -r_ble_ll_utils_csa2_prng = 0x400013b8; -r_ble_ll_utils_remapped_channel = 0x400013bc; -r_ble_ll_whitelist_add = 0x400013c0; -r_ble_ll_whitelist_chg_allowed = 0x400013c4; -r_ble_ll_whitelist_clear = 0x400013c8; -r_ble_ll_whitelist_read_size = 0x400013cc; -r_ble_ll_whitelist_rmv = 0x400013d0; -r_ble_ll_whitelist_search = 0x400013d4; -r_ble_ll_write_rf_path_compensation = 0x400013d8; -r_ble_lll_adv_aux_scannable_pdu_payload_len = 0x400013dc; -r_ble_lll_adv_aux_schedule = 0x400013e0; -r_ble_lll_adv_aux_schedule_first = 0x400013e4; -r_ble_lll_adv_aux_schedule_next = 0x400013e8; -r_ble_lll_adv_aux_scheduled = 0x400013ec; -r_ble_lll_adv_aux_set_start_time = 0x400013f0; -r_ble_lll_adv_coex_dpc_calc_pti_update_itvl = 0x400013f4; -r_ble_lll_adv_coex_dpc_process_pri = 0x400013f8; -r_ble_lll_adv_coex_dpc_process_sec = 0x400013fc; -r_ble_lll_adv_coex_dpc_pti_get = 0x40001400; -r_ble_lll_adv_coex_dpc_update = 0x40001404; -r_ble_lll_adv_coex_dpc_update_on_adv_start = 0x40001408; -r_ble_lll_adv_coex_dpc_update_on_aux_scheduled = 0x4000140c; -r_ble_lll_adv_coex_dpc_update_on_data_updated = 0x40001410; -r_ble_lll_adv_coex_dpc_update_on_event_end = 0x40001414; -r_ble_lll_adv_coex_dpc_update_on_event_scheduled = 0x40001418; -r_ble_lll_adv_done = 0x4000141c; -r_ble_lll_adv_drop_event = 0x40001420; -r_ble_lll_adv_event_done = 0x40001424; -r_ble_lll_adv_event_rmvd_from_sched = 0x40001428; -r_ble_lll_adv_ext_estimate_data_itvl = 0x4000142c; -r_ble_lll_adv_get_sec_pdu_len = 0x40001430; -r_ble_lll_adv_halt = 0x40001434; -r_ble_lll_adv_make_done = 0x40001438; -r_ble_lll_adv_periodic_done = 0x4000143c; -r_ble_lll_adv_periodic_event_done = 0x40001440; -r_ble_lll_adv_periodic_rmvd_from_sched = 0x40001444; -r_ble_lll_adv_periodic_schedule_first = 0x40001448; -r_ble_lll_adv_periodic_schedule_next = 0x4000144c; -r_ble_lll_adv_periodic_start = 0x40001450; -r_ble_lll_adv_periodic_stop = 0x40001454; -r_ble_lll_adv_pri_schedule_tx_pdu = 0x40001458; -r_ble_lll_adv_reschedule_event = 0x4000145c; -r_ble_lll_adv_reschedule_periodic_event = 0x40001460; -r_ble_lll_adv_rx_pkt_isr = 0x40001464; -r_ble_lll_adv_sec_done = 0x40001468; -r_ble_lll_adv_sec_event_done = 0x4000146c; -r_ble_lll_adv_sec_schedule_next_aux = 0x40001470; -r_ble_lll_adv_secondary_tx_start_cb = 0x40001474; -r_ble_lll_adv_sm_deinit = 0x40001478; -r_ble_lll_adv_sm_event_init = 0x4000147c; -r_ble_lll_adv_sm_event_restore = 0x40001480; -r_ble_lll_adv_sm_event_store = 0x40001484; -r_ble_lll_adv_sm_init = 0x40001488; -r_ble_lll_adv_sm_reset = 0x4000148c; -r_ble_lll_adv_start = 0x40001490; -r_ble_lll_adv_stop = 0x40001494; -r_ble_lll_adv_sync_next_scheduled = 0x40001498; -r_ble_lll_adv_sync_schedule = 0x4000149c; -r_ble_lll_adv_sync_tx_done = 0x400014a0; -r_ble_lll_adv_sync_tx_end = 0x400014a4; -r_ble_lll_adv_sync_tx_start_cb = 0x400014a8; -r_ble_lll_adv_tx_done = 0x400014ac; -r_ble_lll_adv_tx_start_cb = 0x400014b0; -r_ble_lll_adv_update_rsp_offset = 0x400014b4; -r_ble_lll_aux_scan_cb = 0x400014b8; -r_ble_lll_aux_scan_drop = 0x400014bc; -r_ble_lll_aux_scan_drop_event_cb = 0x400014c0; -r_ble_lll_calc_us_convert_tick_unit = 0x400014c4; -r_ble_lll_conn_append_tx_buffer = 0x400014c8; -r_ble_lll_conn_can_send_next_pdu = 0x400014cc; -r_ble_lll_conn_check_opcode_matched = 0x400014d0; -r_ble_lll_conn_coex_dpc_process = 0x400014d4; -r_ble_lll_conn_coex_dpc_pti_get = 0x400014d8; -r_ble_lll_conn_coex_dpc_update = 0x400014dc; -r_ble_lll_conn_coex_dpc_update_on_event_end = 0x400014e0; -r_ble_lll_conn_coex_dpc_update_on_event_scheduled = 0x400014e4; -r_ble_lll_conn_coex_dpc_update_on_event_started = 0x400014e8; -r_ble_lll_conn_cth_flow_alloc_credit = 0x400014ec; -r_ble_lll_conn_cth_flow_free_credit = 0x400014f0; -r_ble_lll_conn_current_sm_over = 0x400014f4; -r_ble_lll_conn_end = 0x400014f8; -r_ble_lll_conn_env_deinit = 0x400014fc; -r_ble_lll_conn_env_init = 0x40001500; -r_ble_lll_conn_event_end = 0x40001504; -r_ble_lll_conn_event_end_timer_cb = 0x40001508; -r_ble_lll_conn_event_halt = 0x4000150c; -r_ble_lll_conn_event_is_over = 0x40001510; -r_ble_lll_conn_event_start_cb = 0x40001514; -r_ble_lll_conn_free_rx_mbuf = 0x40001518; -r_ble_lll_conn_get_addr_info_from_rx_buf = 0x4000151c; -r_ble_lll_conn_get_ce_end_time = 0x40001520; -r_ble_lll_conn_get_next_sched_time = 0x40001524; -r_ble_lll_conn_get_rx_mbuf = 0x40001528; -r_ble_lll_conn_halt = 0x4000152c; -r_ble_lll_conn_master_common_init = 0x40001530; -r_ble_lll_conn_master_new = 0x40001534; -r_ble_lll_conn_module_deinit = 0x40001538; -r_ble_lll_conn_module_init = 0x4000153c; -r_ble_lll_conn_module_reset = 0x40001540; -r_ble_lll_conn_no_mem_evt_pre_cb = 0x40001544; -r_ble_lll_conn_pre_process = 0x40001548; -r_ble_lll_conn_process_acked_pdu = 0x4000154c; -r_ble_lll_conn_process_in_isr = 0x40001550; -r_ble_lll_conn_recv_ack = 0x40001554; -r_ble_lll_conn_recv_valid_packet = 0x40001558; -r_ble_lll_conn_reset_pending_sched = 0x4000155c; -r_ble_lll_conn_rx_pkt_isr = 0x40001560; -r_ble_lll_conn_sched_next_anchor = 0x40001564; -r_ble_lll_conn_sched_next_event = 0x40001568; -r_ble_lll_conn_set_slave_flow_control = 0x4000156c; -r_ble_lll_conn_slave_new = 0x40001570; -r_ble_lll_conn_sm_new = 0x40001574; -r_ble_lll_conn_sm_npl_deinit = 0x40001578; -r_ble_lll_conn_sm_npl_init = 0x4000157c; -r_ble_lll_conn_superversion_timer_cb = 0x40001580; -r_ble_lll_conn_timeout = 0x40001584; -r_ble_lll_conn_update_anchor = 0x40001588; -r_ble_lll_conn_update_conn_ind_params = 0x4000158c; -r_ble_lll_conn_update_encryption = 0x40001590; -r_ble_lll_conn_update_tx_buffer = 0x40001594; -r_ble_lll_deinit = 0x40001598; -r_ble_lll_dtm_calculate_itvl = 0x4000159c; -r_ble_lll_dtm_ctx_free = 0x400015a0; -r_ble_lll_dtm_deinit = 0x400015a4; -r_ble_lll_dtm_end_test = 0x400015a8; -r_ble_lll_dtm_ev_rx_restart_cb = 0x400015ac; -r_ble_lll_dtm_ev_tx_resched_cb = 0x400015b0; -r_ble_lll_dtm_init = 0x400015b4; -r_ble_lll_dtm_reset = 0x400015b8; -r_ble_lll_dtm_rx_create_ctx = 0x400015bc; -r_ble_lll_dtm_rx_isr_end = 0x400015c0; -r_ble_lll_dtm_rx_isr_start = 0x400015c4; -r_ble_lll_dtm_rx_pkt_in = 0x400015c8; -r_ble_lll_dtm_rx_sched_cb = 0x400015cc; -r_ble_lll_dtm_rx_start = 0x400015d0; -r_ble_lll_dtm_rx_test = 0x400015d4; -r_ble_lll_dtm_set_next = 0x400015d8; -r_ble_lll_dtm_tx_create_ctx = 0x400015dc; -r_ble_lll_dtm_tx_done = 0x400015e0; -r_ble_lll_dtm_tx_sched_cb = 0x400015e4; -r_ble_lll_dtm_tx_test = 0x400015e8; -r_ble_lll_dtm_wfr_timer_exp = 0x400015ec; -r_ble_lll_event_rx_pkt = 0x400015f0; -r_ble_lll_ext_scan_coex_dpc_process = 0x400015f4; -r_ble_lll_ext_scan_coex_dpc_pti_get = 0x400015f8; -r_ble_lll_ext_scan_coex_dpc_update = 0x400015fc; -r_ble_lll_ext_scan_coex_dpc_update_on_start = 0x40001600; -r_ble_lll_hci_dtm_rx_test = 0x40001604; -r_ble_lll_hci_dtm_rx_test_v2 = 0x40001608; -r_ble_lll_hci_dtm_tx_test = 0x4000160c; -r_ble_lll_hci_dtm_tx_test_ext = 0x40001610; -r_ble_lll_hci_dtm_tx_test_v2 = 0x40001614; -r_ble_lll_hci_dtm_tx_test_v2_ext = 0x40001618; -r_ble_lll_init = 0x4000161c; -r_ble_lll_init_pre_process = 0x40001620; -r_ble_lll_init_rx_pkt_isr = 0x40001624; -r_ble_lll_per_adv_coex_dpc_calc_pti_update_itvl = 0x40001628; -r_ble_lll_per_adv_coex_dpc_process = 0x4000162c; -r_ble_lll_per_adv_coex_dpc_pti_get = 0x40001630; -r_ble_lll_per_adv_coex_dpc_update = 0x40001634; -r_ble_lll_per_adv_coex_dpc_update_on_data_updated = 0x40001638; -r_ble_lll_per_adv_coex_dpc_update_on_scheduled = 0x4000163c; -r_ble_lll_per_adv_coex_dpc_update_on_start = 0x40001640; -r_ble_lll_reset = 0x40001644; -r_ble_lll_rfmgmt_controller_sleep_en = 0x40001648; -r_ble_lll_rfmgmt_deinit = 0x4000164c; -r_ble_lll_rfmgmt_disable = 0x40001650; -r_ble_lll_rfmgmt_enable = 0x40001654; -r_ble_lll_rfmgmt_enable_now = 0x40001658; -r_ble_lll_rfmgmt_init = 0x4000165c; -r_ble_lll_rfmgmt_is_enabled = 0x40001660; -r_ble_lll_rfmgmt_release = 0x40001664; -r_ble_lll_rfmgmt_release_ev = 0x40001668; -r_ble_lll_rfmgmt_reset = 0x4000166c; -r_ble_lll_rfmgmt_scan_changed = 0x40001670; -r_ble_lll_rfmgmt_sched_changed = 0x40001674; -r_ble_lll_rfmgmt_set_sleep_cb = 0x40001678; -r_ble_lll_rfmgmt_ticks_to_enabled = 0x4000167c; -r_ble_lll_rfmgmt_timer_exp = 0x40001680; -r_ble_lll_rfmgmt_timer_reschedule = 0x40001684; -r_ble_lll_rx_pdu_in = 0x40001688; -r_ble_lll_rx_pkt_in = 0x4000168c; -r_ble_lll_rx_pkt_isr = 0x40001690; -r_ble_lll_scan_abort_aux_sched = 0x40001694; -r_ble_lll_scan_aux_data_free = 0x40001698; -r_ble_lll_scan_chk_resume = 0x4000169c; -r_ble_lll_scan_clean_cur_aux_data = 0x400016a0; -r_ble_lll_scan_coex_event_cb = 0x400016a4; -r_ble_lll_scan_common_init = 0x400016a8; -r_ble_lll_scan_deinit = 0x400016ac; -r_ble_lll_scan_duration_period_timers_restart = 0x400016b0; -r_ble_lll_scan_duration_period_timers_stop = 0x400016b4; -r_ble_lll_scan_duration_timer_cb = 0x400016b8; -r_ble_lll_scan_event_proc = 0x400016bc; -r_ble_lll_scan_ext_adv_init = 0x400016c0; -r_ble_lll_scan_halt = 0x400016c4; -r_ble_lll_scan_has_sent_scan_req = 0x400016c8; -r_ble_lll_scan_init = 0x400016cc; -r_ble_lll_scan_npl_init = 0x400016d0; -r_ble_lll_scan_npl_reset = 0x400016d4; -r_ble_lll_scan_npl_restore = 0x400016d8; -r_ble_lll_scan_npl_store = 0x400016dc; -r_ble_lll_scan_period_timer_cb = 0x400016e0; -r_ble_lll_scan_process_adv_in_isr = 0x400016e4; -r_ble_lll_scan_process_rsp_in_isr = 0x400016e8; -r_ble_lll_scan_req_backoff = 0x400016ec; -r_ble_lll_scan_restart = 0x400016f0; -r_ble_lll_scan_rx_isr_on_aux = 0x400016f4; -r_ble_lll_scan_rx_isr_on_legacy = 0x400016f8; -r_ble_lll_scan_rx_pkt_isr = 0x400016fc; -r_ble_lll_scan_sched_next_aux = 0x40001700; -r_ble_lll_scan_sched_remove = 0x40001704; -r_ble_lll_scan_start = 0x40001708; -r_ble_lll_scan_start_rx = 0x4000170c; -r_ble_lll_scan_stop = 0x40001710; -r_ble_lll_scan_targeta_is_matched = 0x40001714; -r_ble_lll_scan_timer_cb = 0x40001718; -r_ble_lll_sched_adv_new = 0x4000171c; -r_ble_lll_sched_adv_resched_pdu = 0x40001720; -r_ble_lll_sched_adv_reschedule = 0x40001724; -r_ble_lll_sched_aux_scan = 0x40001728; -r_ble_lll_sched_conn_overlap = 0x4000172c; -r_ble_lll_sched_conn_reschedule = 0x40001730; -r_ble_lll_sched_deinit = 0x40001734; -r_ble_lll_sched_dtm = 0x40001738; -r_ble_lll_sched_env_init = 0x4000173c; -r_ble_lll_sched_execute_check = 0x40001740; -r_ble_lll_sched_execute_item = 0x40001744; -r_ble_lll_sched_init = 0x40001748; -r_ble_lll_sched_insert_if_empty = 0x4000174c; -r_ble_lll_sched_is_overlap = 0x40001750; -r_ble_lll_sched_master_new = 0x40001754; -r_ble_lll_sched_next_time = 0x40001758; -r_ble_lll_sched_overlaps_current = 0x4000175c; -r_ble_lll_sched_periodic_adv = 0x40001760; -r_ble_lll_sched_rmv_elem = 0x40001764; -r_ble_lll_sched_rmv_elem_type = 0x40001768; -r_ble_lll_sched_run = 0x4000176c; -r_ble_lll_sched_scan_req_over_aux_ptr = 0x40001770; -r_ble_lll_sched_slave_new = 0x40001774; -r_ble_lll_sched_stop = 0x40001778; -r_ble_lll_sched_sync = 0x4000177c; -r_ble_lll_sched_sync_overlaps_current = 0x40001780; -r_ble_lll_sched_sync_reschedule = 0x40001784; -r_ble_lll_sync_chain_start_cb = 0x40001788; -r_ble_lll_sync_coex_dpc_process = 0x4000178c; -r_ble_lll_sync_coex_dpc_pti_get = 0x40001790; -r_ble_lll_sync_coex_dpc_update = 0x40001794; -r_ble_lll_sync_current_sm_over = 0x40001798; -r_ble_lll_sync_deinit = 0x4000179c; -r_ble_lll_sync_event_end = 0x400017a0; -r_ble_lll_sync_event_end_cb = 0x400017a4; -r_ble_lll_sync_event_start_cb = 0x400017a8; -r_ble_lll_sync_get_event_end_time = 0x400017ac; -r_ble_lll_sync_halt = 0x400017b0; -r_ble_lll_sync_init = 0x400017b4; -r_ble_lll_sync_new = 0x400017b8; -r_ble_lll_sync_reset = 0x400017bc; -r_ble_lll_sync_reset_sm = 0x400017c0; -r_ble_lll_sync_rmvd_from_sched = 0x400017c4; -r_ble_lll_sync_rx_pkt_isr = 0x400017c8; -r_ble_lll_sync_schedule_chain = 0x400017cc; -r_ble_lll_sync_stop = 0x400017d0; -r_ble_lll_sync_trnasfer_sched = 0x400017d4; -r_ble_phy_access_addr_get = 0x400017d8; -r_ble_phy_calculate_rxtx_ifs = 0x400017dc; -r_ble_phy_calculate_rxwindow = 0x400017e0; -r_ble_phy_calculate_txrx_ifs = 0x400017e4; -r_ble_phy_check_bb_status = 0x400017e8; -r_ble_phy_complete_rx_info = 0x400017ec; -r_ble_phy_config_access_addr = 0x400017f0; -r_ble_phy_data_make = 0x400017f4; -r_ble_phy_disable = 0x400017f8; -r_ble_phy_disable_irq = 0x400017fc; -r_ble_phy_disable_whitening = 0x40001800; -r_ble_phy_enable_whitening = 0x40001804; -r_ble_phy_encrypt_disable = 0x40001808; -r_ble_phy_env_init = 0x4000180c; -r_ble_phy_get_current_phy = 0x40001810; -r_ble_phy_get_packet_counter = 0x40001814; -r_ble_phy_get_packet_status = 0x40001818; -r_ble_phy_get_pyld_time_offset = 0x4000181c; -r_ble_phy_get_rx_phy_mode = 0x40001820; -r_ble_phy_get_seq_end_st = 0x40001824; -r_ble_phy_init = 0x40001828; -r_ble_phy_isr = 0x4000182c; -r_ble_phy_max_data_pdu_pyld = 0x40001830; -r_ble_phy_mode_config = 0x40001834; -r_ble_phy_mode_convert = 0x40001838; -r_ble_phy_mode_write = 0x4000183c; -r_ble_phy_module_deinit = 0x40001840; -r_ble_phy_module_init = 0x40001844; -r_ble_phy_monitor_bb_sync = 0x40001848; -r_ble_phy_reset_bb_monitor = 0x4000184c; -r_ble_phy_resolv_list_disable = 0x40001850; -r_ble_phy_resolv_list_enable = 0x40001854; -r_ble_phy_restart_sequence = 0x40001858; -r_ble_phy_rx_set_start_time_forcibly = 0x4000185c; -r_ble_phy_rxpdu_copy = 0x40001860; -r_ble_phy_seq_encrypt_enable = 0x40001864; -r_ble_phy_seq_encrypt_set_pkt_cntr = 0x40001868; -r_ble_phy_sequence_end_isr = 0x4000186c; -r_ble_phy_sequence_get_mode = 0x40001870; -r_ble_phy_sequence_is_running = 0x40001874; -r_ble_phy_sequence_is_waiting_rsp = 0x40001878; -r_ble_phy_sequence_single_end = 0x4000187c; -r_ble_phy_sequence_tx_end_invoke = 0x40001880; -r_ble_phy_sequence_update_conn_ind_params = 0x40001884; -r_ble_phy_set_adv_mode = 0x40001888; -r_ble_phy_set_coex_pti = 0x4000188c; -r_ble_phy_set_conn_ind_pdu = 0x40001890; -r_ble_phy_set_conn_mode = 0x40001894; -r_ble_phy_set_dev_address = 0x40001898; -r_ble_phy_set_rx_pwr_compensation = 0x4000189c; -r_ble_phy_set_rxhdr = 0x400018a0; -r_ble_phy_set_scan_mode = 0x400018a4; -r_ble_phy_set_sequence_mode = 0x400018a8; -r_ble_phy_set_single_packet_rx_sequence = 0x400018ac; -r_ble_phy_set_single_packet_tx_sequence = 0x400018b0; -r_ble_phy_set_tx_rx_transition = 0x400018b4; -r_ble_phy_set_txend_cb = 0x400018b8; -r_ble_phy_setchan = 0x400018bc; -r_ble_phy_start_rx_immediately = 0x400018c0; -r_ble_phy_state_get = 0x400018c4; -r_ble_phy_timer_config_start_time = 0x400018c8; -r_ble_phy_timer_start_now = 0x400018cc; -r_ble_phy_timer_stop = 0x400018d0; -r_ble_phy_tx_set_start_time = 0x400018d4; -r_ble_phy_txpower_round = 0x400018d8; -r_ble_phy_txpwr_set = 0x400018dc; -r_ble_phy_update_conn_sequence = 0x400018e0; -r_ble_phy_update_encryption = 0x400018e4; -r_ble_phy_update_ifs = 0x400018e8; -r_ble_phy_xcvr_state_get = 0x400018ec; -r_ble_plf_set_log_level = 0x400018f0; -r_ble_rtc_wake_up_cpu_init = 0x400018f4; -r_ble_rtc_wake_up_state_clr = 0x400018f8; -r_ble_vendor_hci_register = 0x400018fc; -r_bt_rf_coex_cfg_set = 0x40001900; -r_bt_rf_coex_coded_txrx_time_upper_lim = 0x40001904; -r_bt_rf_coex_dft_pti_set = 0x40001908; -r_bt_rf_coex_hook_deinit = 0x4000190c; -r_bt_rf_coex_hook_init = 0x40001910; -r_bt_rf_coex_hook_st_set = 0x40001914; -r_bt_rf_coex_hooks_p_set_default = 0x40001918; -r_btdm_disable_adv_delay = 0x4000191c; -r_btdm_switch_phy_coded = 0x40001920; -r_esp_wait_disabled = 0x40001924; -r_get_be16 = 0x40001928; -r_get_be24 = 0x4000192c; -r_get_be32 = 0x40001930; -r_get_be64 = 0x40001934; -r_get_le16 = 0x40001938; -r_get_le24 = 0x4000193c; -r_get_le32 = 0x40001940; -r_get_le64 = 0x40001944; -r_get_local_irk_offset = 0x40001948; -r_get_local_rpa_offset = 0x4000194c; -r_get_max_skip = 0x40001950; -r_get_peer_id_offset = 0x40001954; -r_get_peer_irk_offset = 0x40001958; -r_get_peer_rpa_offset = 0x4000195c; -r_hal_rtc_intr_init = 0x40001960; -r_hal_rtc_irq_handler = 0x40001964; -r_hal_timer_deinit = 0x40001968; -r_hal_timer_disable_irq = 0x4000196c; -r_hal_timer_env_init = 0x40001970; -r_hal_timer_init = 0x40001974; -r_hal_timer_process = 0x40001978; -r_hal_timer_read = 0x4000197c; -r_hal_timer_read_tick = 0x40001980; -r_hal_timer_set_cb = 0x40001984; -r_hal_timer_set_exp_tick = 0x40001988; -r_hal_timer_start = 0x4000198c; -r_hal_timer_start_at = 0x40001990; -r_hal_timer_stop = 0x40001994; -r_hal_timer_task_start = 0x40001998; -r_ll_assert = 0x4000199c; -r_mem_init_mbuf_pool = 0x400019a0; -r_mem_malloc_mbuf_pool = 0x400019a4; -r_mem_malloc_mbufpkt_pool = 0x400019a8; -r_mem_malloc_mempool = 0x400019ac; -r_mem_malloc_mempool_ext = 0x400019b0; -r_mem_malloc_mempool_gen = 0x400019b4; -r_mem_pullup_obj = 0x400019b8; -r_mem_split_frag = 0x400019bc; -r_os_cputime_get32 = 0x400019c0; -r_os_cputime_ticks_to_usecs = 0x400019c4; -r_os_cputime_timer_init = 0x400019c8; -r_os_cputime_timer_relative = 0x400019cc; -r_os_cputime_timer_start = 0x400019d0; -r_os_cputime_timer_stop = 0x400019d4; -r_os_cputime_usecs_to_ticks = 0x400019d8; -r_os_mbuf_adj = 0x400019dc; -r_os_mbuf_append = 0x400019e0; -r_os_mbuf_appendfrom = 0x400019e4; -r_os_mbuf_cmpf = 0x400019e8; -r_os_mbuf_cmpm = 0x400019ec; -r_os_mbuf_concat = 0x400019f0; -r_os_mbuf_copydata = 0x400019f4; -r_os_mbuf_copyinto = 0x400019f8; -r_os_mbuf_dup = 0x400019fc; -r_os_mbuf_extend = 0x40001a00; -r_os_mbuf_free = 0x40001a04; -r_os_mbuf_free_chain = 0x40001a08; -r_os_mbuf_get = 0x40001a0c; -r_os_mbuf_get_pkthdr = 0x40001a10; -r_os_mbuf_leadingspace = 0x40001a14; -r_os_mbuf_len = 0x40001a18; -r_os_mbuf_off = 0x40001a1c; -r_os_mbuf_pack_chains = 0x40001a20; -r_os_mbuf_pool_init = 0x40001a24; -r_os_mbuf_prepend = 0x40001a28; -r_os_mbuf_prepend_pullup = 0x40001a2c; -r_os_mbuf_pullup = 0x40001a30; -r_os_mbuf_trailingspace = 0x40001a34; -r_os_mbuf_trim_front = 0x40001a38; -r_os_mbuf_widen = 0x40001a3c; -r_os_memblock_from = 0x40001a40; -r_os_memblock_get = 0x40001a44; -r_os_memblock_put = 0x40001a48; -r_os_memblock_put_from_cb = 0x40001a4c; -r_os_mempool_clear = 0x40001a50; -r_os_mempool_ext_clear = 0x40001a54; -r_os_mempool_ext_init = 0x40001a58; -r_os_mempool_info_get_next = 0x40001a5c; -r_os_mempool_init = 0x40001a60; -r_os_mempool_init_internal = 0x40001a64; -r_os_mempool_is_sane = 0x40001a68; -r_os_mempool_module_init = 0x40001a6c; -r_os_mempool_unregister = 0x40001a70; -r_os_mqueue_get = 0x40001a74; -r_os_mqueue_init = 0x40001a78; -r_os_mqueue_put = 0x40001a7c; -r_os_msys_count = 0x40001a80; -r_os_msys_get = 0x40001a84; -r_os_msys_get_pkthdr = 0x40001a88; -r_os_msys_num_free = 0x40001a8c; -r_os_msys_register = 0x40001a90; -r_os_msys_reset = 0x40001a94; -r_pri_phy_valid = 0x40001a98; -r_put_be16 = 0x40001a9c; -r_put_be24 = 0x40001aa0; -r_put_be32 = 0x40001aa4; -r_put_be64 = 0x40001aa8; -r_put_le16 = 0x40001aac; -r_put_le24 = 0x40001ab0; -r_put_le32 = 0x40001ab4; -r_put_le64 = 0x40001ab8; -r_rtc0_timer_handler = 0x40001abc; -r_sdkconfig_get_opts = 0x40001ac0; -r_sdkconfig_set_opts = 0x40001ac4; -r_sec_phy_valid = 0x40001ac8; -r_swap_buf = 0x40001acc; -r_swap_in_place = 0x40001ad0; -/* Data (.data, .bss, .rodata) */ -ble_lll_dtm_module_env_p = 0x3fcdffc4; -g_ble_lll_dtm_prbs15_data = 0x3ff4fee4; -g_ble_lll_dtm_prbs9_data = 0x3ff4fde4; -g_channel_rf_to_index = 0x3ff4fdbc; -g_ble_lll_rfmgmt_data = 0x3fcdff7c; -g_ble_sleep_enter_cb = 0x3fcdff78; -g_ble_sleep_exit_cb = 0x3fcdff74; -ble_lll_sched_env_p = 0x3fcdff70; -ble_ll_env_p = 0x3fcdff6c; -g_ble_ll_pdu_header_tx_time_ro = 0x3ff4fdb4; -ble_ll_adv_env_p = 0x3fcdff68; -ble_ll_conn_env_p = 0x3fcdff64; -ble_ll_conn_required_phy_mask = 0x3ff4fdb0; -ble_ll_valid_conn_phy_mask = 0x3ff4fdaf; -g_ble_ll_ctrl_pkt_lengths_ro = 0x3ff4fd8c; -ble_ll_hci_env_p = 0x3fcdff60; -g_debug_le_private_key = 0x3ff4fd6c; -g_ecc_key = 0x3fcdfefc; -ble_ll_rand_env_p = 0x3fcdfef8; -ble_ll_resolv_env_p = 0x3fcdfef4; -g_ble_ll_resolve_hdr = 0x3fcdfeec; -g_device_mode_default = 0x3fcdfe68; -ble_ll_scan_classify_filter_aux_check_cb = 0x3fcdfee8; -ble_ll_scan_classify_filter_check_cb = 0x3fcdfee4; -ble_ll_scan_env_p = 0x3fcdfee0; -g_ble_ll_supp_cmds_ro = 0x3ff4fd3c; -ble_ll_sync_env_p = 0x3fcdfedc; -g_ble_sca_ppm_tbl_ro = 0x3ff4fd2c; -priv_config_opts = 0x3fcdfe48; -ble_hci_uart_reset_cmd = 0x3ff4fd28; -ble_hci_trans_env_p = 0x3fcdfed8; -ble_hci_trans_mode = 0x3fcdfe44; -ble_hci_trans_funcs_ptr = 0x3fcdfed4; -r_ble_lll_stub_funcs_ptr = 0x3fcdfed0; -r_ble_stub_funcs_ptr = 0x3fcdfecc; -r_ext_funcs_p = 0x3fcdfec8; -r_npl_funcs = 0x3fcdfec4; -ble_hw_env_p = 0x3fcdfec0; -ble_phy_module_env_p = 0x3fcdfebc; -g_ble_phy_chan_freq_ro = 0x3ff4fd00; -g_ble_phy_mode_pkt_start_off_ro = 0x3ff4fcf8; -g_ble_phy_rxtx_ifs_compensation_ro = 0x3ff4fce8; -g_ble_phy_t_rxaddrdelay_ro = 0x3ff4fce4; -g_ble_phy_t_rxenddelay_ro = 0x3ff4fce0; -g_ble_phy_t_txdelay_ro = 0x3ff4fcdc; -g_ble_phy_t_txenddelay_ro = 0x3ff4fcd8; -g_ble_phy_txrx_ifs_compensation_ro = 0x3ff4fcc8; -hal_timer_env_p = 0x3fcdfeb8; -r_osi_coex_funcs_p = 0x3fcdfeb4; -bt_rf_coex_hooks = 0x3fcdfeac; -bt_rf_coex_hooks_p = 0x3fcdfea8; -coex_hook_st_group_tab = 0x3ff4fcbc; -coex_hook_st_group_to_coex_schm_st_tab = 0x3ff4fcb8; -s_ble_act_count_by_group = 0x3fcdfea4; -s_ble_coex_st_map = 0x3fcdfe90; -bt_rf_coex_cfg_cb = 0x3fcdfe74; -bt_rf_coex_cfg_p = 0x3fcdfe70; -bt_rf_coex_cfg_rom = 0x3ff4fc9c; -bt_rf_coex_pti_dft_p = 0x3fcdfe6c; -bt_rf_coex_pti_dft_rom = 0x3fcdfe04; -conn_dynamic_pti_param_rom = 0x3ff4fc84; -conn_phy_coded_max_data_time_param_rom = 0x3ff4fc80; -ext_adv_dynamic_pti_param_rom = 0x3ff4fc4c; -ext_scan_dynamic_param_rom = 0x3ff4fc14; -legacy_adv_dynamic_pti_param_rom = 0x3ff4fbf4; -per_adv_dynamic_pti_param_rom = 0x3ff4fbd8; -sync_dynamic_param_rom = 0x3ff4fbc0; -g_ble_plf_log_level = 0x3fcdfe00; -g_msys_pool_list = 0x3fcdfdf8; -g_os_mempool_list = 0x3fcdfdf0; - - -/*************************************** - Group rom_pp - ***************************************/ - -/* Functions */ -esp_pp_rom_version_get = 0x40001ad4; -RC_GetBlockAckTime = 0x40001ad8; -ebuf_list_remove = 0x40001adc; -esf_buf_alloc = 0x40001ae0; -esf_buf_alloc_dynamic = 0x40001ae4; -esf_buf_recycle = 0x40001ae8; -GetAccess = 0x40001aec; -hal_mac_is_low_rate_enabled = 0x40001af0; -hal_mac_tx_get_blockack = 0x40001af4; -hal_mac_tx_set_ppdu = 0x40001af8; -ic_get_trc = 0x40001afc; -ic_mac_deinit = 0x40001b00; -ic_mac_init = 0x40001b04; -ic_interface_enabled = 0x40001b08; -is_lmac_idle = 0x40001b0c; -lmacAdjustTimestamp = 0x40001b10; -lmacDiscardAgedMSDU = 0x40001b14; -lmacDiscardMSDU = 0x40001b18; -lmacEndFrameExchangeSequence = 0x40001b1c; -lmacIsIdle = 0x40001b20; -lmacIsLongFrame = 0x40001b24; -lmacMSDUAged = 0x40001b28; -lmacPostTxComplete = 0x40001b2c; -lmacProcessAllTxTimeout = 0x40001b30; -lmacProcessCollisions = 0x40001b34; -lmacProcessRxSucData = 0x40001b38; -lmacReachLongLimit = 0x40001b3c; -lmacReachShortLimit = 0x40001b40; -lmacRecycleMPDU = 0x40001b44; -lmacRxDone = 0x40001b48; -lmacSetTxFrame = 0x40001b4c; -lmacTxDone = 0x40001b50; -lmacTxFrame = 0x40001b54; -mac_tx_set_duration = 0x40001b58; -mac_tx_set_htsig = 0x40001b5c; -mac_tx_set_plcp0 = 0x40001b60; -mac_tx_set_plcp1 = 0x40001b64; -mac_tx_set_plcp2 = 0x40001b68; -pm_check_state = 0x40001b6c; -pm_disable_dream_timer = 0x40001b70; -pm_disable_sleep_delay_timer = 0x40001b74; -pm_dream = 0x40001b78; -pm_mac_wakeup = 0x40001b7c; -pm_mac_sleep = 0x40001b80; -pm_enable_active_timer = 0x40001b84; -pm_enable_sleep_delay_timer = 0x40001b88; -pm_local_tsf_process = 0x40001b8c; -pm_set_beacon_filter = 0x40001b90; -pm_is_in_wifi_slice_threshold = 0x40001b94; -pm_is_waked = 0x40001b98; -pm_keep_alive = 0x40001b9c; -pm_on_beacon_rx = 0x40001ba0; -pm_on_data_rx = 0x40001ba4; -pm_on_tbtt = 0x40001ba8; -pm_parse_beacon = 0x40001bac; -pm_process_tim = 0x40001bb0; -pm_rx_beacon_process = 0x40001bb4; -pm_rx_data_process = 0x40001bb8; -pm_sleep = 0x40001bbc; -pm_sleep_for = 0x40001bc0; -pm_tbtt_process = 0x40001bc4; -ppAMPDU2Normal = 0x40001bc8; -ppAssembleAMPDU = 0x40001bcc; -ppCalFrameTimes = 0x40001bd0; -ppCalSubFrameLength = 0x40001bd4; -ppCalTxAMPDULength = 0x40001bd8; -ppCheckTxAMPDUlength = 0x40001bdc; -ppDequeueRxq_Locked = 0x40001be0; -ppDequeueTxQ = 0x40001be4; -ppEmptyDelimiterLength = 0x40001be8; -ppEnqueueRxq = 0x40001bec; -ppEnqueueTxDone = 0x40001bf0; -ppGetTxQFirstAvail_Locked = 0x40001bf4; -ppGetTxframe = 0x40001bf8; -ppMapTxQueue = 0x40001bfc; -ppProcTxSecFrame = 0x40001c00; -ppProcessRxPktHdr = 0x40001c04; -ppProcessTxQ = 0x40001c08; -ppRecordBarRRC = 0x40001c0c; -lmacRequestTxopQueue = 0x40001c10; -lmacReleaseTxopQueue = 0x40001c14; -ppRecycleAmpdu = 0x40001c18; -ppRecycleRxPkt = 0x40001c1c; -ppResortTxAMPDU = 0x40001c20; -ppResumeTxAMPDU = 0x40001c24; -ppRxFragmentProc = 0x40001c28; -ppRxPkt = 0x40001c2c; -ppRxProtoProc = 0x40001c30; -ppSearchTxQueue = 0x40001c34; -ppSearchTxframe = 0x40001c38; -ppSelectNextQueue = 0x40001c3c; -ppSubFromAMPDU = 0x40001c40; -ppTask = 0x40001c44; -ppTxPkt = 0x40001c48; -ppTxProtoProc = 0x40001c4c; -ppTxqUpdateBitmap = 0x40001c50; -pp_coex_tx_request = 0x40001c54; -pp_hdrsize = 0x40001c58; -pp_post = 0x40001c5c; -pp_process_hmac_waiting_txq = 0x40001c60; -rcGetAmpduSched = 0x40001c64; -rcUpdateRxDone = 0x40001c68; -rc_get_trc = 0x40001c6c; -rc_get_trc_by_index = 0x40001c70; -rcAmpduLowerRate = 0x40001c74; -rcampduuprate = 0x40001c78; -rcClearCurAMPDUSched = 0x40001c7c; -rcClearCurSched = 0x40001c80; -rcClearCurStat = 0x40001c84; -rcGetSched = 0x40001c88; -rcLowerSched = 0x40001c8c; -rcSetTxAmpduLimit = 0x40001c90; -rcTxUpdatePer = 0x40001c94; -rcUpdateAckSnr = 0x40001c98; -rcUpdateRate = 0x40001c9c; -rcUpdateTxDone = 0x40001ca0; -rcUpdateTxDoneAmpdu2 = 0x40001ca4; -rcUpSched = 0x40001ca8; -rssi_margin = 0x40001cac; -rx11NRate2AMPDULimit = 0x40001cb0; -TRC_AMPDU_PER_DOWN_THRESHOLD = 0x40001cb4; -TRC_AMPDU_PER_UP_THRESHOLD = 0x40001cb8; -trc_calc_duration = 0x40001cbc; -trc_isTxAmpduOperational = 0x40001cc0; -trc_onAmpduOp = 0x40001cc4; -TRC_PER_IS_GOOD = 0x40001cc8; -trc_SetTxAmpduState = 0x40001ccc; -trc_tid_isTxAmpduOperational = 0x40001cd0; -trcAmpduSetState = 0x40001cd4; -wDevCheckBlockError = 0x40001cd8; -wDev_AppendRxBlocks = 0x40001cdc; -wDev_DiscardFrame = 0x40001ce0; -wDev_GetNoiseFloor = 0x40001ce4; -wDev_IndicateAmpdu = 0x40001ce8; -wDev_IndicateFrame = 0x40001cec; -wdev_mac_reg_load = 0x40001cf0; -wdev_mac_reg_store = 0x40001cf4; -wdev_mac_special_reg_load = 0x40001cf8; -wdev_mac_special_reg_store = 0x40001cfc; -wdev_mac_wakeup = 0x40001d00; -wdev_mac_sleep = 0x40001d04; -wDev_ProcessFiq = 0x40001d08; -wDev_ProcessRxSucData = 0x40001d0c; -wdevProcessRxSucDataAll = 0x40001d10; -wdev_csi_len_align = 0x40001d14; -ppDequeueTxDone_Locked = 0x40001d18; -ppProcTxDone = 0x40001d1c; -pm_tx_data_done_process = 0x40001d20; -config_is_cache_tx_buf_enabled = 0x40001d24; -ppMapWaitTxq = 0x40001d28; -ppProcessWaitingQueue = 0x40001d2c; -ppDisableQueue = 0x40001d30; -pm_allow_tx = 0x40001d34; -wdev_is_data_in_rxlist = 0x40001d38; -ppProcTxCallback = 0x40001d3c; -pm_is_open = 0x40001d40; -pm_wake_up = 0x40001d44; -pm_wake_done = 0x40001d48; -pm_disable_disconnected_sleep_delay_timer = 0x40001d4c; -pm_enable_disconnected_sleep_delay_timer = 0x40001d50; -hal_mac_get_txq_state = 0x40001d54; -hal_mac_clr_txq_state = 0x40001d58; -hal_mac_tx_set_cca = 0x40001d5c; -hal_mac_set_txq_invalid = 0x40001d60; -hal_mac_txq_disable = 0x40001d64; -hal_mac_is_txq_enabled = 0x40001d68; -hal_mac_get_txq_pmd = 0x40001d6c; -lmacDiscardFrameExchangeSequence = 0x40001d70; -lmacDisableTransmit = 0x40001d74; -lmacProcessTxTimeout = 0x40001d78; -lmacProcessTxSuccess = 0x40001d7c; -lmacProcessCollision = 0x40001d80; -lmacProcessTxRtsError = 0x40001d84; -lmacProcessCtsTimeout = 0x40001d88; -lmacProcessTxComplete = 0x40001d8c; -lmacProcessAckTimeout = 0x40001d90; -lmacProcessTxError = 0x40001d94; -lmacProcessTxseckiderr = 0x40001d98; -rcReachRetryLimit = 0x40001d9c; -lmacProcessShortRetryFail = 0x40001da0; -lmacEndRetryAMPDUFail = 0x40001da4; -ppFillAMPDUBar = 0x40001da8; -rcGetRate = 0x40001dac; -ppReSendBar = 0x40001db0; -lmacProcessLongRetryFail = 0x40001db4; -lmacRetryTxFrame = 0x40001db8; -lmacProcessCollisions_task = 0x40001dbc; -lmacProcessTxopQComplete = 0x40001dc0; -lmacInitAc = 0x40001dc4; -lmacInit = 0x40001dc8; -mac_tx_set_txop_q = 0x40001dcc; -hal_init = 0x40001dd0; -hal_mac_rx_set_policy = 0x40001dd4; -hal_mac_set_bssid = 0x40001dd8; -mac_rx_policy_init = 0x40001ddc; -mac_txrx_init = 0x40001de0; -mac_rxbuf_init = 0x40001de4; -mac_last_rxbuf_init = 0x40001de8; -hal_attenna_init = 0x40001dec; -hal_timer_update_by_rtc = 0x40001df0; -hal_coex_pti_init = 0x40001df4; -lmac_stop_hw_txq = 0x40001df8; -ppDirectRecycleAmpdu = 0x40001dfc; -esp_wifi_internal_set_rts = 0x40001e00; -esp_wifi_internal_get_rts = 0x40001e04; -ppTxFragmentProc = 0x40001e08; -esf_buf_setup = 0x40001e0c; -hal_agreement_add_rx_ba = 0x40001e10; -hal_agreement_del_rx_ba = 0x40001e14; -hal_crypto_set_key_entry = 0x40001e18; -hal_crypto_get_key_entry = 0x40001e1c; -hal_crypto_clr_key_entry = 0x40001e20; -config_get_wifi_task_stack_size = 0x40001e24; -pp_create_task = 0x40001e28; -hal_set_sta_tsf_wakeup = 0x40001e2c; -hal_set_rx_beacon_pti = 0x40001e30; -pm_start = 0x40001e34; -pm_stop = 0x40001e38; -hal_disable_sta_tbtt = 0x40001e3c; -ppCalTxopDur = 0x40001e40; -wDev_IndicateCtrlFrame = 0x40001e44; -hal_enable_sta_tbtt = 0x40001e48; -hal_set_sta_tbtt = 0x40001e4c; -pm_update_next_tbtt = 0x40001e50; -pm_set_sleep_type = 0x40001e54; -wDev_Rxbuf_Init = 0x40001e58; -wDev_Rxbuf_Deinit = 0x40001e5c; -ppCalTkipMic = 0x40001e60; -wDev_SnifferRxData = 0x40001e64; -hal_crypto_enable = 0x40001e68; -hal_crypto_disable = 0x40001e6c; -wDev_Insert_KeyEntry = 0x40001e70; -wDev_remove_KeyEntry = 0x40001e74; -rc_enable_trc = 0x40001e78; -rc_set_per_conn_fix_rate = 0x40001e7c; -wdev_csi_rx_process = 0x40001e80; -wDev_SnifferRxAmpdu = 0x40001e84; -hal_mac_tsf_reset = 0x40001e88; -dbg_lmac_statis_dump = 0x40001e8c; -dbg_lmac_rxtx_statis_dump = 0x40001e90; -dbg_lmac_hw_statis_dump = 0x40001e94; -dbg_lmac_diag_statis_dump = 0x40001e98; -dbg_lmac_ps_statis_dump = 0x40001e9c; -pp_timer_do_process = 0x40001ea0; -rcUpdateAMPDUParam = 0x40001ea4; -rcUpdatePhyMode = 0x40001ea8; -rcGetHighestRateIdx = 0x40001eac; -pm_tx_null_data_done_process = 0x40001eb0; -pm_tx_data_process = 0x40001eb4; -pm_attach = 0x40001eb8; -pm_coex_schm_process = 0x40001ebc; -ppInitTxq = 0x40001ec0; -pp_attach = 0x40001ec4; -pp_deattach = 0x40001ec8; -pm_on_probe_resp_rx = 0x40001ecc; -hal_set_sta_tsf = 0x40001ed0; -ic_update_sta_tsf = 0x40001ed4; -ic_tx_pkt = 0x40001ed8; -pm_send_probe_stop = 0x40001edc; -pm_send_probe_start = 0x40001ee0; -pm_on_coex_schm_process_restart = 0x40001ee4; -hal_mac_set_rxq_policy = 0x40001ee8; -hal_sniffer_enable = 0x40001eec; -hal_sniffer_disable = 0x40001ef0; -hal_sniffer_rx_set_promis = 0x40001ef4; -hal_sniffer_rx_clr_statistics = 0x40001ef8; -hal_sniffer_set_promis_misc_pkt = 0x40001efc; -tsf_hal_set_tsf_enable = 0x40001f00; -tsf_hal_set_tsf_disable = 0x40001f04; -tsf_hal_is_tsf_enabled = 0x40001f08; -tsf_hal_set_modem_wakeup_early_time = 0x40001f0c; -tsf_hal_get_counter_value = 0x40001f10; -tsf_hal_set_counter_value = 0x40001f14; -tsf_hal_get_time = 0x40001f18; -tsf_hal_set_time = 0x40001f1c; -tsf_hal_set_tbtt_enable = 0x40001f20; -tsf_hal_set_tbtt_disable = 0x40001f24; -tsf_hal_set_tbtt_intr_enable = 0x40001f28; -tsf_hal_set_tbtt_intr_disable = 0x40001f2c; -tsf_hal_set_tbtt_soc_wakeup_enable = 0x40001f30; -tsf_hal_set_tbtt_soc_wakeup_disable = 0x40001f34; -tsf_hal_set_tbtt_start_time = 0x40001f38; -tsf_hal_set_tbtt_early_time = 0x40001f3c; -tsf_hal_set_tbtt_interval = 0x40001f40; -tsf_hal_get_tbtt_interval = 0x40001f44; -tsf_hal_set_timer_enable = 0x40001f48; -tsf_hal_set_timer_disable = 0x40001f4c; -tsf_hal_set_timer_target = 0x40001f50; -tsf_hal_get_timer_target = 0x40001f54; -tsf_hal_set_timer_intr_enable = 0x40001f58; -tsf_hal_set_timer_intr_disable = 0x40001f5c; -tsf_hal_set_timer_soc_wakeup_enable = 0x40001f60; -tsf_hal_set_timer_soc_wakeup_disable = 0x40001f64; -pm_disconnected_wake = 0x40001f68; -pm_get_connectionless_status = 0x40001f6c; -pm_update_by_connectionless_status = 0x40001f70; -pm_connectionless_wake_interval_timeout_process = 0x40001f74; -pm_connectionless_wake_window_timeout_process = 0x40001f78; -/* Data (.data, .bss, .rodata) */ -our_instances_ptr = 0x3ff4fbbc; -pTxRx = 0x3fcdfdec; -lmacConfMib_ptr = 0x3fcdfde8; -our_wait_eb = 0x3fcdfde4; -our_tx_eb = 0x3fcdfde0; -pp_wdev_funcs = 0x3fcdfddc; -g_osi_funcs_p = 0x3fcdfdd8; -wDevCtrl_ptr = 0x3fcdfdd4; -g_wdev_last_desc_reset_ptr = 0x3ff4fbb8; -wDevMacSleep_ptr = 0x3fcdfdd0; -g_lmac_cnt_ptr = 0x3fcdfdcc; -our_controls_ptr = 0x3ff4fbb4; -pp_sig_cnt_ptr = 0x3fcdfdc8; -g_eb_list_desc_ptr = 0x3fcdfdc4; -s_fragment_ptr = 0x3fcdfdc0; -if_ctrl_ptr = 0x3fcdfdbc; -g_intr_lock_mux = 0x3fcdfdb8; -g_wifi_global_lock = 0x3fcdfdb4; -s_wifi_queue = 0x3fcdfdb0; -pp_task_hdl = 0x3fcdfdac; -s_pp_task_create_sem = 0x3fcdfda8; -s_pp_task_del_sem = 0x3fcdfda4; -g_wifi_menuconfig_ptr = 0x3fcdfda0; -xphyQueue = 0x3fcdfd9c; -ap_no_lr_ptr = 0x3fcdfd98; -rc11BSchedTbl_ptr = 0x3fcdfd94; -rc11NSchedTbl_ptr = 0x3fcdfd90; -rcLoRaSchedTbl_ptr = 0x3fcdfd8c; -BasicOFDMSched_ptr = 0x3fcdfd88; -trc_ctl_ptr = 0x3fcdfd84; -g_pm_cnt_ptr = 0x3fcdfd80; -g_pm_ptr = 0x3fcdfd7c; -g_pm_cfg_ptr = 0x3fcdfd78; -g_esp_mesh_quick_funcs_ptr = 0x3fcdfd74; -g_txop_queue_status_ptr = 0x3fcdfd70; -g_mac_sleep_en_ptr = 0x3fcdfd6c; -g_mesh_is_root_ptr = 0x3fcdfd68; -g_mesh_topology_ptr = 0x3fcdfd64; -g_mesh_init_ps_type_ptr = 0x3fcdfd60; -g_mesh_is_started_ptr = 0x3fcdfd5c; -g_config_func = 0x3fcdfd58; -g_net80211_tx_func = 0x3fcdfd54; -g_timer_func = 0x3fcdfd50; -s_michael_mic_failure_cb = 0x3fcdfd4c; -wifi_sta_rx_probe_req = 0x3fcdfd48; -g_tx_done_cb_func = 0x3fcdfd44; -g_per_conn_trc = 0x3fcdfd28; -s_encap_amsdu_func = 0x3fcdfd24; -bars = 0x3fcdfc84; -eb_txdesc_space = 0x3fcdfbf4; -eb_space = 0x3fcdfb54; -g_pd_mac_in_light_sleep = 0x3fcdfb50; -s_fix_rate_mask = 0x3fcdfb4c; -s_fix_rate = 0x3fcdfb44; -g_wdev_csi_rx = 0x3fcdfb40; -g_wdev_csi_rx_ctx = 0x3fcdfb3c; -BcnSendTick = 0x3fcdfb38; -g_pp_timer_info_ptr = 0x3fcdfb34; -rcP2P11NSchedTbl_ptr = 0x3fcdfb30; -rcP2P11GSchedTbl_ptr = 0x3fcdfb2c; -rc11GSchedTbl_ptr = 0x3fcdfb28; - - -/*************************************** - Group rom_net80211 - ***************************************/ - -/* Functions */ -esp_net80211_rom_version_get = 0x40001f7c; -ampdu_dispatch = 0x40001f80; -ampdu_dispatch_all = 0x40001f84; -ampdu_dispatch_as_many_as_possible = 0x40001f88; -ampdu_dispatch_movement = 0x40001f8c; -ampdu_dispatch_upto = 0x40001f90; -chm_is_at_home_channel = 0x40001f94; -cnx_node_is_existing = 0x40001f98; -cnx_node_search = 0x40001f9c; -ic_ebuf_recycle_rx = 0x40001fa0; -ic_ebuf_recycle_tx = 0x40001fa4; -ic_reset_rx_ba = 0x40001fa8; -ieee80211_align_eb = 0x40001fac; -ieee80211_ampdu_reorder = 0x40001fb0; -ieee80211_ampdu_start_age_timer = 0x40001fb4; -ieee80211_encap_esfbuf = 0x40001fb8; -ieee80211_is_tx_allowed = 0x40001fbc; -ieee80211_output_pending_eb = 0x40001fc0; -ieee80211_output_process = 0x40001fc4; -ieee80211_set_tx_desc = 0x40001fc8; -sta_input = 0x40001fcc; -wifi_get_macaddr = 0x40001fd0; -wifi_rf_phy_disable = 0x40001fd4; -wifi_rf_phy_enable = 0x40001fd8; -ic_ebuf_alloc = 0x40001fdc; -ieee80211_classify = 0x40001fe0; -ieee80211_copy_eb_header = 0x40001fe4; -ieee80211_recycle_cache_eb = 0x40001fe8; -ieee80211_search_node = 0x40001fec; -roundup2 = 0x40001ff0; -ieee80211_crypto_encap = 0x40001ff4; -ieee80211_crypto_decap = 0x40001ff8; -ieee80211_decap = 0x40001ffc; -ieee80211_set_tx_pti = 0x40002000; -wifi_is_started = 0x40002004; -ieee80211_gettid = 0x40002008; -ieee80211_ccmp_decrypt = 0x4000200c; -ieee80211_ccmp_encrypt = 0x40002010; -ccmp_encap = 0x40002014; -ccmp_decap = 0x40002018; -tkip_encap = 0x4000201c; -tkip_decap = 0x40002020; -wep_encap = 0x40002024; -wep_decap = 0x40002028; -dbg_hmac_rxtx_statis_dump = 0x4000202c; -dbg_hmac_statis_dump = 0x40002030; -ieee80211_send_action_vendor_spec = 0x40002034; -ieee80211_send_mgmt = 0x40002038; -ieee80211_auth_construct = 0x4000203c; -ieee80211_deauth_construct = 0x40002040; -ieee80211_disassoc_construct = 0x40002044; -ieee80211_vnd_lora_ie_size = 0x40002048; -ieee80211_vnd_ie_size = 0x4000204c; -ieee80211_add_ssid = 0x40002050; -ieee80211_add_rates = 0x40002054; -ieee80211_add_xrates = 0x40002058; -ieee80211_is_ht_cipher = 0x4000205c; -ieee80211_assoc_req_construct = 0x40002060; -ieee80211_assoc_resp_construct = 0x40002064; -ieee80211_setup_lr_rates = 0x40002068; -ieee80211_ht_node_init = 0x4000206c; -ieee80211_is_support_rate = 0x40002070; -ieee80211_setup_rates = 0x40002074; -ieee80211_is_lr_only = 0x40002078; -ieee80211_setup_phy_mode = 0x4000207c; -ieee80211_sta_is_connected = 0x40002080; -current_task_is_wifi_task = 0x40002084; -wifi_get_init_state = 0x40002088; -ieee80211_timer_process = 0x4000208c; -cnx_coexist_timeout = 0x40002090; -sta_recv_mgmt = 0x40002094; -ieee80211_send_setup = 0x40002098; -ieee80211_send_probereq = 0x4000209c; -sta_auth_open = 0x400020a0; -sta_auth_shared = 0x400020a4; -sta_auth_sae = 0x400020a8; -cnx_coexist_timeout_process = 0x400020ac; -ieee80211_alloc_challenge = 0x400020b0; -cnx_assoc_timeout = 0x400020b4; -ieee80211_vnd_ie_set = 0x400020b8; -ieee80211_vnd_lora_ie_set = 0x400020bc; -ieee80211_add_wme_param = 0x400020c0; -ieee80211_add_dsparams = 0x400020c4; -ieee80211_add_csa = 0x400020c8; -ieee80211_add_extcap = 0x400020cc; -ieee80211_regdomain_get_country = 0x400020d0; -ieee80211_add_countryie = 0x400020d4; -ieee80211_alloc_proberesp = 0x400020d8; -ieee80211_amsdu_adjust_head = 0x400020dc; -ieee80211_amsdu_adjust_last_length = 0x400020e0; -ieee80211_amsdu_send_check = 0x400020e4; -ieee80211_amsdu_encap_check = 0x400020e8; -ieee80211_amsdu_length_check = 0x400020ec; -ieee80211_encap_amsdu = 0x400020f0; -ieee80211_output_raw_process = 0x400020f4; -esp_wifi_80211_tx = 0x400020f8; -ieee80211_raw_frame_sanity_check = 0x400020fc; -ieee80211_crypto_aes_128_cmac_encrypt = 0x40002100; -ieee80211_crypto_aes_128_cmac_decrypt = 0x40002104; -ieee80211_alloc_tx_buf = 0x40002108; -ieee80211_output_do = 0x4000210c; -ieee80211_send_nulldata = 0x40002110; -ieee80211_setup_robust_mgmtframe = 0x40002114; -ieee80211_mgmt_output = 0x40002118; -ieee80211_encap_null_data = 0x4000211c; -ieee80211_send_deauth = 0x40002120; -ieee80211_alloc_deauth = 0x40002124; -ieee80211_send_proberesp = 0x40002128; -ieee80211_tx_mgt_cb = 0x4000212c; -ieee80211_getcapinfo = 0x40002130; -sta_rx_csa = 0x40002134; -sta_send_sa_query_req = 0x40002138; -sta_send_sa_query_resp = 0x4000213c; -sta_recv_sa_query_req = 0x40002140; -sta_recv_sa_query_resp = 0x40002144; -ieee80211_parse_beacon = 0x40002148; -ieee80211_set_max_rate = 0x4000214c; -ic_set_sta = 0x40002150; -ieee80211_match_security = 0x40002154; -ieee80211_parse_wpa = 0x40002158; -ieee80211_parse_rsn = 0x4000215c; -ieee80211_add_assoc_req_ies = 0x40002160; -ieee80211_add_probe_req_ies = 0x40002164; -/* Data (.data, .bss, .rodata) */ -net80211_funcs = 0x3fcdfb24; -g_scan = 0x3fcdfb20; -g_chm = 0x3fcdfb1c; -g_ic_ptr = 0x3fcdfb18; -g_hmac_cnt_ptr = 0x3fcdfaf4; -g_tx_cacheq_ptr = 0x3fcdfb14; -s_netstack_free = 0x3fcdfb10; -mesh_rxcb = 0x3fcdfb0c; -sta_rxcb = 0x3fcdfb08; -ccmp_ptr = 0x3fcdfb04; -s_wifi_nvs_ptr = 0x3fcdfb00; -tkip_ptr = 0x3fcdfafc; -wep_ptr = 0x3fcdfaf8; -g_hmac_cnt_ptr = 0x3fcdfaf4; -g_misc_nvs = 0x3fcdfaf0; -s_wifi_init_state = 0x3fcdfac0; -s_wifi_task_hdl = 0x3fcdfaec; -in_rssi_adjust = 0x3fcdfae8; -rssi_saved = 0x3fcdfae0; -rssi_index = 0x3fcdfadc; -s_sa_query_retries = 0x3fcdfad8; -s_sa_query_success = 0x3fcdfad5; -g_sta_connected_flag = 0x3fcdfad4; -wpa_crypto_funcs_ptr = 0x3fcdfad0; -s_netstack_ref = 0x3fcdfacc; -sta_csa_timer_ptr = 0x3fcdfac8; -s_trans_id = 0x3fcdfac4; - - -/*************************************** - Group rom_coexist - ***************************************/ - -/* Functions */ -esp_coex_rom_version_get = 0x40002168; -coex_bt_release = 0x4000216c; -coex_bt_request = 0x40002170; -coex_core_ble_conn_dyn_prio_get = 0x40002174; -coex_core_event_duration_get = 0x40002178; -coex_core_pti_get = 0x4000217c; -coex_core_release = 0x40002180; -coex_core_request = 0x40002184; -coex_core_status_get = 0x40002188; -coex_core_timer_idx_get = 0x4000218c; -coex_event_duration_get = 0x40002190; -coex_hw_timer_disable = 0x40002194; -coex_hw_timer_enable = 0x40002198; -coex_hw_timer_set = 0x4000219c; -coex_schm_interval_set = 0x400021a0; -coex_schm_lock = 0x400021a4; -coex_schm_unlock = 0x400021a8; -coex_status_get = 0x400021ac; -coex_wifi_release = 0x400021b0; -esp_coex_ble_conn_dynamic_prio_get = 0x400021b4; -coex_hw_timer_tick_get = 0x400021b8; -/* Data (.data, .bss, .rodata) */ -coex_env_ptr = 0x3fcdfabc; -coex_pti_tab_ptr = 0x3fcdfab8; -coex_schm_env_ptr = 0x3fcdfab4; -coexist_funcs = 0x3fcdfab0; -g_coa_funcs_p = 0x3fcdfaac; -g_coex_param_ptr = 0x3fcdfaa8; - - -/*************************************** - Group rom_phy - ***************************************/ - -/* Functions */ -phy_param_addr = 0x400021bc; -phy_get_romfuncs = 0x400021c0; -chip729_phyrom_version = 0x400021c4; -chip729_phyrom_version_num = 0x400021c8; -rom_get_rc_dout = 0x400021cc; -rc_cal = 0x400021d0; -phy_analog_delay_cal = 0x400021d4; -phy_rx_rifs_en = 0x400021d8; -phy_current_level_set = 0x400021dc; -phy_bbpll_en_usb = 0x400021e0; -phy_bt_power_track = 0x400021e4; -phy_xpd_tsens = 0x400021e8; -bb_wdt_rst_enable = 0x400021ec; -bb_wdt_int_enable = 0x400021f0; -bb_wdt_timeout_clear = 0x400021f4; -bb_wdt_get_status = 0x400021f8; -rom_enter_critical_phy = 0x400021fc; -rom_exit_critical_phy = 0x40002200; -rom_bb_bss_cbw40 = 0x40002204; -rom_set_chan_reg = 0x40002208; -abs_temp = 0x4000220c; -set_chan_cal_interp = 0x40002210; -loopback_mode_en = 0x40002214; -get_data_sat = 0x40002218; -phy_byte_to_word = 0x4000221c; -phy_get_rx_freq = 0x40002220; -i2c_master_reset = 0x40002224; -chan14_mic_enable = 0x40002228; -chan14_mic_cfg = 0x4000222c; -set_adc_rand = 0x40002230; -phy_set_most_tpw = 0x40002234; -phy_get_most_tpw = 0x40002238; -esp_tx_state_out = 0x4000223c; -phy_get_adc_rand = 0x40002240; -phy_internal_delay = 0x40002244; -phy_ftm_comp = 0x40002248; -phy_11p_set = 0x4000224c; -phy_freq_mem_backup = 0x40002250; -ant_dft_cfg = 0x40002254; -ant_wifitx_cfg = 0x40002258; -ant_wifirx_cfg = 0x4000225c; -ant_bttx_cfg = 0x40002260; -ant_btrx_cfg = 0x40002264; -phy_chan_dump_cfg = 0x40002268; -phy_enable_low_rate = 0x4000226c; -phy_disable_low_rate = 0x40002270; -phy_dig_reg_backup = 0x40002274; -phy_chan_filt_set = 0x40002278; -phy_rx11blr_cfg = 0x4000227c; -set_cca = 0x40002280; -set_rx_sense = 0x40002284; -rx_gain_force = 0x40002288; -rom_phy_en_hw_set_freq = 0x4000228c; -rom_phy_dis_hw_set_freq = 0x40002290; -wr_rf_freq_mem = 0x40002294; -freq_i2c_write_set = 0x40002298; -write_pll_cap_mem = 0x4000229c; -pll_dac_mem_update = 0x400022a0; -pll_cap_mem_update = 0x400022a4; -get_rf_freq_cap = 0x400022a8; -get_rf_freq_init = 0x400022ac; -freq_get_i2c_data = 0x400022b0; -freq_i2c_data_write = 0x400022b4; -set_chan_freq_hw_init = 0x400022b8; -set_chan_freq_sw_start = 0x400022bc; -rom_get_i2c_read_mask = 0x400022c0; -rom_get_i2c_mst0_mask = 0x400022c4; -rom_get_i2c_hostid = 0x400022c8; -rom_chip_i2c_readReg_org = 0x400022cc; -rom_chip_i2c_readReg = 0x400022d0; -rom_i2c_paral_set_mst0 = 0x400022d4; -rom_i2c_paral_set_read = 0x400022d8; -rom_i2c_paral_read = 0x400022dc; -rom_i2c_paral_write = 0x400022e0; -rom_i2c_paral_write_num = 0x400022e4; -rom_i2c_paral_write_mask = 0x400022e8; -rom_i2c_readReg = 0x400022ec; -rom_chip_i2c_writeReg = 0x400022f0; -rom_i2c_writeReg = 0x400022f4; -rom_i2c_readReg_Mask = 0x400022f8; -rom_i2c_writeReg_Mask = 0x400022fc; -rom_set_txcap_reg = 0x40002300; -i2c_sar2_init_code = 0x40002304; -phy_i2c_init1 = 0x40002308; -phy_i2c_init2 = 0x4000230c; -phy_get_i2c_data = 0x40002310; -bias_reg_set = 0x40002314; -i2c_rc_cal_set = 0x40002318; -i2c_bbpll_set = 0x4000231c; -rom_phy_xpd_rf = 0x40002320; -phy_wakeup_init_rom = 0x40002324; -register_chipv7_phy_init_param = 0x40002328; -phy_reg_init = 0x4000232c; -phy_close_rf_rom = 0x40002330; -rom_pbus_force_mode = 0x40002334; -rom_pbus_rd_addr = 0x40002338; -rom_pbus_rd_shift = 0x4000233c; -rom_pbus_force_test = 0x40002340; -rom_pbus_rd = 0x40002344; -rom_pbus_debugmode = 0x40002348; -rom_pbus_workmode = 0x4000234c; -rom_pbus_set_rxgain = 0x40002350; -rom_pbus_xpd_rx_off = 0x40002354; -rom_pbus_xpd_rx_on = 0x40002358; -rom_pbus_xpd_tx_off = 0x4000235c; -rom_pbus_xpd_tx_on = 0x40002360; -rom_pbus_set_dco = 0x40002364; -rom_set_loopback_gain = 0x40002368; -rom_txcal_debuge_mode = 0x4000236c; -rom_txcal_work_mode = 0x40002370; -set_pbus_mem = 0x40002374; -rom_pwdet_sar2_init = 0x40002378; -rom_en_pwdet = 0x4000237c; -rom_get_sar_sig_ref = 0x40002380; -rom_pwdet_tone_start = 0x40002384; -rom_get_tone_sar_dout = 0x40002388; -rom_get_fm_sar_dout = 0x4000238c; -rom_txtone_linear_pwr = 0x40002390; -rom_get_power_db = 0x40002394; -rom_meas_tone_pwr_db = 0x40002398; -rom_pkdet_vol_start = 0x4000239c; -rom_read_sar_dout = 0x400023a0; -rom_read_sar2_code = 0x400023a4; -rom_get_sar2_vol = 0x400023a8; -rom_get_pll_vol = 0x400023ac; -rom_tx_pwctrl_bg_init = 0x400023b0; -rom_phy_pwdet_always_en = 0x400023b4; -rom_phy_pwdet_onetime_en = 0x400023b8; -linear_to_db = 0x400023bc; -rom_disable_agc = 0x400023c0; -rom_enable_agc = 0x400023c4; -rom_disable_wifi_agc = 0x400023c8; -rom_enable_wifi_agc = 0x400023cc; -rom_write_gain_mem = 0x400023d0; -rom_bb_bss_cbw40_dig = 0x400023d4; -rom_cbw2040_cfg = 0x400023d8; -rom_mac_tx_chan_offset = 0x400023dc; -rom_tx_paon_set = 0x400023e0; -rom_i2cmst_reg_init = 0x400023e4; -rom_bt_gain_offset = 0x400023e8; -rom_fe_reg_init = 0x400023ec; -rom_mac_enable_bb = 0x400023f0; -rom_bb_wdg_cfg = 0x400023f4; -rom_fe_txrx_reset = 0x400023f8; -rom_set_rx_comp = 0x400023fc; -rom_write_chan_freq = 0x40002400; -rom_agc_reg_init = 0x40002404; -rom_bb_reg_init = 0x40002408; -rom_write_txrate_power_offset = 0x4000240c; -rom_open_i2c_xpd = 0x40002410; -rom_txiq_set_reg = 0x40002414; -rom_rxiq_set_reg = 0x40002418; -rom_phy_bbpll_cal = 0x4000241c; -phy_disable_cca = 0x40002420; -phy_enable_cca = 0x40002424; -force_txon = 0x40002428; -set_txclk_en = 0x4000242c; -set_rxclk_en = 0x40002430; -start_tx_tone_step = 0x40002434; -stop_tx_tone = 0x40002438; -bb_wdg_test_en = 0x4000243c; -noise_floor_auto_set = 0x40002440; -read_hw_noisefloor = 0x40002444; -iq_corr_enable = 0x40002448; -bt_tx_dig_gain = 0x4000244c; -wifi_tx_dig_reg = 0x40002450; -wifi_agc_sat_gain = 0x40002454; -phy_ant_init = 0x40002458; -phy_set_bbfreq_init = 0x4000245c; -wifi_fbw_sel = 0x40002460; -phy_rx_sense_set = 0x40002464; -tx_state_set = 0x40002468; -phy_close_pa = 0x4000246c; -bt_filter_reg = 0x40002470; -phy_freq_correct = 0x40002474; -set_pbus_reg = 0x40002478; -wifi_rifs_mode_en = 0x4000247c; -rfagc_disable = 0x40002480; -rom_restart_cal = 0x40002484; -rom_write_rfpll_sdm = 0x40002488; -rom_wait_rfpll_cal_end = 0x4000248c; -rom_rfpll_set_freq = 0x40002490; -rom_rfpll_cap_init_cal = 0x40002494; -rom_set_rfpll_freq = 0x40002498; -rom_write_pll_cap = 0x4000249c; -rom_read_pll_cap = 0x400024a0; -mhz2ieee = 0x400024a4; -chan_to_freq = 0x400024a8; -set_rf_freq_offset = 0x400024ac; -set_channel_rfpll_freq = 0x400024b0; -rfpll_cap_correct = 0x400024b4; -phy_set_freq = 0x400024b8; -correct_rfpll_offset = 0x400024bc; -pll_vol_cal = 0x400024c0; -chip_v7_set_chan_misc = 0x400024c4; -chip_v7_set_chan = 0x400024c8; -chip_v7_set_chan_offset = 0x400024cc; -chip_v7_set_chan_ana = 0x400024d0; -set_chanfreq = 0x400024d4; -rom_rxiq_cover_mg_mp = 0x400024d8; -rom_rfcal_rxiq = 0x400024dc; -rom_get_rfcal_rxiq_data = 0x400024e0; -rom_pbus_rx_dco_cal = 0x400024e4; -rom_rxdc_est_min = 0x400024e8; -rom_pbus_rx_dco_cal_1step = 0x400024ec; -rom_set_lb_txiq = 0x400024f0; -rom_set_rx_gain_cal_iq = 0x400024f4; -rom_set_rx_gain_cal_dc = 0x400024f8; -iq_est_enable = 0x400024fc; -iq_est_disable = 0x40002500; -dc_iq_est = 0x40002504; -set_cal_rxdc = 0x40002508; -rxiq_get_mis = 0x4000250c; -spur_reg_write_one_tone = 0x40002510; -spur_cal = 0x40002514; -spur_coef_cfg = 0x40002518; -gen_rx_gain_table = 0x4000251c; -wr_rx_gain_mem = 0x40002520; -set_rx_gain_param = 0x40002524; -set_rx_gain_table = 0x40002528; -rom_tester_wifi_cali = 0x4000252c; -esp_recover_efuse_data = 0x40002530; -bt_track_pll_cap = 0x40002534; -rfpll_cap_track = 0x40002538; -phy_param_track = 0x4000253c; -txpwr_correct = 0x40002540; -txpwr_cal_track = 0x40002544; -tx_pwctrl_background = 0x40002548; -bt_track_tx_power = 0x4000254c; -wifi_track_tx_power = 0x40002550; -rom_code_to_temp = 0x40002554; -rom_tsens_index_to_dac = 0x40002558; -rom_tsens_index_to_offset = 0x4000255c; -rom_tsens_dac_cal = 0x40002560; -rom_tsens_code_read = 0x40002564; -rom_tsens_temp_read = 0x40002568; -rom_temp_to_power = 0x4000256c; -tsens_read_init = 0x40002570; -get_temp_init = 0x40002574; -rom_txiq_cover = 0x40002578; -rom_rfcal_txiq = 0x4000257c; -rom_get_power_atten = 0x40002580; -rom_tx_pwctrl_init_cal = 0x40002584; -bt_txdc_cal = 0x40002588; -bt_txiq_cal = 0x4000258c; -txiq_cal_init = 0x40002590; -txdc_cal_init = 0x40002594; -txdc_cal_v70 = 0x40002598; -txiq_get_mis_pwr = 0x4000259c; -pwdet_ref_code = 0x400025a0; -pwdet_code_cal = 0x400025a4; -rfcal_txcap = 0x400025a8; -tx_cap_init = 0x400025ac; -rfcal_pwrctrl = 0x400025b0; -tx_pwctrl_init = 0x400025b4; -bt_tx_pwctrl_init = 0x400025b8; -bt_txpwr_freq = 0x400025bc; -rom_txbbgain_to_index = 0x400025c0; -rom_index_to_txbbgain = 0x400025c4; -rom_bt_index_to_bb = 0x400025c8; -rom_bt_bb_to_index = 0x400025cc; -rom_bt_get_tx_gain = 0x400025d0; -rom_get_tx_gain_value = 0x400025d4; -rom_wifi_get_tx_gain = 0x400025d8; -rom_set_tx_gain_mem = 0x400025dc; -rom_get_rate_fcc_index = 0x400025e0; -rom_get_chan_target_power = 0x400025e4; -rom_wifi_tx_dig_gain = 0x400025e8; -rom_wifi_set_tx_gain = 0x400025ec; -rom_bt_set_tx_gain = 0x400025f0; -wifi_11g_rate_chg = 0x400025f4; -bt_chan_pwr_interp = 0x400025f8; -bt_tx_gain_init = 0x400025fc; -/* Data (.data, .bss, .rodata) */ -phy_param_rom = 0x3fcdfaa4; - - -/*************************************** - Group rom_btbb - ***************************************/ - -/* Functions */ -bt_agc_gain_offset = 0x40002600; -bt_agc_gain_max = 0x40002604; -bt_set_rx_comp = 0x40002608; -bt_agc_gain_set = 0x4000260c; -bt_agc_rssi_thresh = 0x40002610; -bt_agc_target_set = 0x40002614; -bt_agc_restart_set = 0x40002618; -bt_agc_recorrect_set = 0x4000261c; -bt_agc_detect_set = 0x40002620; -bt_bb_rx_correlator_set = 0x40002624; -bt_bb_rx_dpo_set = 0x40002628; -bt_bb_rx_filter_sel = 0x4000262c; -bt_bb_rx_set1 = 0x40002630; -bt_bb_v2_rx_set = 0x40002634; -bt_bb_v2_tx_set = 0x40002638; -bt_bb_tx_cca_set = 0x4000263c; -bt_bb_tx_cca_period = 0x40002640; -bt_bb_tx_cca_fifo_reset = 0x40002644; -bt_bb_tx_cca_fifo_empty = 0x40002648; -bt_bb_tx_cca_fifo_full = 0x4000264c; -bt_bb_tx_cca_fifo_count = 0x40002650; -bt_bb_tx_cca_fifo_read = 0x40002654; -coex_pti_v2 = 0x40002658; -bt_bb_set_le_tx_on_delay = 0x4000265c; -bt_bb_set_corr_thresh_le = 0x40002660; - -/* ROM function interface esp8684.rom.mbedtls.ld for esp8684 - * - * - * Generated from ./interface-esp8684.yml md5sum c679b6ed5e9f0a9c3e7b93e5e0f2a1a3 - * - * Compatible with ROM where ECO version equal or greater to 1. - * - * THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT. - */ - -/*************************************** - Group rom_mbedtls - ***************************************/ - -/* Functions */ -mbedtls_aes_init = 0x40002664; -ssl_write_client_hello = 0x40002668; -ssl_parse_server_hello = 0x4000266c; -ssl_parse_server_key_exchange = 0x40002670; -ssl_parse_certificate_request = 0x40002674; -ssl_parse_server_hello_done = 0x40002678; -ssl_write_client_key_exchange = 0x4000267c; -ssl_write_certificate_verify = 0x40002680; -ssl_parse_new_session_ticket = 0x40002684; -mbedtls_aes_free = 0x40002688; -mbedtls_aes_setkey_enc = 0x4000268c; -mbedtls_aes_setkey_dec = 0x40002690; -mbedtls_aes_crypt_ecb = 0x40002694; -mbedtls_aes_crypt_cbc = 0x40002698; -mbedtls_internal_aes_encrypt = 0x4000269c; -mbedtls_internal_aes_decrypt = 0x400026a0; -mbedtls_asn1_get_len = 0x400026a4; -mbedtls_asn1_get_tag = 0x400026a8; -mbedtls_asn1_get_bool = 0x400026ac; -mbedtls_asn1_get_int = 0x400026b0; -mbedtls_asn1_get_bitstring = 0x400026b4; -mbedtls_asn1_get_bitstring_null = 0x400026b8; -mbedtls_asn1_get_sequence_of = 0x400026bc; -mbedtls_asn1_get_mpi = 0x400026c0; -mbedtls_asn1_get_alg = 0x400026c4; -mbedtls_asn1_get_alg_null = 0x400026c8; -mbedtls_asn1_write_len = 0x400026cc; -mbedtls_asn1_write_tag = 0x400026d0; -mbedtls_asn1_write_mpi = 0x400026d4; -mbedtls_base64_decode = 0x400026d8; -mbedtls_mpi_init = 0x400026dc; -mbedtls_mpi_free = 0x400026e0; -mbedtls_mpi_grow = 0x400026e4; -mbedtls_mpi_shrink = 0x400026e8; -mbedtls_mpi_copy = 0x400026ec; -mbedtls_mpi_safe_cond_assign = 0x400026f0; -mbedtls_mpi_safe_cond_swap = 0x400026f4; -mbedtls_mpi_lset = 0x400026f8; -mbedtls_mpi_get_bit = 0x400026fc; -mbedtls_mpi_set_bit = 0x40002700; -mbedtls_mpi_lsb = 0x40002704; -mbedtls_mpi_bitlen = 0x40002708; -mbedtls_mpi_size = 0x4000270c; -mbedtls_mpi_read_binary = 0x40002710; -mbedtls_mpi_write_binary = 0x40002714; -mbedtls_mpi_shift_l = 0x40002718; -mbedtls_mpi_shift_r = 0x4000271c; -mbedtls_mpi_cmp_abs = 0x40002720; -mbedtls_mpi_cmp_mpi = 0x40002724; -mbedtls_mpi_lt_mpi_ct = 0x40002728; -mbedtls_mpi_cmp_int = 0x4000272c; -mbedtls_mpi_add_abs = 0x40002730; -mbedtls_mpi_sub_abs = 0x40002734; -mbedtls_mpi_add_mpi = 0x40002738; -mbedtls_mpi_sub_mpi = 0x4000273c; -mbedtls_mpi_add_int = 0x40002740; -mbedtls_mpi_sub_int = 0x40002744; -mbedtls_mpi_mul_mpi = 0x40002748; -mbedtls_mpi_mul_int = 0x4000274c; -mbedtls_mpi_div_mpi = 0x40002750; -mbedtls_mpi_div_int = 0x40002754; -mbedtls_mpi_mod_mpi = 0x40002758; -mbedtls_mpi_mod_int = 0x4000275c; -mbedtls_mpi_exp_mod = 0x40002760; -mbedtls_mpi_fill_random = 0x40002764; -mbedtls_mpi_gcd = 0x40002768; -mbedtls_mpi_inv_mod = 0x4000276c; -mbedtls_mpi_is_prime_ext = 0x40002770; -mbedtls_ccm_star_encrypt_and_tag = 0x40002774; -mbedtls_ccm_star_auth_decrypt = 0x40002778; -mbedtls_cipher_init = 0x4000277c; -mbedtls_cipher_set_padding_mode = 0x40002780; -mbedtls_cipher_reset = 0x40002784; -mbedtls_cipher_finish = 0x40002788; -mbedtls_cipher_crypt = 0x4000278c; -mbedtls_cipher_cmac_starts = 0x40002790; -mbedtls_cipher_cmac_update = 0x40002794; -mbedtls_cipher_cmac_finish = 0x40002798; -mbedtls_ctr_drbg_init = 0x4000279c; -mbedtls_ctr_drbg_seed = 0x400027a0; -mbedtls_ctr_drbg_free = 0x400027a4; -mbedtls_ctr_drbg_reseed = 0x400027a8; -mbedtls_ctr_drbg_random_with_add = 0x400027ac; -mbedtls_ctr_drbg_random = 0x400027b0; -mbedtls_dhm_init = 0x400027b4; -mbedtls_dhm_read_params = 0x400027b8; -mbedtls_dhm_make_public = 0x400027bc; -mbedtls_dhm_calc_secret = 0x400027c0; -mbedtls_dhm_free = 0x400027c4; -mbedtls_ecdh_init = 0x400027c8; -mbedtls_ecdh_setup = 0x400027cc; -mbedtls_ecdh_free = 0x400027d0; -mbedtls_ecdh_read_params = 0x400027d4; -mbedtls_ecdh_get_params = 0x400027d8; -mbedtls_ecdh_make_public = 0x400027dc; -mbedtls_ecdh_calc_secret = 0x400027e0; -mbedtls_ecdh_enable_restart = 0x400027e4; -mbedtls_ecdsa_write_signature = 0x400027e8; -mbedtls_ecdsa_write_signature_restartable = 0x400027ec; -mbedtls_ecdsa_read_signature = 0x400027f0; -mbedtls_ecdsa_read_signature_restartable = 0x400027f4; -mbedtls_ecdsa_from_keypair = 0x400027f8; -mbedtls_ecdsa_init = 0x400027fc; -mbedtls_ecdsa_free = 0x40002800; -mbedtls_ecdsa_restart_init = 0x40002804; -mbedtls_ecdsa_restart_free = 0x40002808; -mbedtls_ecjpake_init = 0x4000280c; -mbedtls_ecjpake_check = 0x40002810; -mbedtls_ecjpake_write_round_one = 0x40002814; -mbedtls_ecjpake_read_round_one = 0x40002818; -mbedtls_ecjpake_write_round_two = 0x4000281c; -mbedtls_ecjpake_read_round_two = 0x40002820; -mbedtls_ecjpake_derive_secret = 0x40002824; -mbedtls_ecjpake_free = 0x40002828; -mbedtls_ecp_check_budget = 0x4000282c; -mbedtls_ecp_restart_is_enabled = 0x40002830; -mbedtls_ecp_curve_list = 0x40002834; -mbedtls_ecp_grp_id_list = 0x40002838; -mbedtls_ecp_curve_info_from_grp_id = 0x4000283c; -mbedtls_ecp_curve_info_from_tls_id = 0x40002840; -mbedtls_ecp_point_init = 0x40002844; -mbedtls_ecp_group_init = 0x40002848; -mbedtls_ecp_keypair_init = 0x4000284c; -mbedtls_ecp_point_free = 0x40002850; -mbedtls_ecp_group_free = 0x40002854; -mbedtls_ecp_keypair_free = 0x40002858; -mbedtls_ecp_restart_init = 0x4000285c; -mbedtls_ecp_restart_free = 0x40002860; -mbedtls_ecp_copy = 0x40002864; -mbedtls_ecp_group_copy = 0x40002868; -mbedtls_ecp_set_zero = 0x4000286c; -mbedtls_ecp_is_zero = 0x40002870; -mbedtls_ecp_point_cmp = 0x40002874; -mbedtls_ecp_point_write_binary = 0x40002878; -mbedtls_ecp_point_read_binary = 0x4000287c; -mbedtls_ecp_tls_read_point = 0x40002880; -mbedtls_ecp_tls_write_point = 0x40002884; -mbedtls_ecp_group_load = 0x40002888; -mbedtls_ecp_tls_read_group = 0x4000288c; -mbedtls_ecp_tls_read_group_id = 0x40002890; -mbedtls_ecp_tls_write_group = 0x40002894; -mbedtls_ecp_mul = 0x40002898; -mbedtls_ecp_mul_restartable = 0x4000289c; -mbedtls_ecp_muladd = 0x400028a0; -mbedtls_ecp_muladd_restartable = 0x400028a4; -mbedtls_ecp_check_pubkey = 0x400028a8; -mbedtls_ecp_check_privkey = 0x400028ac; -mbedtls_ecp_gen_privkey = 0x400028b0; -mbedtls_ecp_gen_keypair_base = 0x400028b4; -mbedtls_ecp_check_pub_priv = 0x400028b8; -mbedtls_entropy_add_source = 0x400028bc; -mbedtls_entropy_func = 0x400028c0; -mbedtls_gcm_crypt_and_tag = 0x400028c4; -mbedtls_gcm_starts = 0x400028c8; -mbedtls_gcm_update = 0x400028cc; -mbedtls_gcm_finish = 0x400028d0; -mbedtls_hmac_drbg_init = 0x400028d4; -mbedtls_hmac_drbg_seed_buf = 0x400028d8; -mbedtls_hmac_drbg_update_ret = 0x400028dc; -mbedtls_hmac_drbg_reseed = 0x400028e0; -mbedtls_hmac_drbg_random_with_add = 0x400028e4; -mbedtls_hmac_drbg_random = 0x400028e8; -mbedtls_hmac_drbg_free = 0x400028ec; -mbedtls_md_list = 0x400028f0; -mbedtls_md_init = 0x400028f4; -mbedtls_md_free = 0x400028f8; -mbedtls_md_setup = 0x400028fc; -mbedtls_md_clone = 0x40002900; -mbedtls_md_get_size = 0x40002904; -mbedtls_md_get_type = 0x40002908; -mbedtls_md_starts = 0x4000290c; -mbedtls_md_update = 0x40002910; -mbedtls_md_finish = 0x40002914; -mbedtls_md = 0x40002918; -mbedtls_md_hmac_starts = 0x4000291c; -mbedtls_md_hmac_update = 0x40002920; -mbedtls_md_hmac_finish = 0x40002924; -mbedtls_md_hmac_reset = 0x40002928; -mbedtls_oid_get_x509_ext_type = 0x4000292c; -mbedtls_oid_get_pk_alg = 0x40002930; -mbedtls_oid_get_ec_grp = 0x40002934; -mbedtls_oid_get_sig_alg = 0x40002938; -mbedtls_oid_get_md_alg = 0x4000293c; -mbedtls_oid_get_md_hmac = 0x40002940; -mbedtls_oid_get_oid_by_md = 0x40002944; -mbedtls_oid_get_cipher_alg = 0x40002948; -mbedtls_oid_get_pkcs12_pbe_alg = 0x4000294c; -mbedtls_pem_init = 0x40002950; -mbedtls_pem_free = 0x40002954; -mbedtls_pkcs12_pbe_sha1_rc4_128 = 0x40002958; -mbedtls_pkcs12_pbe = 0x4000295c; -mbedtls_pkcs12_derivation = 0x40002960; -mbedtls_pkcs5_pbes2 = 0x40002964; -mbedtls_pkcs5_pbkdf2_hmac = 0x40002968; -mbedtls_pk_info_from_type = 0x4000296c; -mbedtls_pk_init = 0x40002970; -mbedtls_pk_free = 0x40002974; -mbedtls_pk_restart_init = 0x40002978; -mbedtls_pk_restart_free = 0x4000297c; -mbedtls_pk_setup = 0x40002980; -mbedtls_pk_can_do = 0x40002984; -mbedtls_pk_verify = 0x40002988; -mbedtls_pk_verify_restartable = 0x4000298c; -mbedtls_pk_verify_ext = 0x40002990; -mbedtls_pk_sign_restartable = 0x40002994; -mbedtls_pk_encrypt = 0x40002998; -mbedtls_pk_get_type = 0x4000299c; -mbedtls_pk_parse_subpubkey = 0x400029a0; -mbedtls_rsa_init = 0x400029a4; -mbedtls_rsa_import = 0x400029a8; -mbedtls_rsa_import_raw = 0x400029ac; -mbedtls_rsa_complete = 0x400029b0; -mbedtls_rsa_set_padding = 0x400029b4; -mbedtls_rsa_get_len = 0x400029b8; -mbedtls_rsa_check_pubkey = 0x400029bc; -mbedtls_rsa_check_privkey = 0x400029c0; -mbedtls_rsa_check_pub_priv = 0x400029c4; -mbedtls_rsa_public = 0x400029c8; -mbedtls_rsa_private = 0x400029cc; -mbedtls_rsa_pkcs1_encrypt = 0x400029d0; -mbedtls_rsa_rsaes_pkcs1_v15_encrypt = 0x400029d4; -mbedtls_rsa_rsaes_oaep_encrypt = 0x400029d8; -mbedtls_rsa_pkcs1_decrypt = 0x400029dc; -mbedtls_rsa_rsaes_pkcs1_v15_decrypt = 0x400029e0; -mbedtls_rsa_rsaes_oaep_decrypt = 0x400029e4; -mbedtls_rsa_pkcs1_sign = 0x400029e8; -mbedtls_rsa_rsassa_pkcs1_v15_sign = 0x400029ec; -mbedtls_rsa_rsassa_pss_sign = 0x400029f0; -mbedtls_rsa_pkcs1_verify = 0x400029f4; -mbedtls_rsa_rsassa_pkcs1_v15_verify = 0x400029f8; -mbedtls_rsa_rsassa_pss_verify = 0x400029fc; -mbedtls_rsa_rsassa_pss_verify_ext = 0x40002a00; -mbedtls_rsa_free = 0x40002a04; -mbedtls_rsa_deduce_primes = 0x40002a08; -mbedtls_rsa_deduce_private_exponent = 0x40002a0c; -mbedtls_rsa_deduce_crt = 0x40002a10; -mbedtls_rsa_validate_params = 0x40002a14; -mbedtls_rsa_validate_crt = 0x40002a18; -mbedtls_sha1_init = 0x40002a1c; -mbedtls_sha1_free = 0x40002a20; -mbedtls_sha1_clone = 0x40002a24; -mbedtls_sha1_starts_ret = 0x40002a28; -mbedtls_sha1_finish_ret = 0x40002a2c; -mbedtls_sha256_init = 0x40002a30; -mbedtls_sha256_free = 0x40002a34; -mbedtls_sha256_clone = 0x40002a38; -mbedtls_sha256_starts_ret = 0x40002a3c; -mbedtls_sha256_finish_ret = 0x40002a40; -mbedtls_sha256_ret = 0x40002a44; -mbedtls_sha512_init = 0x40002a48; -mbedtls_sha512_free = 0x40002a4c; -mbedtls_sha512_clone = 0x40002a50; -mbedtls_sha512_starts_ret = 0x40002a54; -mbedtls_sha512_update_ret = 0x40002a58; -mbedtls_sha512_finish_ret = 0x40002a5c; -mbedtls_internal_sha512_process = 0x40002a60; -mbedtls_sha512_ret = 0x40002a64; -mbedtls_ssl_conf_endpoint = 0x40002a68; -mbedtls_ssl_conf_transport = 0x40002a6c; -mbedtls_ssl_set_bio = 0x40002a70; -mbedtls_ssl_conf_dh_param_bin = 0x40002a74; -mbedtls_ssl_get_max_frag_len = 0x40002a78; -mbedtls_ssl_get_max_out_record_payload = 0x40002a7c; -mbedtls_ssl_handshake = 0x40002a80; -mbedtls_ssl_handshake_step = 0x40002a84; -mbedtls_ssl_renegotiate = 0x40002a88; -mbedtls_ssl_send_alert_message = 0x40002a8c; -mbedtls_ssl_config_defaults = 0x40002a90; -mbedtls_ssl_session_init = 0x40002a94; -mbedtls_ssl_session_free = 0x40002a98; -mbedtls_ssl_transform_free = 0x40002a9c; -mbedtls_ssl_handshake_free = 0x40002aa0; -mbedtls_ssl_handshake_client_step = 0x40002aa4; -mbedtls_ssl_handshake_wrapup = 0x40002aa8; -mbedtls_ssl_derive_keys = 0x40002aac; -mbedtls_ssl_handle_message_type = 0x40002ab0; -mbedtls_ssl_prepare_handshake_record = 0x40002ab4; -mbedtls_ssl_update_handshake_status = 0x40002ab8; -mbedtls_ssl_read_record = 0x40002abc; -mbedtls_ssl_fetch_input = 0x40002ac0; -mbedtls_ssl_write_handshake_msg = 0x40002ac4; -mbedtls_ssl_write_record = 0x40002ac8; -mbedtls_ssl_flush_output = 0x40002acc; -mbedtls_ssl_parse_certificate = 0x40002ad0; -mbedtls_ssl_write_certificate = 0x40002ad4; -mbedtls_ssl_parse_change_cipher_spec = 0x40002ad8; -mbedtls_ssl_write_change_cipher_spec = 0x40002adc; -mbedtls_ssl_parse_finished = 0x40002ae0; -mbedtls_ssl_write_finished = 0x40002ae4; -mbedtls_ssl_optimize_checksum = 0x40002ae8; -mbedtls_ssl_psk_derive_premaster = 0x40002aec; -mbedtls_ssl_sig_from_pk = 0x40002af0; -mbedtls_ssl_pk_alg_from_sig = 0x40002af4; -mbedtls_ssl_md_alg_from_hash = 0x40002af8; -mbedtls_ssl_hash_from_md_alg = 0x40002afc; -mbedtls_ssl_check_curve = 0x40002b00; -mbedtls_ssl_check_sig_hash = 0x40002b04; -mbedtls_ssl_write_version = 0x40002b08; -mbedtls_ssl_read_version = 0x40002b0c; -mbedtls_ssl_get_key_exchange_md_ssl_tls = 0x40002b10; -mbedtls_ssl_get_key_exchange_md_tls1_2 = 0x40002b14; -mbedtls_ssl_cf_hmac = 0x40002b18; -mbedtls_ssl_cf_memcpy_offset = 0x40002b1c; -mbedtls_x509_crt_parse_der = 0x40002b20; -mbedtls_x509_crt_verify_restartable = 0x40002b24; -mbedtls_x509_crt_check_key_usage = 0x40002b28; -mbedtls_x509_crt_check_extended_key_usage = 0x40002b2c; -mbedtls_x509_crt_is_revoked = 0x40002b30; -mbedtls_x509_crt_init = 0x40002b34; -mbedtls_x509_crt_free = 0x40002b38; -mbedtls_x509_crt_restart_init = 0x40002b3c; -mbedtls_x509_crt_restart_free = 0x40002b40; -mbedtls_x509_get_name = 0x40002b44; -mbedtls_x509_get_alg_null = 0x40002b48; -mbedtls_x509_get_alg = 0x40002b4c; -mbedtls_x509_get_rsassa_pss_params = 0x40002b50; -mbedtls_x509_get_sig = 0x40002b54; -mbedtls_x509_get_sig_alg = 0x40002b58; -mbedtls_x509_get_time = 0x40002b5c; -mbedtls_x509_get_serial = 0x40002b60; -mbedtls_x509_get_ext = 0x40002b64; -mbedtls_aes_xts_init = 0x40002b68; -mbedtls_aes_xts_free = 0x40002b6c; -mbedtls_aes_xts_setkey_enc = 0x40002b70; -mbedtls_aes_xts_setkey_dec = 0x40002b74; -mbedtls_aes_crypt_xts = 0x40002b78; -mbedtls_aes_crypt_cfb128 = 0x40002b7c; -mbedtls_aes_crypt_ofb = 0x40002b80; -mbedtls_aes_crypt_ctr = 0x40002b84; -mbedtls_arc4_init = 0x40002b88; -mbedtls_arc4_free = 0x40002b8c; -mbedtls_arc4_setup = 0x40002b90; -mbedtls_arc4_crypt = 0x40002b94; -mbedtls_ccm_init = 0x40002b98; -mbedtls_ccm_setkey = 0x40002b9c; -mbedtls_ccm_free = 0x40002ba0; -mbedtls_ccm_encrypt_and_tag = 0x40002ba4; -mbedtls_ccm_auth_decrypt = 0x40002ba8; -mbedtls_dhm_make_params = 0x40002bac; -mbedtls_dhm_set_group = 0x40002bb0; -mbedtls_dhm_read_public = 0x40002bb4; -mbedtls_ecdh_make_params = 0x40002bb8; -mbedtls_ecdh_read_public = 0x40002bbc; -mbedtls_entropy_init = 0x40002bc0; -mbedtls_entropy_free = 0x40002bc4; -mbedtls_gcm_init = 0x40002bc8; -mbedtls_gcm_setkey = 0x40002bcc; -mbedtls_gcm_auth_decrypt = 0x40002bd0; -mbedtls_gcm_free = 0x40002bd4; -mbedtls_md5_init = 0x40002bd8; -mbedtls_md5_free = 0x40002bdc; -mbedtls_md5_clone = 0x40002be0; -mbedtls_md5_starts_ret = 0x40002be4; -mbedtls_md5_update_ret = 0x40002be8; -mbedtls_md5_finish_ret = 0x40002bec; -mbedtls_internal_md5_process = 0x40002bf0; -mbedtls_md5_ret = 0x40002bf4; -mbedtls_pk_get_bitlen = 0x40002bf8; -mbedtls_pk_sign = 0x40002bfc; -mbedtls_pk_decrypt = 0x40002c00; -mbedtls_pk_parse_key = 0x40002c04; -mbedtls_sha1_ret = 0x40002c08; -mbedtls_ssl_init = 0x40002c0c; -mbedtls_ssl_setup = 0x40002c10; -mbedtls_ssl_conf_authmode = 0x40002c14; -mbedtls_ssl_conf_rng = 0x40002c18; -mbedtls_ssl_conf_ca_chain = 0x40002c1c; -mbedtls_ssl_conf_own_cert = 0x40002c20; -mbedtls_ssl_read = 0x40002c24; -mbedtls_ssl_write = 0x40002c28; -mbedtls_ssl_config_init = 0x40002c2c; -mbedtls_ssl_sig_hash_set_find = 0x40002c30; -mbedtls_ssl_sig_hash_set_add = 0x40002c34; -mbedtls_ssl_sig_hash_set_const_hash = 0x40002c38; -mbedtls_ssl_sig_from_pk_alg = 0x40002c3c; -mbedtls_ssl_set_calc_verify_md = 0x40002c40; -mbedtls_x509_crt_parse = 0x40002c44; -/* Data (.data, .bss, .rodata) */ -p_osi_mbedtls_rom_funcs = 0x3fcdfaa0; -mbedtls_x509_crt_profile_default = 0x3ff4fba4; -mbedtls_x509_crt_profile_suiteb = 0x3ff4fb94; -aes_FSb_ptr = 0x3fcdfa9c; -AES_RT0_ptr = 0x3fcdfa98; -AES_RT1_ptr = 0x3fcdfa94; -AES_RT2_ptr = 0x3fcdfa90; -AES_RT3_ptr = 0x3fcdfa8c; -AES_FT0_ptr = 0x3fcdfa88; -AES_FT1_ptr = 0x3fcdfa84; -AES_FT2_ptr = 0x3fcdfa80; -AES_FT3_ptr = 0x3fcdfa7c; -bignum_small_prime_ptr = 0x3fcdfa78; -sha512_K_ptr = 0x3fcdfa74; - diff --git a/flasher_stub/ld/rom_32c3.ld b/flasher_stub/ld/rom_32c3.ld deleted file mode 100755 index ecaaf4928..000000000 --- a/flasher_stub/ld/rom_32c3.ld +++ /dev/null @@ -1,2200 +0,0 @@ -/* ROM function interface esp32c3.rom.ld for esp32c3 - * - * - * Generated from ./interface-esp32c3.yml md5sum 93b28a9e1fe42d212018eb4336849208 - * - * Compatible with ROM where ECO version equal or greater to 0. - * - * THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT. - */ - - -PROVIDE ( SPIWrite = esp_rom_spiflash_write); -PROVIDE ( SPI_read_status_high = esp_rom_spiflash_read_statushigh); -PROVIDE ( SPI_write_status = esp_rom_spiflash_write_status); -PROVIDE ( SPIRead = esp_rom_spiflash_read); -PROVIDE ( SPIParamCfg = esp_rom_spiflash_config_param); -PROVIDE ( SPIEraseChip = esp_rom_spiflash_erase_chip); -PROVIDE ( SPIEraseSector = esp_rom_spiflash_erase_sector); -PROVIDE ( SPIEraseBlock = esp_rom_spiflash_erase_block); -PROVIDE ( SPI_Write_Encrypt_Enable = esp_rom_spiflash_write_encrypted_enable); -PROVIDE ( SPI_Write_Encrypt_Disable = esp_rom_spiflash_write_encrypted_disable); -PROVIDE ( SPI_Encrypt_Write = esp_rom_spiflash_write_encrypted); - - -/*************************************** - Group common - ***************************************/ - -/* Functions */ -rtc_get_reset_reason = 0x40000018; -analog_super_wdt_reset_happened = 0x4000001c; -jtag_cpu_reset_happened = 0x40000020; -rtc_get_wakeup_cause = 0x40000024; -rtc_boot_control = 0x40000028; -rtc_select_apb_bridge = 0x4000002c; -rtc_unhold_all_pads = 0x40000030; -set_rtc_memory_crc = 0x40000034; -cacl_rtc_memory_crc = 0x40000038; -ets_is_print_boot = 0x4000003c; -ets_printf = 0x40000040; -ets_install_putc1 = 0x40000044; -ets_install_uart_printf = 0x40000048; -ets_install_putc2 = 0x4000004c; -PROVIDE( ets_delay_us = 0x40000050 ); -ets_get_stack_info = 0x40000054; -ets_install_lock = 0x40000058; -ets_backup_dma_copy = 0x4000005c; -ets_apb_backup_init_lock_func = 0x40000060; -UartRxString = 0x40000064; -uart_tx_one_char = 0x40000068; -uart_tx_one_char2 = 0x4000006c; -uart_rx_one_char = 0x40000070; -uart_rx_one_char_block = 0x40000074; -uart_rx_readbuff = 0x40000078; -uartAttach = 0x4000007c; -uart_tx_flush = 0x40000080; -uart_tx_wait_idle = 0x40000084; -uart_div_modify = 0x40000088; -multofup = 0x4000008c; -software_reset = 0x40000090; -software_reset_cpu = 0x40000094; -assist_debug_clock_enable = 0x40000098; -assist_debug_record_enable = 0x4000009c; -clear_super_wdt_reset_flag = 0x400000a0; -disable_default_watchdog = 0x400000a4; -send_packet = 0x400000a8; -recv_packet = 0x400000ac; -GetUartDevice = 0x400000b0; -GetSecurityInfoProc = 0x4004b9da; -GetSecurityInfoProcNewEco = 0x4004d51e; /* manually added from esp32c3eco7-20230720; new address of function for eco7+ */ -UartDwnLdProc = 0x400000b4; -Uart_Init = 0x400000b8; -ets_set_user_start = 0x400000bc; -/* Data (.data, .bss, .rodata) */ -ets_rom_layout_p = 0x3ff1fffc; -ets_ops_table_ptr = 0x3fcdfffc; - - -/*************************************** - Group miniz - ***************************************/ - -/* Functions */ -mz_adler32 = 0x400000c0; -mz_crc32 = 0x400000c4; -mz_free = 0x400000c8; -tdefl_compress = 0x400000cc; -tdefl_compress_buffer = 0x400000d0; -tdefl_compress_mem_to_heap = 0x400000d4; -tdefl_compress_mem_to_mem = 0x400000d8; -tdefl_compress_mem_to_output = 0x400000dc; -tdefl_get_adler32 = 0x400000e0; -tdefl_get_prev_return_status = 0x400000e4; -tdefl_init = 0x400000e8; -tdefl_write_image_to_png_file_in_memory = 0x400000ec; -tdefl_write_image_to_png_file_in_memory_ex = 0x400000f0; -tinfl_decompress = 0x400000f4; -tinfl_decompress_mem_to_callback = 0x400000f8; -tinfl_decompress_mem_to_heap = 0x400000fc; -tinfl_decompress_mem_to_mem = 0x40000100; - - -/*************************************** - Group tjpgd - ***************************************/ - -/* Functions */ -jd_prepare = 0x40000104; -jd_decomp = 0x40000108; - - -/*************************************** - Group spiflash_legacy - ***************************************/ - -/* Functions */ -PROVIDE( esp_rom_spiflash_wait_idle = 0x4000010c ); -PROVIDE( esp_rom_spiflash_write_encrypted = 0x40000110 ); -PROVIDE( esp_rom_spiflash_write_encrypted_dest = 0x40000114 ); -PROVIDE( esp_rom_spiflash_write_encrypted_enable = 0x40000118 ); -PROVIDE( esp_rom_spiflash_write_encrypted_disable = 0x4000011c ); -PROVIDE( esp_rom_spiflash_erase_chip = 0x40000120 ); -PROVIDE( esp_rom_spiflash_erase_block = 0x40000124 ); -PROVIDE( esp_rom_spiflash_erase_sector = 0x40000128 ); -PROVIDE( esp_rom_spiflash_write = 0x4000012c ); -PROVIDE( esp_rom_spiflash_read = 0x40000130 ); -PROVIDE( esp_rom_spiflash_config_param = 0x40000134 ); -PROVIDE( esp_rom_spiflash_read_user_cmd = 0x40000138 ); -PROVIDE( esp_rom_spiflash_select_qio_pins = 0x4000013c ); -PROVIDE( esp_rom_spiflash_unlock = 0x40000140 ); -PROVIDE( esp_rom_spi_flash_auto_sus_res = 0x40000144 ); -PROVIDE( esp_rom_spi_flash_send_resume = 0x40000148 ); -PROVIDE( esp_rom_spi_flash_update_id = 0x4000014c ); -PROVIDE( esp_rom_spiflash_config_clk = 0x40000150 ); -PROVIDE( esp_rom_spiflash_config_readmode = 0x40000154 ); -PROVIDE( esp_rom_spiflash_read_status = 0x40000158 ); -PROVIDE( esp_rom_spiflash_read_statushigh = 0x4000015c ); -PROVIDE( esp_rom_spiflash_write_status = 0x40000160 ); -PROVIDE( spi_flash_attach = 0x40000164 ); -PROVIDE( spi_flash_get_chip_size = 0x40000168 ); -PROVIDE( spi_flash_guard_set = 0x4000016c ); -PROVIDE( spi_flash_guard_get = 0x40000170 ); -PROVIDE( spi_flash_write_config_set = 0x40000174 ); -PROVIDE( spi_flash_write_config_get = 0x40000178 ); -PROVIDE( spi_flash_safe_write_address_func_set = 0x4000017c ); -PROVIDE( spi_flash_unlock = 0x40000180 ); -PROVIDE( spi_flash_erase_range = 0x40000184 ); -PROVIDE( spi_flash_erase_sector = 0x40000188 ); -PROVIDE( spi_flash_write = 0x4000018c ); -PROVIDE( spi_flash_read = 0x40000190 ); -PROVIDE( spi_flash_write_encrypted = 0x40000194 ); -PROVIDE( spi_flash_read_encrypted = 0x40000198 ); -PROVIDE( spi_flash_mmap_os_func_set = 0x4000019c ); -PROVIDE( spi_flash_mmap_page_num_init = 0x400001a0 ); -PROVIDE( spi_flash_mmap = 0x400001a4 ); -PROVIDE( spi_flash_mmap_pages = 0x400001a8 ); -PROVIDE( spi_flash_munmap = 0x400001ac ); -PROVIDE( spi_flash_mmap_dump = 0x400001b0 ); -PROVIDE( spi_flash_check_and_flush_cache = 0x400001b4 ); -PROVIDE( spi_flash_mmap_get_free_pages = 0x400001b8 ); -PROVIDE( spi_flash_cache2phys = 0x400001bc ); -PROVIDE( spi_flash_phys2cache = 0x400001c0 ); -PROVIDE( spi_flash_disable_cache = 0x400001c4 ); -PROVIDE( spi_flash_restore_cache = 0x400001c8 ); -PROVIDE( spi_flash_cache_enabled = 0x400001cc ); -PROVIDE( spi_flash_enable_cache = 0x400001d0 ); -PROVIDE( spi_cache_mode_switch = 0x400001d4 ); -PROVIDE( spi_common_set_dummy_output = 0x400001d8 ); -PROVIDE( spi_common_set_flash_cs_timing = 0x400001dc ); -PROVIDE( esp_enable_cache_flash_wrap = 0x400001e0 ); -PROVIDE( SPIEraseArea = 0x400001e4 ); -PROVIDE( SPILock = 0x400001e8 ); -PROVIDE( SPIMasterReadModeCnfig = 0x400001ec ); -PROVIDE( SPI_Common_Command = 0x400001f0 ); -PROVIDE( SPI_WakeUp = 0x400001f4 ); -PROVIDE( SPI_block_erase = 0x400001f8 ); -PROVIDE( SPI_chip_erase = 0x400001fc ); -PROVIDE( SPI_init = 0x40000200 ); -PROVIDE( SPI_page_program = 0x40000204 ); -PROVIDE( SPI_read_data = 0x40000208 ); -PROVIDE( SPI_sector_erase = 0x4000020c ); -PROVIDE( SPI_write_enable = 0x40000210 ); -PROVIDE( SelectSpiFunction = 0x40000214 ); -PROVIDE( SetSpiDrvs = 0x40000218 ); -PROVIDE( Wait_SPI_Idle = 0x4000021c ); -PROVIDE( spi_dummy_len_fix = 0x40000220 ); -PROVIDE( Disable_QMode = 0x40000224 ); -PROVIDE( Enable_QMode = 0x40000228 ); -/* Data (.data, .bss, .rodata) */ -PROVIDE( rom_spiflash_legacy_funcs = 0x3fcdfff4 ); -PROVIDE( rom_spiflash_legacy_data = 0x3fcdfff0 ); -PROVIDE( g_flash_guard_ops = 0x3fcdfff8 ); - - -/*************************************** - Group spi_flash_hal - ***************************************/ - -/* Functions */ -PROVIDE( spi_flash_hal_poll_cmd_done = 0x4000022c ); -PROVIDE( spi_flash_hal_device_config = 0x40000230 ); -PROVIDE( spi_flash_hal_configure_host_io_mode = 0x40000234 ); -PROVIDE( spi_flash_hal_common_command = 0x40000238 ); -PROVIDE( spi_flash_hal_read = 0x4000023c ); -PROVIDE( spi_flash_hal_erase_chip = 0x40000240 ); -PROVIDE( spi_flash_hal_erase_sector = 0x40000244 ); -PROVIDE( spi_flash_hal_erase_block = 0x40000248 ); -PROVIDE( spi_flash_hal_program_page = 0x4000024c ); -PROVIDE( spi_flash_hal_set_write_protect = 0x40000250 ); -PROVIDE( spi_flash_hal_host_idle = 0x40000254 ); - - -/*************************************** - Group spi_flash_chips - ***************************************/ - -/* Functions */ -PROVIDE( spi_flash_chip_generic_probe = 0x40000258 ); -PROVIDE( spi_flash_chip_generic_detect_size = 0x4000025c ); -PROVIDE( spi_flash_chip_generic_write = 0x40000260 ); -PROVIDE( spi_flash_chip_generic_write_encrypted = 0x40000264 ); -PROVIDE( spi_flash_chip_generic_set_write_protect = 0x40000268 ); -PROVIDE( spi_flash_common_write_status_16b_wrsr = 0x4000026c ); -PROVIDE( spi_flash_chip_generic_reset = 0x40000270 ); -PROVIDE( spi_flash_chip_generic_erase_chip = 0x40000274 ); -PROVIDE( spi_flash_chip_generic_erase_sector = 0x40000278 ); -PROVIDE( spi_flash_chip_generic_erase_block = 0x4000027c ); -PROVIDE( spi_flash_chip_generic_page_program = 0x40000280 ); -PROVIDE( spi_flash_chip_generic_get_write_protect = 0x40000284 ); -PROVIDE( spi_flash_common_read_status_16b_rdsr_rdsr2 = 0x40000288 ); -PROVIDE( spi_flash_chip_generic_read_reg = 0x4000028c ); -PROVIDE( spi_flash_chip_generic_yield = 0x40000290 ); -PROVIDE( spi_flash_generic_wait_host_idle = 0x40000294 ); -PROVIDE( spi_flash_chip_generic_wait_idle = 0x40000298 ); -PROVIDE( spi_flash_chip_generic_config_host_io_mode = 0x4000029c ); -PROVIDE( spi_flash_chip_generic_read = 0x400002a0 ); -PROVIDE( spi_flash_common_read_status_8b_rdsr2 = 0x400002a4 ); -PROVIDE( spi_flash_chip_generic_get_io_mode = 0x400002a8 ); -PROVIDE( spi_flash_common_read_status_8b_rdsr = 0x400002ac ); -PROVIDE( spi_flash_common_write_status_8b_wrsr = 0x400002b0 ); -PROVIDE( spi_flash_common_write_status_8b_wrsr2 = 0x400002b4 ); -PROVIDE( spi_flash_common_set_io_mode = 0x400002b8 ); -PROVIDE( spi_flash_chip_generic_set_io_mode = 0x400002bc ); -PROVIDE( spi_flash_chip_gd_get_io_mode = 0x400002c0 ); -PROVIDE( spi_flash_chip_gd_probe = 0x400002c4 ); -PROVIDE( spi_flash_chip_gd_set_io_mode = 0x400002c8 ); -/* Data (.data, .bss, .rodata) */ -PROVIDE( spi_flash_chip_generic_config_data = 0x3fcdffec ); - - -/*************************************** - Group memspi_host - ***************************************/ - -/* Functions */ -PROVIDE( memspi_host_read_id_hs = 0x400002cc ); -PROVIDE( memspi_host_read_status_hs = 0x400002d0 ); -PROVIDE( memspi_host_flush_cache = 0x400002d4 ); -PROVIDE( memspi_host_erase_chip = 0x400002d8 ); -PROVIDE( memspi_host_erase_sector = 0x400002dc ); -PROVIDE( memspi_host_erase_block = 0x400002e0 ); -PROVIDE( memspi_host_program_page = 0x400002e4 ); -PROVIDE( memspi_host_read = 0x400002e8 ); -PROVIDE( memspi_host_set_write_protect = 0x400002ec ); -PROVIDE( memspi_host_set_max_read_len = 0x400002f0 ); -PROVIDE( memspi_host_read_data_slicer = 0x400002f4 ); -PROVIDE( memspi_host_write_data_slicer = 0x400002f8 ); - - -/*************************************** - Group esp_flash - ***************************************/ - -/* Functions */ -PROVIDE( esp_flash_chip_driver_initialized = 0x400002fc ); -PROVIDE( esp_flash_read_id = 0x40000300 ); -PROVIDE( esp_flash_get_size = 0x40000304 ); -PROVIDE( esp_flash_erase_chip = 0x40000308 ); -PROVIDE( esp_flash_erase_region = 0x4000030c ); -PROVIDE( esp_flash_get_chip_write_protect = 0x40000310 ); -PROVIDE( esp_flash_set_chip_write_protect = 0x40000314 ); -PROVIDE( esp_flash_get_protectable_regions = 0x40000318 ); -PROVIDE( esp_flash_get_protected_region = 0x4000031c ); -PROVIDE( esp_flash_set_protected_region = 0x40000320 ); -PROVIDE( esp_flash_read = 0x40000324 ); -PROVIDE( esp_flash_write = 0x40000328 ); -PROVIDE( esp_flash_write_encrypted = 0x4000032c ); -PROVIDE( esp_flash_read_encrypted = 0x40000330 ); -PROVIDE( esp_flash_get_io_mode = 0x40000334 ); -PROVIDE( esp_flash_set_io_mode = 0x40000338 ); -PROVIDE( spi_flash_boot_attach = 0x4000033c ); -PROVIDE( spi_flash_dump_counters = 0x40000340 ); -PROVIDE( spi_flash_get_counters = 0x40000344 ); -PROVIDE( spi_flash_op_counters_config = 0x40000348 ); -PROVIDE( spi_flash_reset_counters = 0x4000034c ); -/* Data (.data, .bss, .rodata) */ -PROVIDE( esp_flash_default_chip = 0x3fcdffe8 ); -PROVIDE( esp_flash_api_funcs = 0x3fcdffe4 ); - - -/*************************************** - Group cache - ***************************************/ - -/* Functions */ -PROVIDE( Cache_Get_ICache_Line_Size = 0x400004b0 ); -PROVIDE( Cache_Get_Mode = 0x400004b4 ); -PROVIDE( Cache_Address_Through_IBus = 0x400004b8 ); -PROVIDE( Cache_Address_Through_DBus = 0x400004bc ); -PROVIDE( Cache_Set_Default_Mode = 0x400004c0 ); -PROVIDE( Cache_Enable_Defalut_ICache_Mode = 0x400004c4 ); -PROVIDE( ROM_Boot_Cache_Init = 0x400004c8 ); -PROVIDE( Cache_Invalidate_ICache_Items = 0x400004cc ); -PROVIDE( Cache_Op_Addr = 0x400004d0 ); -PROVIDE( Cache_Invalidate_Addr = 0x400004d4 ); -PROVIDE( Cache_Invalidate_ICache_All = 0x400004d8 ); -PROVIDE( Cache_Mask_All = 0x400004dc ); -PROVIDE( Cache_UnMask_Dram0 = 0x400004e0 ); -PROVIDE( Cache_Suspend_ICache_Autoload = 0x400004e4 ); -PROVIDE( Cache_Resume_ICache_Autoload = 0x400004e8 ); -PROVIDE( Cache_Start_ICache_Preload = 0x400004ec ); -PROVIDE( Cache_ICache_Preload_Done = 0x400004f0 ); -PROVIDE( Cache_End_ICache_Preload = 0x400004f4 ); -PROVIDE( Cache_Config_ICache_Autoload = 0x400004f8 ); -PROVIDE( Cache_Enable_ICache_Autoload = 0x400004fc ); -PROVIDE( Cache_Disable_ICache_Autoload = 0x40000500 ); -PROVIDE( Cache_Enable_ICache_PreLock = 0x40000504 ); -PROVIDE( Cache_Disable_ICache_PreLock = 0x40000508 ); -PROVIDE( Cache_Lock_ICache_Items = 0x4000050c ); -PROVIDE( Cache_Unlock_ICache_Items = 0x40000510 ); -PROVIDE( Cache_Lock_Addr = 0x40000514 ); -PROVIDE( Cache_Unlock_Addr = 0x40000518 ); -PROVIDE( Cache_Disable_ICache = 0x4000051c ); -PROVIDE( Cache_Enable_ICache = 0x40000520 ); -PROVIDE( Cache_Suspend_ICache = 0x40000524 ); -PROVIDE( Cache_Resume_ICache = 0x40000528 ); -PROVIDE( Cache_Freeze_ICache_Enable = 0x4000052c ); -PROVIDE( Cache_Freeze_ICache_Disable = 0x40000530 ); -PROVIDE( Cache_Pms_Lock = 0x40000534 ); -PROVIDE( Cache_Ibus_Pms_Set_Addr = 0x40000538 ); -PROVIDE( Cache_Ibus_Pms_Set_Attr = 0x4000053c ); -PROVIDE( Cache_Dbus_Pms_Set_Addr = 0x40000540 ); -PROVIDE( Cache_Dbus_Pms_Set_Attr = 0x40000544 ); -PROVIDE( Cache_Set_IDROM_MMU_Size = 0x40000548 ); -PROVIDE( Cache_Get_IROM_MMU_End = 0x4000054c ); -PROVIDE( Cache_Get_DROM_MMU_End = 0x40000550 ); -PROVIDE( Cache_Owner_Init = 0x40000554 ); -PROVIDE( Cache_Occupy_ICache_MEMORY = 0x40000558 ); -PROVIDE( Cache_MMU_Init = 0x4000055c ); -PROVIDE( Cache_Ibus_MMU_Set = 0x40000560 ); -PROVIDE( Cache_Dbus_MMU_Set = 0x40000564 ); -PROVIDE( Cache_Count_Flash_Pages = 0x40000568 ); -PROVIDE( Cache_Travel_Tag_Memory = 0x4000056c ); -PROVIDE( Cache_Get_Virtual_Addr = 0x40000570 ); -PROVIDE( Cache_Get_Memory_BaseAddr = 0x40000574 ); -PROVIDE( Cache_Get_Memory_Addr = 0x40000578 ); -PROVIDE( Cache_Get_Memory_value = 0x4000057c ); -/* Data (.data, .bss, .rodata) */ -PROVIDE( rom_cache_op_cb = 0x3fcdffd8 ); -PROVIDE( rom_cache_internal_table_ptr = 0x3fcdffd4 ); - - -/*************************************** - Group clock - ***************************************/ - -/* Functions */ -ets_get_apb_freq = 0x40000580; -ets_get_cpu_frequency = 0x40000584; -ets_update_cpu_frequency = 0x40000588; -ets_get_printf_channel = 0x4000058c; -ets_get_xtal_div = 0x40000590; -ets_set_xtal_div = 0x40000594; -ets_get_xtal_freq = 0x40000598; - - -/*************************************** - Group gpio - ***************************************/ - -/* Functions */ -gpio_input_get = 0x4000059c; -gpio_matrix_in = 0x400005a0; -gpio_matrix_out = 0x400005a4; -gpio_output_disable = 0x400005a8; -gpio_output_enable = 0x400005ac; -gpio_output_set = 0x400005b0; -gpio_pad_hold = 0x400005b4; -gpio_pad_input_disable = 0x400005b8; -gpio_pad_input_enable = 0x400005bc; -gpio_pad_pulldown = 0x400005c0; -gpio_pad_pullup = 0x400005c4; -gpio_pad_select_gpio = 0x400005c8; -gpio_pad_set_drv = 0x400005cc; -gpio_pad_unhold = 0x400005d0; -gpio_pin_wakeup_disable = 0x400005d4; -gpio_pin_wakeup_enable = 0x400005d8; -gpio_bypass_matrix_in = 0x400005dc; - - -/*************************************** - Group interrupts - ***************************************/ - -/* Functions */ -esprv_intc_int_set_priority = 0x400005e0; -esprv_intc_int_set_threshold = 0x400005e4; -esprv_intc_int_enable = 0x400005e8; -esprv_intc_int_disable = 0x400005ec; -esprv_intc_int_set_type = 0x400005f0; -intr_matrix_set = 0x400005f4; -ets_intr_lock = 0x400005f8; -ets_intr_unlock = 0x400005fc; -PROVIDE( intr_handler_set = 0x40000600 ); -ets_isr_attach = 0x40000604; -ets_isr_mask = 0x40000608; -ets_isr_unmask = 0x4000060c; - - -/*************************************** - Group crypto - ***************************************/ - -/* Functions */ -md5_vector = 0x40000610; -MD5Init = 0x40000614; -MD5Update = 0x40000618; -MD5Final = 0x4000061c; -hmac_md5_vector = 0x40000620; -hmac_md5 = 0x40000624; -crc32_le = 0x40000628; -crc32_be = 0x4000062c; -crc16_le = 0x40000630; -crc16_be = 0x40000634; -crc8_le = 0x40000638; -crc8_be = 0x4000063c; -esp_crc8 = 0x40000640; -ets_sha_enable = 0x40000644; -ets_sha_disable = 0x40000648; -ets_sha_get_state = 0x4000064c; -ets_sha_init = 0x40000650; -ets_sha_process = 0x40000654; -ets_sha_starts = 0x40000658; -ets_sha_update = 0x4000065c; -ets_sha_finish = 0x40000660; -ets_sha_clone = 0x40000664; -ets_hmac_enable = 0x40000668; -ets_hmac_disable = 0x4000066c; -ets_hmac_calculate_message = 0x40000670; -ets_hmac_calculate_downstream = 0x40000674; -ets_hmac_invalidate_downstream = 0x40000678; -ets_jtag_enable_temporarily = 0x4000067c; -ets_aes_enable = 0x40000680; -ets_aes_disable = 0x40000684; -ets_aes_setkey = 0x40000688; -ets_aes_block = 0x4000068c; -ets_bigint_enable = 0x40000690; -ets_bigint_disable = 0x40000694; -ets_bigint_multiply = 0x40000698; -ets_bigint_modmult = 0x4000069c; -ets_bigint_modexp = 0x400006a0; -ets_bigint_wait_finish = 0x400006a4; -ets_bigint_getz = 0x400006a8; -ets_ds_enable = 0x400006ac; -ets_ds_disable = 0x400006b0; -ets_ds_start_sign = 0x400006b4; -ets_ds_is_busy = 0x400006b8; -ets_ds_finish_sign = 0x400006bc; -ets_ds_encrypt_params = 0x400006c0; -ets_aes_setkey_dec = 0x400006c4; -ets_aes_setkey_enc = 0x400006c8; -ets_mgf1_sha256 = 0x400006cc; - - -/*************************************** - Group efuse - ***************************************/ - -/* Functions */ -ets_efuse_read = 0x400006d0; -ets_efuse_program = 0x400006d4; -ets_efuse_clear_program_registers = 0x400006d8; -ets_efuse_write_key = 0x400006dc; -ets_efuse_get_read_register_address = 0x400006e0; -ets_efuse_get_key_purpose = 0x400006e4; -ets_efuse_key_block_unused = 0x400006e8; -ets_efuse_find_unused_key_block = 0x400006ec; -ets_efuse_rs_calculate = 0x400006f0; -ets_efuse_count_unused_key_blocks = 0x400006f4; -ets_efuse_secure_boot_enabled = 0x400006f8; -ets_efuse_secure_boot_aggressive_revoke_enabled = 0x400006fc; -ets_efuse_cache_encryption_enabled = 0x40000700; -ets_efuse_download_modes_disabled = 0x40000704; -ets_efuse_find_purpose = 0x40000708; -ets_efuse_flash_opi_5pads_power_sel_vddspi = 0x4000070c; -ets_efuse_force_send_resume = 0x40000710; -ets_efuse_get_flash_delay_us = 0x40000714; -ets_efuse_get_mac = 0x40000718; -ets_efuse_get_spiconfig = 0x4000071c; -ets_efuse_usb_print_is_disabled = 0x40000720; -ets_efuse_get_uart_print_channel = 0x40000724; -ets_efuse_get_uart_print_control = 0x40000728; -ets_efuse_get_wp_pad = 0x4000072c; -ets_efuse_legacy_spi_boot_mode_disabled = 0x40000730; -ets_efuse_security_download_modes_enabled = 0x40000734; -ets_efuse_set_timing = 0x40000738; -ets_efuse_jtag_disabled = 0x4000073c; -ets_efuse_usb_download_mode_disabled = 0x40000740; -ets_efuse_usb_module_disabled = 0x40000744; -ets_efuse_usb_device_disabled = 0x40000748; - - -/*************************************** - Group secureboot - ***************************************/ - -/* Functions */ -ets_emsa_pss_verify = 0x4000074c; -ets_rsa_pss_verify = 0x40000750; -ets_secure_boot_verify_bootloader_with_keys = 0x40000754; -ets_secure_boot_verify_signature = 0x40000758; -ets_secure_boot_read_key_digests = 0x4000075c; -ets_secure_boot_revoke_public_key_digest = 0x40000760; - - -/*************************************** - Group usb_uart - ***************************************/ - -/* Functions */ -PROVIDE( usb_uart_rx_one_char = 0x400008cc ); -PROVIDE( usb_uart_rx_one_char_block = 0x400008d0 ); -PROVIDE( usb_uart_tx_flush = 0x400008d4 ); -PROVIDE( usb_uart_tx_one_char = 0x400008d8 ); -/* Data (.data, .bss, .rodata) */ -PROVIDE( g_uart_print = 0x3fcdffd1 ); -PROVIDE( g_usb_print = 0x3fcdffd0 ); - - -/*************************************** - Group bluetooth - ***************************************/ - -/* Functions */ -bt_rf_coex_get_dft_cfg = 0x400008dc; -bt_rf_coex_hooks_p_set = 0x400008e0; -btdm_con_maxevtime_cal_impl = 0x400008e4; -btdm_controller_get_compile_version_impl = 0x400008e8; -btdm_controller_rom_data_init = 0x400008ec; -btdm_dis_privacy_err_report_impl = 0x400008f0; -btdm_disable_adv_delay_impl = 0x400008f4; -btdm_enable_scan_continue_impl = 0x400008f8; -btdm_enable_scan_forever_impl = 0x400008fc; -btdm_get_power_state_impl = 0x40000900; -btdm_get_prevent_sleep_flag_impl = 0x40000904; -btdm_power_state_active_impl = 0x40000908; -btdm_switch_phy_coded_impl = 0x4000090c; -hci_acl_data_handler = 0x40000910; -hci_disconnect_cmd_handler = 0x40000914; -hci_le_con_upd_cmd_handler = 0x40000918; -hci_le_ltk_req_neg_reply_cmd_handler = 0x4000091c; -hci_le_ltk_req_reply_cmd_handler = 0x40000920; -hci_le_rd_chnl_map_cmd_handler = 0x40000924; -hci_le_rd_phy_cmd_handler = 0x40000928; -hci_le_rd_rem_feats_cmd_handler = 0x4000092c; -hci_le_rem_con_param_req_neg_reply_cmd_handler = 0x40000930; -hci_le_rem_con_param_req_reply_cmd_handler = 0x40000934; -hci_le_set_data_len_cmd_handler = 0x40000938; -hci_le_set_phy_cmd_handler = 0x4000093c; -hci_le_start_enc_cmd_handler = 0x40000940; -hci_rd_auth_payl_to_cmd_handler = 0x40000944; -hci_rd_rem_ver_info_cmd_handler = 0x40000948; -hci_rd_rssi_cmd_handler = 0x4000094c; -hci_rd_tx_pwr_lvl_cmd_handler = 0x40000950; -hci_vs_set_pref_slave_evt_dur_cmd_handler = 0x40000954; -hci_vs_set_pref_slave_latency_cmd_handler = 0x40000958; -hci_wr_auth_payl_to_cmd_handler = 0x4000095c; -ll_channel_map_ind_handler = 0x40000960; -ll_connection_param_req_handler = 0x40000964; -ll_connection_param_rsp_handler = 0x40000968; -ll_connection_update_ind_handler = 0x4000096c; -ll_enc_req_handler = 0x40000970; -ll_enc_rsp_handler = 0x40000974; -ll_feature_req_handler = 0x40000978; -ll_feature_rsp_handler = 0x4000097c; -ll_length_req_handler = 0x40000980; -ll_length_rsp_handler = 0x40000984; -ll_min_used_channels_ind_handler = 0x40000988; -ll_pause_enc_req_handler = 0x4000098c; -ll_pause_enc_rsp_handler = 0x40000990; -ll_phy_req_handler = 0x40000994; -ll_phy_rsp_handler = 0x40000998; -ll_phy_update_ind_handler = 0x4000099c; -ll_ping_req_handler = 0x400009a0; -ll_ping_rsp_handler = 0x400009a4; -ll_slave_feature_req_handler = 0x400009a8; -ll_start_enc_req_handler = 0x400009ac; -ll_start_enc_rsp_handler = 0x400009b0; -ll_terminate_ind_handler = 0x400009b4; -ll_version_ind_handler = 0x400009b8; -llc_auth_payl_nearly_to_handler = 0x400009bc; -llc_auth_payl_real_to_handler = 0x400009c0; -llc_encrypt_ind_handler = 0x400009c4; -llc_hci_command_handler_wrapper = 0x400009c8; -llc_ll_connection_param_req_pdu_send = 0x400009cc; -llc_ll_connection_param_rsp_pdu_send = 0x400009d0; -llc_ll_connection_update_ind_pdu_send = 0x400009d4; -llc_ll_enc_req_pdu_send = 0x400009d8; -llc_ll_enc_rsp_pdu_send = 0x400009dc; -llc_ll_feature_req_pdu_send = 0x400009e0; -llc_ll_feature_rsp_pdu_send = 0x400009e4; -llc_ll_length_req_pdu_send = 0x400009e8; -llc_ll_length_rsp_pdu_send = 0x400009ec; -llc_ll_pause_enc_req_pdu_send = 0x400009f0; -llc_ll_pause_enc_rsp_pdu_send = 0x400009f4; -llc_ll_phy_req_pdu_send = 0x400009f8; -llc_ll_phy_rsp_pdu_send = 0x400009fc; -llc_ll_ping_req_pdu_send = 0x40000a00; -llc_ll_ping_rsp_pdu_send = 0x40000a04; -llc_ll_start_enc_req_pdu_send = 0x40000a08; -llc_ll_start_enc_rsp_pdu_send = 0x40000a0c; -llc_ll_terminate_ind_pdu_send = 0x40000a10; -llc_ll_unknown_rsp_pdu_send = 0x40000a14; -llc_llcp_ch_map_update_ind_pdu_send = 0x40000a18; -llc_llcp_phy_upd_ind_pdu_send = 0x40000a1c; -llc_llcp_version_ind_pdu_send = 0x40000a20; -llc_op_ch_map_upd_ind_handler = 0x40000a24; -llc_op_con_upd_ind_handler = 0x40000a28; -llc_op_disconnect_ind_handler = 0x40000a2c; -llc_op_dl_upd_ind_handler = 0x40000a30; -llc_op_encrypt_ind_handler = 0x40000a34; -llc_op_feats_exch_ind_handler = 0x40000a38; -llc_op_le_ping_ind_handler = 0x40000a3c; -llc_op_phy_upd_ind_handler = 0x40000a40; -llc_op_ver_exch_ind_handler = 0x40000a44; -llc_stopped_ind_handler = 0x40000a48; -lld_acl_rx_ind_handler = 0x40000a4c; -lld_acl_tx_cfm_handler = 0x40000a50; -lld_adv_end_ind_handler = 0x40000a54; -lld_adv_rep_ind_handler = 0x40000a58; -lld_ch_map_upd_cfm_handler = 0x40000a5c; -lld_con_estab_ind_handler = 0x40000a60; -lld_con_evt_sd_evt_time_set = 0x40000a64; -lld_con_offset_upd_ind_handler = 0x40000a68; -lld_con_param_upd_cfm_handler = 0x40000a6c; -lld_disc_ind_handler = 0x40000a70; -lld_init_end_ind_handler = 0x40000a74; -lld_llcp_rx_ind_handler_wrapper = 0x40000a78; -lld_llcp_tx_cfm_handler = 0x40000a7c; -lld_per_adv_end_ind_handler = 0x40000a80; -lld_per_adv_rep_ind_handler = 0x40000a84; -lld_per_adv_rx_end_ind_handler = 0x40000a88; -lld_phy_coded_500k_get = 0x40000a8c; -lld_phy_upd_cfm_handler = 0x40000a90; -lld_scan_end_ind_handler = 0x40000a94; -lld_scan_req_ind_handler = 0x40000a98; -lld_sync_start_req_handler = 0x40000a9c; -lld_test_end_ind_handler = 0x40000aa0; -lld_update_rxbuf_handler = 0x40000aa4; -llm_ch_map_update_ind_handler = 0x40000aa8; -llm_hci_command_handler_wrapper = 0x40000aac; -llm_scan_period_to_handler = 0x40000ab0; -r_Add2SelfBigHex256 = 0x40000ab4; -r_AddBigHex256 = 0x40000ab8; -r_AddBigHexModP256 = 0x40000abc; -r_AddP256 = 0x40000ac0; -r_AddPdiv2_256 = 0x40000ac4; -r_GF_Jacobian_Point_Addition256 = 0x40000ac8; -r_GF_Jacobian_Point_Double256 = 0x40000acc; -r_GF_Point_Jacobian_To_Affine256 = 0x40000ad0; -r_MultiplyBigHexByUint32_256 = 0x40000ad4; -r_MultiplyBigHexModP256 = 0x40000ad8; -r_MultiplyByU16ModP256 = 0x40000adc; -r_SubtractBigHex256 = 0x40000ae0; -r_SubtractBigHexMod256 = 0x40000ae4; -r_SubtractBigHexUint32_256 = 0x40000ae8; -r_SubtractFromSelfBigHex256 = 0x40000aec; -r_SubtractFromSelfBigHexSign256 = 0x40000af0; -r_aes_alloc = 0x40000af4; -r_aes_ccm_continue = 0x40000af8; -r_aes_ccm_process_e = 0x40000afc; -r_aes_ccm_xor_128_lsb = 0x40000b00; -r_aes_ccm_xor_128_msb = 0x40000b04; -r_aes_cmac_continue = 0x40000b08; -r_aes_cmac_start = 0x40000b0c; -r_aes_k1_continue = 0x40000b10; -r_aes_k2_continue = 0x40000b14; -r_aes_k3_continue = 0x40000b18; -r_aes_k4_continue = 0x40000b1c; -r_aes_shift_left_128 = 0x40000b20; -r_aes_start = 0x40000b24; -r_aes_xor_128 = 0x40000b28; -r_assert_err = 0x40000b2c; -r_assert_param = 0x40000b30; -r_assert_warn = 0x40000b34; -r_bigHexInversion256 = 0x40000b38; -r_ble_sw_cca_check_isr = 0x40000b3c; -r_ble_util_buf_acl_tx_alloc = 0x40000b40; -r_ble_util_buf_acl_tx_elt_get = 0x40000b44; -r_ble_util_buf_acl_tx_free = 0x40000b48; -r_ble_util_buf_acl_tx_free_in_isr = 0x40000b4c; -r_ble_util_buf_adv_tx_alloc = 0x40000b50; -r_ble_util_buf_adv_tx_free = 0x40000b54; -r_ble_util_buf_adv_tx_free_in_isr = 0x40000b58; -r_ble_util_buf_env_deinit = 0x40000b5c; -r_ble_util_buf_env_init = 0x40000b60; -r_ble_util_buf_get_rx_buf_nb = 0x40000b64; -r_ble_util_buf_get_rx_buf_size = 0x40000b68; -r_ble_util_buf_llcp_tx_alloc = 0x40000b6c; -r_ble_util_buf_llcp_tx_free = 0x40000b70; -r_ble_util_buf_rx_alloc = 0x40000b74; -r_ble_util_buf_rx_alloc_in_isr = 0x40000b78; -r_ble_util_buf_rx_free = 0x40000b7c; -r_ble_util_buf_rx_free_in_isr = 0x40000b80; -r_ble_util_buf_set_rx_buf_nb = 0x40000b84; -r_ble_util_buf_set_rx_buf_size = 0x40000b88; -r_ble_util_data_rx_buf_reset = 0x40000b8c; -r_bt_bb_get_intr_mask = 0x40000b90; -r_bt_bb_intr_clear = 0x40000b94; -r_bt_bb_intr_mask_set = 0x40000b98; -r_bt_bb_isr = 0x40000b9c; -r_bt_rf_coex_cfg_set = 0x40000ba0; -r_bt_rf_coex_conn_dynamic_pti_en_get = 0x40000ba4; -r_bt_rf_coex_conn_phy_coded_data_time_limit_en_get = 0x40000ba8; -r_bt_rf_coex_ext_adv_dynamic_pti_en_get = 0x40000bac; -r_bt_rf_coex_ext_scan_dynamic_pti_en_get = 0x40000bb0; -r_bt_rf_coex_legacy_adv_dynamic_pti_en_get = 0x40000bb4; -r_bt_rf_coex_per_adv_dynamic_pti_en_get = 0x40000bb8; -r_bt_rf_coex_pti_table_get = 0x40000bbc; -r_bt_rf_coex_st_param_get = 0x40000bc0; -r_bt_rf_coex_st_param_set = 0x40000bc4; -r_bt_rf_coex_sync_scan_dynamic_pti_en_get = 0x40000bc8; -r_bt_rma_apply_rule_cs_fmt = 0x40000bcc; -r_bt_rma_apply_rule_cs_idx = 0x40000bd0; -r_bt_rma_configure = 0x40000bd4; -r_bt_rma_deregister_rule_cs_fmt = 0x40000bd8; -r_bt_rma_deregister_rule_cs_idx = 0x40000bdc; -r_bt_rma_get_ant_by_act = 0x40000be0; -r_bt_rma_init = 0x40000be4; -r_bt_rma_register_rule_cs_fmt = 0x40000be8; -r_bt_rma_register_rule_cs_idx = 0x40000bec; -r_bt_rtp_apply_rule_cs_fmt = 0x40000bf0; -r_bt_rtp_apply_rule_cs_idx = 0x40000bf4; -r_bt_rtp_deregister_rule_cs_fmt = 0x40000bf8; -r_bt_rtp_deregister_rule_cs_idx = 0x40000bfc; -r_bt_rtp_get_txpwr_idx_by_act = 0x40000c00; -r_bt_rtp_init = 0x40000c04; -r_bt_rtp_register_rule_cs_fmt = 0x40000c08; -r_bt_rtp_register_rule_cs_idx = 0x40000c0c; -r_btdm_isr = 0x40000c10; -r_btdm_task_post = 0x40000c14; -r_btdm_task_post_from_isr = 0x40000c18; -r_btdm_task_recycle = 0x40000c1c; -r_cali_phase_match_p = 0x40000c20; -r_cmp_abs_time = 0x40000c24; -r_cmp_dest_id = 0x40000c28; -r_cmp_timer_id = 0x40000c2c; -r_co_bdaddr_compare = 0x40000c30; -r_co_ble_pkt_dur_in_us = 0x40000c34; -r_co_list_extract = 0x40000c38; -r_co_list_extract_after = 0x40000c3c; -r_co_list_extract_sublist = 0x40000c40; -r_co_list_find = 0x40000c44; -r_co_list_init = 0x40000c48; -r_co_list_insert_after = 0x40000c4c; -r_co_list_insert_before = 0x40000c50; -r_co_list_merge = 0x40000c54; -r_co_list_pool_init = 0x40000c58; -r_co_list_pop_front = 0x40000c5c; -r_co_list_push_back = 0x40000c60; -r_co_list_push_back_sublist = 0x40000c64; -r_co_list_push_front = 0x40000c68; -r_co_list_size = 0x40000c6c; -r_co_nb_good_le_channels = 0x40000c70; -r_co_util_pack = 0x40000c74; -r_co_util_read_array_size = 0x40000c78; -r_co_util_unpack = 0x40000c7c; -r_dbg_env_deinit = 0x40000c80; -r_dbg_env_init = 0x40000c84; -r_dbg_platform_reset_complete = 0x40000c88; -r_dl_upd_proc_start = 0x40000c8c; -r_dump_data = 0x40000c90; -r_ecc_abort_key256_generation = 0x40000c94; -r_ecc_gen_new_public_key = 0x40000c98; -r_ecc_gen_new_secret_key = 0x40000c9c; -r_ecc_generate_key256 = 0x40000ca0; -r_ecc_get_debug_Keys = 0x40000ca4; -r_ecc_init = 0x40000ca8; -r_ecc_is_valid_point = 0x40000cac; -r_ecc_multiplication_event_handler = 0x40000cb0; -r_ecc_point_multiplication_win_256 = 0x40000cb4; -r_emi_alloc_em_mapping_by_offset = 0x40000cb8; -r_emi_base_reg_lut_show = 0x40000cbc; -r_emi_em_base_reg_show = 0x40000cc0; -r_emi_free_em_mapping_by_offset = 0x40000cc4; -r_emi_get_em_mapping_idx_by_offset = 0x40000cc8; -r_emi_get_mem_addr_by_offset = 0x40000ccc; -r_emi_overwrite_em_mapping_by_offset = 0x40000cd0; -r_esp_vendor_hci_command_handler = 0x40000cd4; -r_get_stack_usage = 0x40000cd8; -r_h4tl_acl_hdr_rx_evt_handler = 0x40000cdc; -r_h4tl_cmd_hdr_rx_evt_handler = 0x40000ce0; -r_h4tl_cmd_pld_rx_evt_handler = 0x40000ce4; -r_h4tl_eif_io_event_post = 0x40000ce8; -r_h4tl_eif_register = 0x40000cec; -r_h4tl_init = 0x40000cf0; -r_h4tl_out_of_sync = 0x40000cf4; -r_h4tl_out_of_sync_check = 0x40000cf8; -r_h4tl_read_hdr = 0x40000cfc; -r_h4tl_read_next_out_of_sync = 0x40000d00; -r_h4tl_read_payl = 0x40000d04; -r_h4tl_read_start = 0x40000d08; -r_h4tl_rx_acl_hdr_extract = 0x40000d0c; -r_h4tl_rx_cmd_hdr_extract = 0x40000d10; -r_h4tl_rx_done = 0x40000d14; -r_h4tl_start = 0x40000d18; -r_h4tl_stop = 0x40000d1c; -r_h4tl_tx_done = 0x40000d20; -r_h4tl_tx_evt_handler = 0x40000d24; -r_h4tl_write = 0x40000d28; -r_hci_acl_tx_data_alloc = 0x40000d2c; -r_hci_acl_tx_data_received = 0x40000d30; -r_hci_basic_cmd_send_2_controller = 0x40000d34; -r_hci_ble_adv_report_filter_check = 0x40000d38; -r_hci_ble_adv_report_tx_check = 0x40000d3c; -r_hci_ble_conhdl_register = 0x40000d40; -r_hci_ble_conhdl_unregister = 0x40000d44; -r_hci_build_acl_data = 0x40000d48; -r_hci_build_cc_evt = 0x40000d4c; -r_hci_build_cs_evt = 0x40000d50; -r_hci_build_evt = 0x40000d54; -r_hci_build_le_evt = 0x40000d58; -r_hci_cmd_get_max_param_size = 0x40000d5c; -r_hci_cmd_received = 0x40000d60; -r_hci_cmd_reject = 0x40000d64; -r_hci_evt_mask_check = 0x40000d68; -r_hci_evt_mask_set = 0x40000d6c; -r_hci_fc_acl_buf_size_set = 0x40000d70; -r_hci_fc_acl_en = 0x40000d74; -r_hci_fc_acl_packet_sent = 0x40000d78; -r_hci_fc_check_host_available_nb_acl_packets = 0x40000d7c; -r_hci_fc_host_nb_acl_pkts_complete = 0x40000d80; -r_hci_fc_init = 0x40000d84; -r_hci_look_for_cmd_desc = 0x40000d88; -r_hci_look_for_evt_desc = 0x40000d8c; -r_hci_look_for_le_evt_desc = 0x40000d90; -r_hci_look_for_le_evt_desc_esp = 0x40000d94; -r_hci_pack_bytes = 0x40000d98; -r_hci_register_vendor_desc_tab = 0x40000d9c; -r_hci_send_2_controller = 0x40000da0; -r_hci_send_2_host = 0x40000da4; -r_hci_tl_c2h_data_flow_on = 0x40000da8; -r_hci_tl_cmd_hdr_rx_evt_handler = 0x40000dac; -r_hci_tl_cmd_pld_rx_evt_handler = 0x40000db0; -r_hci_tl_get_pkt = 0x40000db4; -r_hci_tl_hci_pkt_handler = 0x40000db8; -r_hci_tl_hci_tx_done_evt_handler = 0x40000dbc; -r_hci_tl_inc_nb_h2c_cmd_pkts = 0x40000dc0; -r_hci_tl_save_pkt = 0x40000dc4; -r_hci_tl_send = 0x40000dc8; -r_hci_tx_done = 0x40000dcc; -r_hci_tx_start = 0x40000dd0; -r_hci_tx_trigger = 0x40000dd4; -r_isValidSecretKey_256 = 0x40000dd8; -r_ke_check_malloc = 0x40000ddc; -r_ke_event_callback_set = 0x40000de0; -r_ke_event_clear = 0x40000de4; -r_ke_event_flush = 0x40000de8; -r_ke_event_get = 0x40000dec; -r_ke_event_get_all = 0x40000df0; -r_ke_event_init = 0x40000df4; -r_ke_event_schedule = 0x40000df8; -r_ke_event_set = 0x40000dfc; -r_ke_flush = 0x40000e00; -r_ke_free = 0x40000e04; -r_ke_handler_search = 0x40000e08; -r_ke_init = 0x40000e0c; -r_ke_is_free = 0x40000e10; -r_ke_malloc = 0x40000e14; -r_ke_mem_init = 0x40000e18; -r_ke_mem_is_empty = 0x40000e1c; -r_ke_mem_is_in_heap = 0x40000e20; -r_ke_msg_alloc = 0x40000e24; -r_ke_msg_dest_id_get = 0x40000e28; -r_ke_msg_discard = 0x40000e2c; -r_ke_msg_forward = 0x40000e30; -r_ke_msg_forward_new_id = 0x40000e34; -r_ke_msg_free = 0x40000e38; -r_ke_msg_in_queue = 0x40000e3c; -r_ke_msg_save = 0x40000e40; -r_ke_msg_send = 0x40000e44; -r_ke_msg_send_basic = 0x40000e48; -r_ke_msg_src_id_get = 0x40000e4c; -r_ke_queue_extract = 0x40000e50; -r_ke_queue_insert = 0x40000e54; -r_ke_sleep_check = 0x40000e58; -r_ke_state_get = 0x40000e5c; -r_ke_state_set = 0x40000e60; -r_ke_task_check = 0x40000e64; -r_ke_task_create = 0x40000e68; -r_ke_task_delete = 0x40000e6c; -r_ke_task_handler_get = 0x40000e70; -r_ke_task_init = 0x40000e74; -r_ke_task_msg_flush = 0x40000e78; -r_ke_task_saved_update = 0x40000e7c; -r_ke_task_schedule = 0x40000e80; -r_ke_time = 0x40000e84; -r_ke_time_cmp = 0x40000e88; -r_ke_time_past = 0x40000e8c; -r_ke_timer_active = 0x40000e90; -r_ke_timer_adjust_all = 0x40000e94; -r_ke_timer_clear = 0x40000e98; -r_ke_timer_init = 0x40000e9c; -r_ke_timer_schedule = 0x40000ea0; -r_ke_timer_set = 0x40000ea4; -r_led_init = 0x40000ea8; -r_led_set_all = 0x40000eac; -r_llc_aes_res_cb = 0x40000eb0; -r_llc_ch_map_up_proc_err_cb = 0x40000eb4; -r_llc_cleanup = 0x40000eb8; -r_llc_cmd_cmp_send = 0x40000ebc; -r_llc_cmd_stat_send = 0x40000ec0; -r_llc_con_move_cbk = 0x40000ec4; -r_llc_con_plan_set_update = 0x40000ec8; -r_llc_con_upd_param_in_range = 0x40000ecc; -r_llc_disconnect = 0x40000ed0; -r_llc_disconnect_end = 0x40000ed4; -r_llc_disconnect_proc_continue = 0x40000ed8; -r_llc_disconnect_proc_err_cb = 0x40000edc; -r_llc_dl_chg_check = 0x40000ee0; -r_llc_dle_proc_err_cb = 0x40000ee4; -r_llc_feats_exch_proc_err_cb = 0x40000ee8; -r_llc_hci_cmd_handler_tab_p_get = 0x40000eec; -r_llc_hci_command_handler = 0x40000ef0; -r_llc_hci_con_param_req_evt_send = 0x40000ef4; -r_llc_hci_con_upd_info_send = 0x40000ef8; -r_llc_hci_disconnected_dis = 0x40000efc; -r_llc_hci_dl_upd_info_send = 0x40000f00; -r_llc_hci_enc_evt_send = 0x40000f04; -r_llc_hci_feats_info_send = 0x40000f08; -r_llc_hci_le_phy_upd_cmp_evt_send = 0x40000f0c; -r_llc_hci_ltk_request_evt_send = 0x40000f10; -r_llc_hci_nb_cmp_pkts_evt_send = 0x40000f14; -r_llc_hci_version_info_send = 0x40000f18; -r_llc_init_term_proc = 0x40000f1c; -r_llc_iv_skd_rand_gen = 0x40000f20; -r_llc_le_ping_proc_continue = 0x40000f24; -r_llc_le_ping_proc_err_cb = 0x40000f28; -r_llc_le_ping_restart = 0x40000f2c; -r_llc_le_ping_set = 0x40000f30; -r_llc_ll_pause_enc_rsp_ack_handler = 0x40000f34; -r_llc_ll_reject_ind_ack_handler = 0x40000f38; -r_llc_ll_reject_ind_pdu_send = 0x40000f3c; -r_llc_ll_start_enc_rsp_ack_handler = 0x40000f40; -r_llc_ll_terminate_ind_ack = 0x40000f44; -r_llc_ll_unknown_ind_handler = 0x40000f48; -r_llc_llcp_send = 0x40000f4c; -r_llc_llcp_state_set = 0x40000f50; -r_llc_llcp_trans_timer_set = 0x40000f54; -r_llc_llcp_tx_check = 0x40000f58; -r_llc_loc_ch_map_proc_continue = 0x40000f5c; -r_llc_loc_con_upd_proc_continue = 0x40000f60; -r_llc_loc_con_upd_proc_err_cb = 0x40000f64; -r_llc_loc_dl_upd_proc_continue = 0x40000f68; -r_llc_loc_encrypt_proc_continue = 0x40000f6c; -r_llc_loc_encrypt_proc_err_cb = 0x40000f70; -r_llc_loc_feats_exch_proc_continue = 0x40000f74; -r_llc_loc_phy_upd_proc_continue = 0x40000f78; -r_llc_loc_phy_upd_proc_err_cb = 0x40000f7c; -r_llc_msg_handler_tab_p_get = 0x40000f80; -r_llc_pref_param_compute = 0x40000f84; -r_llc_proc_collision_check = 0x40000f88; -r_llc_proc_err_ind = 0x40000f8c; -r_llc_proc_get = 0x40000f90; -r_llc_proc_id_get = 0x40000f94; -r_llc_proc_reg = 0x40000f98; -r_llc_proc_state_get = 0x40000f9c; -r_llc_proc_state_set = 0x40000fa0; -r_llc_proc_timer_pause_set = 0x40000fa4; -r_llc_proc_timer_set = 0x40000fa8; -r_llc_proc_unreg = 0x40000fac; -r_llc_rem_ch_map_proc_continue = 0x40000fb0; -r_llc_rem_con_upd_proc_continue = 0x40000fb4; -r_llc_rem_con_upd_proc_err_cb = 0x40000fb8; -r_llc_rem_dl_upd_proc = 0x40000fbc; -r_llc_rem_encrypt_proc_continue = 0x40000fc0; -r_llc_rem_encrypt_proc_err_cb = 0x40000fc4; -r_llc_rem_phy_upd_proc_continue = 0x40000fc8; -r_llc_rem_phy_upd_proc_err_cb = 0x40000fcc; -r_llc_role_get = 0x40000fd0; -r_llc_sk_gen = 0x40000fd4; -r_llc_start = 0x40000fd8; -r_llc_stop = 0x40000fdc; -r_llc_ver_exch_loc_proc_continue = 0x40000fe0; -r_llc_ver_proc_err_cb = 0x40000fe4; -r_llcp_pdu_handler_tab_p_get = 0x40000fe8; -r_lld_aa_gen = 0x40000fec; -r_lld_adv_adv_data_set = 0x40000ff0; -r_lld_adv_adv_data_update = 0x40000ff4; -r_lld_adv_aux_ch_idx_set = 0x40000ff8; -r_lld_adv_aux_evt_canceled_cbk = 0x40000ffc; -r_lld_adv_aux_evt_start_cbk = 0x40001000; -r_lld_adv_coex_check_ext_adv_synced = 0x40001004; -r_lld_adv_coex_env_reset = 0x40001008; -r_lld_adv_duration_update = 0x4000100c; -r_lld_adv_dynamic_pti_process = 0x40001010; -r_lld_adv_end = 0x40001014; -r_lld_adv_evt_canceled_cbk = 0x40001018; -r_lld_adv_evt_start_cbk = 0x4000101c; -r_lld_adv_ext_chain_construct = 0x40001020; -r_lld_adv_ext_pkt_prepare = 0x40001024; -r_lld_adv_frm_cbk = 0x40001028; -r_lld_adv_frm_isr = 0x4000102c; -r_lld_adv_frm_skip_isr = 0x40001030; -r_lld_adv_init = 0x40001034; -r_lld_adv_pkt_rx = 0x40001038; -r_lld_adv_pkt_rx_connect_ind = 0x4000103c; -r_lld_adv_pkt_rx_send_scan_req_evt = 0x40001040; -r_lld_adv_rand_addr_update = 0x40001044; -r_lld_adv_restart = 0x40001048; -r_lld_adv_scan_rsp_data_set = 0x4000104c; -r_lld_adv_scan_rsp_data_update = 0x40001050; -r_lld_adv_set_tx_power = 0x40001054; -r_lld_adv_start = 0x40001058; -r_lld_adv_stop = 0x4000105c; -r_lld_adv_sync_info_set = 0x40001060; -r_lld_adv_sync_info_update = 0x40001064; -r_lld_calc_aux_rx = 0x40001068; -r_lld_cca_alloc = 0x4000106c; -r_lld_cca_data_reset = 0x40001070; -r_lld_cca_free = 0x40001074; -r_lld_ch_assess_data_get = 0x40001078; -r_lld_ch_idx_get = 0x4000107c; -r_lld_ch_map_set = 0x40001080; -r_lld_channel_assess = 0x40001084; -r_lld_con_activity_act_offset_compute = 0x40001088; -r_lld_con_activity_offset_compute = 0x4000108c; -r_lld_con_ch_map_update = 0x40001090; -r_lld_con_cleanup = 0x40001094; -r_lld_con_current_tx_power_get = 0x40001098; -r_lld_con_data_flow_set = 0x4000109c; -r_lld_con_data_len_update = 0x400010a0; -r_lld_con_data_tx = 0x400010a4; -r_lld_con_enc_key_load = 0x400010a8; -r_lld_con_event_counter_get = 0x400010ac; -r_lld_con_evt_canceled_cbk = 0x400010b0; -r_lld_con_evt_duration_min_get = 0x400010b4; -r_lld_con_evt_max_eff_time_cal = 0x400010b8; -r_lld_con_evt_sd_evt_time_get = 0x400010bc; -r_lld_con_evt_start_cbk = 0x400010c0; -r_lld_con_evt_time_update = 0x400010c4; -r_lld_con_free_all_tx_buf = 0x400010c8; -r_lld_con_frm_cbk = 0x400010cc; -r_lld_con_frm_isr = 0x400010d0; -r_lld_con_frm_skip_isr = 0x400010d4; -r_lld_con_init = 0x400010d8; -r_lld_con_llcp_tx = 0x400010dc; -r_lld_con_max_lat_calc = 0x400010e0; -r_lld_con_offset_get = 0x400010e4; -r_lld_con_param_update = 0x400010e8; -r_lld_con_phys_update = 0x400010ec; -r_lld_con_pref_slave_evt_dur_set = 0x400010f0; -r_lld_con_pref_slave_latency_set = 0x400010f4; -r_lld_con_rssi_get = 0x400010f8; -r_lld_con_rx = 0x400010fc; -r_lld_con_rx_channel_assess = 0x40001100; -r_lld_con_rx_enc = 0x40001104; -r_lld_con_rx_isr = 0x40001108; -r_lld_con_rx_link_info_check = 0x4000110c; -r_lld_con_rx_llcp_check = 0x40001110; -r_lld_con_rx_sync_time_update = 0x40001114; -r_lld_con_sched = 0x40001118; -r_lld_con_set_tx_power = 0x4000111c; -r_lld_con_start = 0x40001120; -r_lld_con_stop = 0x40001124; -r_lld_con_tx = 0x40001128; -r_lld_con_tx_enc = 0x4000112c; -r_lld_con_tx_isr = 0x40001130; -r_lld_con_tx_len_update = 0x40001134; -r_lld_con_tx_len_update_for_intv = 0x40001138; -r_lld_con_tx_len_update_for_rate = 0x4000113c; -r_lld_con_tx_prog = 0x40001140; -r_lld_conn_dynamic_pti_process = 0x40001144; -r_lld_continue_scan_rx_isr_end_process = 0x40001148; -r_lld_ext_scan_dynamic_pti_process = 0x4000114c; -r_lld_hw_cca_end_isr = 0x40001150; -r_lld_hw_cca_evt_handler = 0x40001154; -r_lld_hw_cca_isr = 0x40001158; -r_lld_init_cal_anchor_point = 0x4000115c; -r_lld_init_compute_winoffset = 0x40001160; -r_lld_init_connect_req_pack = 0x40001164; -r_lld_init_end = 0x40001168; -r_lld_init_evt_canceled_cbk = 0x4000116c; -r_lld_init_evt_start_cbk = 0x40001170; -r_lld_init_frm_cbk = 0x40001174; -r_lld_init_frm_eof_isr = 0x40001178; -r_lld_init_frm_skip_isr = 0x4000117c; -r_lld_init_init = 0x40001180; -r_lld_init_process_pkt_rx = 0x40001184; -r_lld_init_process_pkt_rx_adv_ext_ind = 0x40001188; -r_lld_init_process_pkt_rx_adv_ind_or_direct_ind = 0x4000118c; -r_lld_init_process_pkt_rx_aux_connect_rsp = 0x40001190; -r_lld_init_process_pkt_tx = 0x40001194; -r_lld_init_process_pkt_tx_cal_con_timestamp = 0x40001198; -r_lld_init_sched = 0x4000119c; -r_lld_init_set_tx_power = 0x400011a0; -r_lld_init_start = 0x400011a4; -r_lld_init_stop = 0x400011a8; -r_lld_instant_proc_end = 0x400011ac; -r_lld_llcp_rx_ind_handler = 0x400011b0; -r_lld_per_adv_ch_map_update = 0x400011b4; -r_lld_per_adv_chain_construct = 0x400011b8; -r_lld_per_adv_cleanup = 0x400011bc; -r_lld_per_adv_coex_env_reset = 0x400011c0; -r_lld_per_adv_data_set = 0x400011c4; -r_lld_per_adv_data_update = 0x400011c8; -r_lld_per_adv_dynamic_pti_process = 0x400011cc; -r_lld_per_adv_evt_canceled_cbk = 0x400011d0; -r_lld_per_adv_evt_start_cbk = 0x400011d4; -r_lld_per_adv_ext_pkt_prepare = 0x400011d8; -r_lld_per_adv_frm_cbk = 0x400011dc; -r_lld_per_adv_frm_isr = 0x400011e0; -r_lld_per_adv_frm_skip_isr = 0x400011e4; -r_lld_per_adv_init = 0x400011e8; -r_lld_per_adv_init_info_get = 0x400011ec; -r_lld_per_adv_list_add = 0x400011f0; -r_lld_per_adv_list_rem = 0x400011f4; -r_lld_per_adv_sched = 0x400011f8; -r_lld_per_adv_set_tx_power = 0x400011fc; -r_lld_per_adv_start = 0x40001200; -r_lld_per_adv_stop = 0x40001204; -r_lld_per_adv_sync_info_get = 0x40001208; -r_lld_process_cca_data = 0x4000120c; -r_lld_ral_search = 0x40001210; -r_lld_read_clock = 0x40001214; -r_lld_res_list_add = 0x40001218; -r_lld_res_list_clear = 0x4000121c; -r_lld_res_list_is_empty = 0x40001220; -r_lld_res_list_local_rpa_get = 0x40001224; -r_lld_res_list_peer_rpa_get = 0x40001228; -r_lld_res_list_peer_update = 0x4000122c; -r_lld_res_list_priv_mode_update = 0x40001230; -r_lld_res_list_rem = 0x40001234; -r_lld_reset_reg = 0x40001238; -r_lld_rpa_renew = 0x4000123c; -r_lld_rpa_renew_evt_canceled_cbk = 0x40001240; -r_lld_rpa_renew_evt_start_cbk = 0x40001244; -r_lld_rpa_renew_instant_cbk = 0x40001248; -r_lld_rxdesc_check = 0x4000124c; -r_lld_rxdesc_free = 0x40001250; -r_lld_scan_create_sync = 0x40001254; -r_lld_scan_create_sync_cancel = 0x40001258; -r_lld_scan_end = 0x4000125c; -r_lld_scan_evt_canceled_cbk = 0x40001260; -r_lld_scan_evt_start_cbk = 0x40001264; -r_lld_scan_frm_cbk = 0x40001268; -r_lld_scan_frm_eof_isr = 0x4000126c; -r_lld_scan_frm_rx_isr = 0x40001270; -r_lld_scan_frm_skip_isr = 0x40001274; -r_lld_scan_init = 0x40001278; -r_lld_scan_params_update = 0x4000127c; -r_lld_scan_process_pkt_rx = 0x40001280; -r_lld_scan_process_pkt_rx_adv_rep = 0x40001284; -r_lld_scan_process_pkt_rx_aux_adv_ind = 0x40001288; -r_lld_scan_process_pkt_rx_aux_chain_ind = 0x4000128c; -r_lld_scan_process_pkt_rx_aux_scan_rsp = 0x40001290; -r_lld_scan_process_pkt_rx_ext_adv = 0x40001294; -r_lld_scan_process_pkt_rx_ext_adv_ind = 0x40001298; -r_lld_scan_process_pkt_rx_legacy_adv = 0x4000129c; -r_lld_scan_restart = 0x400012a0; -r_lld_scan_sched = 0x400012a4; -r_lld_scan_set_tx_power = 0x400012a8; -r_lld_scan_start = 0x400012ac; -r_lld_scan_stop = 0x400012b0; -r_lld_scan_sync_accept = 0x400012b4; -r_lld_scan_sync_info_unpack = 0x400012b8; -r_lld_scan_trunc_ind = 0x400012bc; -r_lld_sw_cca_evt_handler = 0x400012c0; -r_lld_sw_cca_isr = 0x400012c4; -r_lld_sync_ch_map_update = 0x400012c8; -r_lld_sync_cleanup = 0x400012cc; -r_lld_sync_evt_canceled_cbk = 0x400012d0; -r_lld_sync_evt_start_cbk = 0x400012d4; -r_lld_sync_frm_cbk = 0x400012d8; -r_lld_sync_frm_eof_isr = 0x400012dc; -r_lld_sync_frm_rx_isr = 0x400012e0; -r_lld_sync_frm_skip_isr = 0x400012e4; -r_lld_sync_init = 0x400012e8; -r_lld_sync_process_pkt_rx = 0x400012ec; -r_lld_sync_process_pkt_rx_aux_sync_ind = 0x400012f0; -r_lld_sync_process_pkt_rx_pkt_check = 0x400012f4; -r_lld_sync_scan_dynamic_pti_process = 0x400012f8; -r_lld_sync_sched = 0x400012fc; -r_lld_sync_start = 0x40001300; -r_lld_sync_stop = 0x40001304; -r_lld_sync_trunc_ind = 0x40001308; -r_lld_test_cleanup = 0x4000130c; -r_lld_test_evt_canceled_cbk = 0x40001310; -r_lld_test_evt_start_cbk = 0x40001314; -r_lld_test_freq2chnl = 0x40001318; -r_lld_test_frm_cbk = 0x4000131c; -r_lld_test_frm_isr = 0x40001320; -r_lld_test_init = 0x40001324; -r_lld_test_rx_isr = 0x40001328; -r_lld_test_set_tx_power = 0x4000132c; -r_lld_test_start = 0x40001330; -r_lld_test_stop = 0x40001334; -r_lld_update_rxbuf = 0x40001338; -r_lld_update_rxbuf_isr = 0x4000133c; -r_lld_white_list_add = 0x40001340; -r_lld_white_list_rem = 0x40001344; -r_llm_activity_free_get = 0x40001348; -r_llm_activity_free_set = 0x4000134c; -r_llm_activity_syncing_get = 0x40001350; -r_llm_adv_con_len_check = 0x40001354; -r_llm_adv_hdl_to_id = 0x40001358; -r_llm_adv_rep_flow_control_check = 0x4000135c; -r_llm_adv_rep_flow_control_update = 0x40001360; -r_llm_adv_reports_list_check = 0x40001364; -r_llm_adv_set_all_release = 0x40001368; -r_llm_adv_set_dft_params = 0x4000136c; -r_llm_adv_set_release = 0x40001370; -r_llm_aes_res_cb = 0x40001374; -r_llm_ble_update_adv_flow_control = 0x40001378; -r_llm_ch_map_update = 0x4000137c; -r_llm_cmd_cmp_send = 0x40001380; -r_llm_cmd_stat_send = 0x40001384; -r_llm_dev_list_empty_entry = 0x40001388; -r_llm_dev_list_search = 0x4000138c; -r_llm_env_adv_dup_filt_deinit = 0x40001390; -r_llm_env_adv_dup_filt_init = 0x40001394; -r_llm_init_ble_adv_report_flow_contol = 0x40001398; -r_llm_is_dev_connected = 0x4000139c; -r_llm_is_dev_synced = 0x400013a0; -r_llm_is_non_con_act_ongoing_check = 0x400013a4; -r_llm_is_wl_accessible = 0x400013a8; -r_llm_le_evt_mask_check = 0x400013ac; -r_llm_le_features_get = 0x400013b0; -r_llm_link_disc = 0x400013b4; -r_llm_master_ch_map_get = 0x400013b8; -r_llm_msg_handler_tab_p_get = 0x400013bc; -r_llm_no_activity = 0x400013c0; -r_llm_per_adv_slot_dur = 0x400013c4; -r_llm_plan_elt_get = 0x400013c8; -r_llm_rx_path_comp_get = 0x400013cc; -r_llm_scan_start = 0x400013d0; -r_llm_scan_sync_acad_attach = 0x400013d4; -r_llm_scan_sync_acad_detach = 0x400013d8; -r_llm_send_adv_lost_event_to_host = 0x400013dc; -r_llm_tx_path_comp_get = 0x400013e0; -r_misc_deinit = 0x400013e4; -r_misc_free_em_buf_in_isr = 0x400013e8; -r_misc_init = 0x400013ec; -r_misc_msg_handler_tab_p_get = 0x400013f0; -r_notEqual256 = 0x400013f4; -r_phy_upd_proc_start = 0x400013f8; -r_platform_reset = 0x400013fc; -r_register_esp_vendor_cmd_handler = 0x40001400; -r_rf_em_init = 0x40001404; -r_rf_force_agc_enable = 0x40001408; -r_rf_reg_rd = 0x4000140c; -r_rf_reg_wr = 0x40001410; -r_rf_reset = 0x40001414; -r_rf_rssi_convert = 0x40001418; -r_rf_rw_v9_le_disable = 0x4000141c; -r_rf_rw_v9_le_enable = 0x40001420; -r_rf_sleep = 0x40001424; -r_rf_txpwr_cs_get = 0x40001428; -r_rf_txpwr_dbm_get = 0x4000142c; -r_rf_util_cs_fmt_convert = 0x40001430; -r_rw_crypto_aes_ccm = 0x40001434; -r_rw_crypto_aes_encrypt = 0x40001438; -r_rw_crypto_aes_init = 0x4000143c; -r_rw_crypto_aes_k1 = 0x40001440; -r_rw_crypto_aes_k2 = 0x40001444; -r_rw_crypto_aes_k3 = 0x40001448; -r_rw_crypto_aes_k4 = 0x4000144c; -r_rw_crypto_aes_rand = 0x40001450; -r_rw_crypto_aes_result_handler = 0x40001454; -r_rw_crypto_aes_s1 = 0x40001458; -r_rw_cryto_aes_cmac = 0x4000145c; -r_rw_v9_init_em_radio_table = 0x40001460; -r_rwble_isr = 0x40001464; -r_rwble_sleep_enter = 0x40001468; -r_rwble_sleep_wakeup_end = 0x4000146c; -r_rwbtdm_isr_wrapper = 0x40001470; -r_rwip_active_check = 0x40001474; -r_rwip_aes_encrypt = 0x40001478; -r_rwip_assert = 0x4000147c; -r_rwip_crypt_evt_handler = 0x40001480; -r_rwip_crypt_isr_handler = 0x40001484; -r_rwip_eif_get = 0x40001488; -r_rwip_half_slot_2_lpcycles = 0x4000148c; -r_rwip_hus_2_lpcycles = 0x40001490; -r_rwip_isr = 0x40001494; -r_rwip_lpcycles_2_hus = 0x40001498; -r_rwip_prevent_sleep_clear = 0x4000149c; -r_rwip_prevent_sleep_set = 0x400014a0; -r_rwip_schedule = 0x400014a4; -r_rwip_sleep = 0x400014a8; -r_rwip_sw_int_handler = 0x400014ac; -r_rwip_sw_int_req = 0x400014b0; -r_rwip_time_get = 0x400014b4; -r_rwip_timer_10ms_handler = 0x400014b8; -r_rwip_timer_10ms_set = 0x400014bc; -r_rwip_timer_hs_handler = 0x400014c0; -r_rwip_timer_hs_set = 0x400014c4; -r_rwip_timer_hus_handler = 0x400014c8; -r_rwip_timer_hus_set = 0x400014cc; -r_rwip_wakeup = 0x400014d0; -r_rwip_wakeup_end = 0x400014d4; -r_rwip_wlcoex_set = 0x400014d8; -r_sch_alarm_clear = 0x400014dc; -r_sch_alarm_init = 0x400014e0; -r_sch_alarm_prog = 0x400014e4; -r_sch_alarm_set = 0x400014e8; -r_sch_alarm_timer_isr = 0x400014ec; -r_sch_arb_conflict_check = 0x400014f0; -r_sch_arb_elt_cancel = 0x400014f4; -r_sch_arb_event_start_isr = 0x400014f8; -r_sch_arb_init = 0x400014fc; -r_sch_arb_insert = 0x40001500; -r_sch_arb_prog_timer = 0x40001504; -r_sch_arb_remove = 0x40001508; -r_sch_arb_sw_isr = 0x4000150c; -r_sch_plan_chk = 0x40001510; -r_sch_plan_clock_wrap_offset_update = 0x40001514; -r_sch_plan_init = 0x40001518; -r_sch_plan_interval_req = 0x4000151c; -r_sch_plan_offset_max_calc = 0x40001520; -r_sch_plan_offset_req = 0x40001524; -r_sch_plan_position_range_compute = 0x40001528; -r_sch_plan_rem = 0x4000152c; -r_sch_plan_req = 0x40001530; -r_sch_plan_set = 0x40001534; -r_sch_prog_end_isr = 0x40001538; -r_sch_prog_init = 0x4000153c; -r_sch_prog_push = 0x40001540; -r_sch_prog_rx_isr = 0x40001544; -r_sch_prog_skip_isr = 0x40001548; -r_sch_prog_tx_isr = 0x4000154c; -r_sch_slice_bg_add = 0x40001550; -r_sch_slice_bg_remove = 0x40001554; -r_sch_slice_compute = 0x40001558; -r_sch_slice_fg_add = 0x4000155c; -r_sch_slice_fg_remove = 0x40001560; -r_sch_slice_init = 0x40001564; -r_sch_slice_per_add = 0x40001568; -r_sch_slice_per_remove = 0x4000156c; -r_sdk_config_get_bt_sleep_enable = 0x40001570; -r_sdk_config_get_hl_derived_opts = 0x40001574; -r_sdk_config_get_opts = 0x40001578; -r_sdk_config_get_priv_opts = 0x4000157c; -r_sdk_config_set_bt_sleep_enable = 0x40001580; -r_sdk_config_set_hl_derived_opts = 0x40001584; -r_sdk_config_set_opts = 0x40001588; -r_specialModP256 = 0x4000158c; -r_unloaded_area_init = 0x40001590; -r_vhci_flow_off = 0x40001594; -r_vhci_flow_on = 0x40001598; -r_vhci_notify_host_send_available = 0x4000159c; -r_vhci_send_to_host = 0x400015a0; -r_vnd_hci_command_handler = 0x400015a4; -r_vshci_init = 0x400015a8; -vnd_hci_command_handler_wrapper = 0x400015ac; -/* Data (.data, .bss, .rodata) */ -bt_rf_coex_cfg_p = 0x3fcdffcc; -bt_rf_coex_hooks_p = 0x3fcdffc8; -btdm_env_p = 0x3fcdffc4; -g_rw_controller_task_handle = 0x3fcdffc0; -g_rw_init_sem = 0x3fcdffbc; -g_rw_schd_queue = 0x3fcdffb8; -lld_init_env = 0x3fcdffb4; -lld_rpa_renew_env = 0x3fcdffb0; -lld_scan_env = 0x3fcdffac; -lld_scan_sync_env = 0x3fcdffa8; -lld_test_env = 0x3fcdffa4; -p_ble_util_buf_env = 0x3fcdffa0; -p_lld_env = 0x3fcdff9c; -p_llm_env = 0x3fcdff98; -r_h4tl_eif_p = 0x3fcdff94; -r_hli_funcs_p = 0x3fcdff90; -r_ip_funcs_p = 0x3fcdff8c; -r_modules_funcs_p = 0x3fcdff88; -r_osi_funcs_p = 0x3fcdff84; -r_plf_funcs_p = 0x3fcdff80; -vhci_env_p = 0x3fcdff7c; -aa_gen = 0x3fcdff78; -aes_env = 0x3fcdff6c; -bt_rf_coex_cfg_cb = 0x3fcdff1c; -btdm_pwr_state = 0x3fcdff18; -btdm_slp_err = 0x3fcdff14; -ecc_env = 0x3fcdff0c; -esp_handler = 0x3fcdff04; -esp_vendor_cmd = 0x3fcdfefc; -g_adv_delay_dis = 0x3fcdfef8; -g_conflict_elt = 0x3fcdfef4; -g_eif_api = 0x3fcdfee4; -g_event_empty = 0x3fcdfed8; -g_llc_state = 0x3fcdfecc; -g_llm_state = 0x3fcdfec8; -g_max_evt_env = 0x3fcdfec4; -g_misc_state = 0x3fcdfec0; -g_rma_rule_db = 0x3fcdfea4; -g_rtp_rule_db = 0x3fcdfe88; -g_scan_forever = 0x3fcdfe85; -g_time_msb = 0x3fcdfe84; -h4tl_env = 0x3fcdfe5c; -hci_env = 0x3fcdfe38; -hci_ext_host = 0x3fcdfe34; -hci_fc_env = 0x3fcdfe2c; -hci_tl_env = 0x3fcdfe00; -ke_env = 0x3fcdfdd0; -ke_event_env = 0x3fcdfd90; -ke_task_env = 0x3fcdfd14; -llc_env = 0x3fcdfcec; -lld_adv_env = 0x3fcdfcc4; -lld_con_env = 0x3fcdfc9c; -lld_exp_sync_pos_tab = 0x3fcdfc94; -lld_per_adv_env = 0x3fcdfc6c; -lld_sync_env = 0x3fcdfc44; -llm_le_adv_flow_env = 0x3fcdfc38; -rw_sleep_enable = 0x3fcdfc34; -rwble_env = 0x3fcdfc2c; -rwip_env = 0x3fcdfc10; -rwip_param = 0x3fcdfc04; -rwip_prog_delay = 0x3fcdfc00; -rwip_rf = 0x3fcdfbc8; -sch_alarm_env = 0x3fcdfbc0; -sch_arb_env = 0x3fcdfbac; -sch_plan_env = 0x3fcdfba4; -sch_prog_env = 0x3fcdfaa0; -sch_slice_env = 0x3fcdfa40; -sch_slice_params = 0x3fcdfa38; -timer_env = 0x3fcdfa30; -unloaded_area = 0x3fcdfa2c; -vshci_state = 0x3fcdfa28; -TASK_DESC_LLC = 0x3fcdfa1c; -TASK_DESC_LLM = 0x3fcdfa10; -TASK_DESC_VSHCI = 0x3fcdfa04; -co_default_bdaddr = 0x3fcdf9fc; -dbg_assert_block = 0x3fcdf9f8; -g_bt_plf_log_level = 0x3fcdf9f4; -hci_cmd_desc_tab_vs_esp = 0x3fcdf9d0; -hci_command_handler_tab_esp = 0x3fcdf9b8; -privacy_en = 0x3fcdf9b4; -sdk_cfg_priv_opts = 0x3fcdf96c; -BasePoint_x_256 = 0x3ff1ffdc; -BasePoint_y_256 = 0x3ff1ffbc; -DebugE256PublicKey_x = 0x3ff1ff9c; -DebugE256PublicKey_y = 0x3ff1ff7c; -DebugE256SecretKey = 0x3ff1ff5c; -ECC_4Win_Look_up_table = 0x3ff1f7a0; -LLM_AA_CT1 = 0x3ff1f79c; -LLM_AA_CT2 = 0x3ff1f798; -RF_TX_PW_CONV_TBL = 0x3ff1f790; -TASK_DESC_MISC = 0x3ff1f784; -adv_evt_prop2type = 0x3ff1f768; -adv_evt_type2prop = 0x3ff1f760; -aes_cmac_zero = 0x3ff1f750; -aes_k2_salt = 0x3ff1f740; -aes_k3_id64 = 0x3ff1f738; -aes_k3_salt = 0x3ff1f728; -aes_k4_id6 = 0x3ff1f724; -aes_k4_salt = 0x3ff1f714; -bigHexP256 = 0x3ff1f6e8; -byte_tx_time = 0x3ff1f6e0; -co_null_bdaddr = 0x3ff1f6d8; -co_phy_mask_to_rate = 0x3ff1f6d0; -co_phy_mask_to_value = 0x3ff1f6c8; -co_phy_to_rate = 0x3ff1f6c4; -co_phy_value_to_mask = 0x3ff1f6c0; -co_rate_to_byte_dur_us = 0x3ff1f6b8; -co_rate_to_phy = 0x3ff1f6b0; -co_rate_to_phy_mask = 0x3ff1f6ac; -co_sca2ppm = 0x3ff1f69c; -coef_B = 0x3ff1f670; -connect_req_dur_tab = 0x3ff1f668; -ecc_Jacobian_InfinityPoint256 = 0x3ff1f5e4; -em_base_reg_lut = 0x3ff1f518; -fixed_tx_time = 0x3ff1f510; -h4tl_msgtype2hdrlen = 0x3ff1f508; -hci_cmd_desc_root_tab = 0x3ff1f4d8; -hci_cmd_desc_tab_ctrl_bb = 0x3ff1f46c; -hci_cmd_desc_tab_info_par = 0x3ff1f43c; -hci_cmd_desc_tab_le = 0x3ff1f0a0; -hci_cmd_desc_tab_lk_ctrl = 0x3ff1f088; -hci_cmd_desc_tab_stat_par = 0x3ff1f07c; -hci_cmd_desc_tab_vs = 0x3ff1f040; -hci_evt_desc_tab = 0x3ff1eff8; -hci_evt_le_desc_tab = 0x3ff1ef58; -hci_evt_le_desc_tab_esp = 0x3ff1ef50; -hci_rsvd_evt_msk = 0x3ff1ef48; -lld_aux_phy_to_rate = 0x3ff1ef44; -lld_init_max_aux_dur_tab = 0x3ff1ef3c; -lld_scan_map_legacy_pdu_to_evt_type = 0x3ff1ef34; -lld_scan_max_aux_dur_tab = 0x3ff1ef2c; -lld_sync_max_aux_dur_tab = 0x3ff1ef24; -llm_local_le_feats = 0x3ff1ef1c; -llm_local_le_states = 0x3ff1ef14; -llm_local_supp_cmds = 0x3ff1eeec; -maxSecretKey_256 = 0x3ff1eecc; -max_data_tx_time = 0x3ff1eec4; -one_bits = 0x3ff1eeb4; -rwip_coex_cfg = 0x3ff1eeac; -rwip_priority = 0x3ff1ee94; -veryBigHexP256 = 0x3ff1ee48; - - -/*************************************** - Group rom_pp - ***************************************/ - -/* Functions */ -esp_pp_rom_version_get = 0x400015b0; -RC_GetBlockAckTime = 0x400015b4; -ebuf_list_remove = 0x400015b8; -esf_buf_alloc = 0x400015bc; -esf_buf_alloc_dynamic = 0x400015c0; -esf_buf_recycle = 0x400015c4; -GetAccess = 0x400015c8; -hal_mac_is_low_rate_enabled = 0x400015cc; -hal_mac_tx_get_blockack = 0x400015d0; -hal_mac_tx_set_ppdu = 0x400015d4; -ic_get_trc = 0x400015d8; -ic_mac_deinit = 0x400015dc; -ic_mac_init = 0x400015e0; -ic_interface_enabled = 0x400015e4; -is_lmac_idle = 0x400015e8; -lmacAdjustTimestamp = 0x400015ec; -lmacDiscardAgedMSDU = 0x400015f0; -lmacDiscardMSDU = 0x400015f4; -lmacEndFrameExchangeSequence = 0x400015f8; -lmacIsIdle = 0x400015fc; -lmacIsLongFrame = 0x40001600; -lmacMSDUAged = 0x40001604; -lmacPostTxComplete = 0x40001608; -lmacProcessAllTxTimeout = 0x4000160c; -lmacProcessCollisions = 0x40001610; -lmacProcessRxSucData = 0x40001614; -lmacReachLongLimit = 0x40001618; -lmacReachShortLimit = 0x4000161c; -lmacRecycleMPDU = 0x40001620; -lmacRxDone = 0x40001624; -lmacSetTxFrame = 0x40001628; -lmacTxDone = 0x4000162c; -lmacTxFrame = 0x40001630; -mac_tx_set_duration = 0x40001634; -mac_tx_set_htsig = 0x40001638; -mac_tx_set_plcp0 = 0x4000163c; -mac_tx_set_plcp1 = 0x40001640; -mac_tx_set_plcp2 = 0x40001644; -pm_check_state = 0x40001648; -pm_disable_dream_timer = 0x4000164c; -pm_disable_sleep_delay_timer = 0x40001650; -pm_dream = 0x40001654; -pm_mac_wakeup = 0x40001658; -pm_mac_sleep = 0x4000165c; -pm_enable_active_timer = 0x40001660; -pm_enable_sleep_delay_timer = 0x40001664; -pm_local_tsf_process = 0x40001668; -pm_set_beacon_filter = 0x4000166c; -pm_is_in_wifi_slice_threshold = 0x40001670; -pm_is_waked = 0x40001674; -pm_keep_alive = 0x40001678; -pm_on_beacon_rx = 0x4000167c; -pm_on_data_rx = 0x40001680; -pm_on_tbtt = 0x40001684; -pm_parse_beacon = 0x40001688; -pm_process_tim = 0x4000168c; -pm_rx_beacon_process = 0x40001690; -pm_rx_data_process = 0x40001694; -pm_sleep = 0x40001698; -pm_sleep_for = 0x4000169c; -pm_tbtt_process = 0x400016a0; -ppAMPDU2Normal = 0x400016a4; -ppAssembleAMPDU = 0x400016a8; -ppCalFrameTimes = 0x400016ac; -ppCalSubFrameLength = 0x400016b0; -ppCalTxAMPDULength = 0x400016b4; -ppCheckTxAMPDUlength = 0x400016b8; -ppDequeueRxq_Locked = 0x400016bc; -ppDequeueTxQ = 0x400016c0; -ppEmptyDelimiterLength = 0x400016c4; -ppEnqueueRxq = 0x400016c8; -ppEnqueueTxDone = 0x400016cc; -ppGetTxQFirstAvail_Locked = 0x400016d0; -ppGetTxframe = 0x400016d4; -ppMapTxQueue = 0x400016d8; -ppProcTxSecFrame = 0x400016dc; -ppProcessRxPktHdr = 0x400016e0; -ppProcessTxQ = 0x400016e4; -ppRecordBarRRC = 0x400016e8; -lmacRequestTxopQueue = 0x400016ec; -lmacReleaseTxopQueue = 0x400016f0; -ppRecycleAmpdu = 0x400016f4; -ppRecycleRxPkt = 0x400016f8; -ppResortTxAMPDU = 0x400016fc; -ppResumeTxAMPDU = 0x40001700; -ppRxFragmentProc = 0x40001704; -ppRxPkt = 0x40001708; -ppRxProtoProc = 0x4000170c; -ppSearchTxQueue = 0x40001710; -ppSearchTxframe = 0x40001714; -ppSelectNextQueue = 0x40001718; -ppSubFromAMPDU = 0x4000171c; -ppTask = 0x40001720; -ppTxPkt = 0x40001724; -ppTxProtoProc = 0x40001728; -ppTxqUpdateBitmap = 0x4000172c; -pp_coex_tx_request = 0x40001730; -pp_hdrsize = 0x40001734; -pp_post = 0x40001738; -pp_process_hmac_waiting_txq = 0x4000173c; -rcGetAmpduSched = 0x40001740; -rcUpdateRxDone = 0x40001744; -rc_get_trc = 0x40001748; -rc_get_trc_by_index = 0x4000174c; -rcAmpduLowerRate = 0x40001750; -rcampduuprate = 0x40001754; -rcClearCurAMPDUSched = 0x40001758; -rcClearCurSched = 0x4000175c; -rcClearCurStat = 0x40001760; -rcGetSched = 0x40001764; -rcLowerSched = 0x40001768; -rcSetTxAmpduLimit = 0x4000176c; -rcTxUpdatePer = 0x40001770; -rcUpdateAckSnr = 0x40001774; -rcUpdateRate = 0x40001778; -rcUpdateTxDone = 0x4000177c; -rcUpdateTxDoneAmpdu2 = 0x40001780; -rcUpSched = 0x40001784; -rssi_margin = 0x40001788; -rx11NRate2AMPDULimit = 0x4000178c; -TRC_AMPDU_PER_DOWN_THRESHOLD = 0x40001790; -TRC_AMPDU_PER_UP_THRESHOLD = 0x40001794; -trc_calc_duration = 0x40001798; -trc_isTxAmpduOperational = 0x4000179c; -trc_onAmpduOp = 0x400017a0; -TRC_PER_IS_GOOD = 0x400017a4; -trc_SetTxAmpduState = 0x400017a8; -trc_tid_isTxAmpduOperational = 0x400017ac; -trcAmpduSetState = 0x400017b0; -wDevCheckBlockError = 0x400017b4; -wDev_AppendRxBlocks = 0x400017b8; -wDev_DiscardFrame = 0x400017bc; -wDev_GetNoiseFloor = 0x400017c0; -wDev_IndicateAmpdu = 0x400017c4; -wDev_IndicateFrame = 0x400017c8; -wdev_bank_store = 0x400017cc; -wdev_bank_load = 0x400017d0; -wdev_mac_reg_load = 0x400017d4; -wdev_mac_reg_store = 0x400017d8; -wdev_mac_special_reg_load = 0x400017dc; -wdev_mac_special_reg_store = 0x400017e0; -wdev_mac_wakeup = 0x400017e4; -wdev_mac_sleep = 0x400017e8; -hal_mac_is_dma_enable = 0x400017ec; -wDev_ProcessFiq = 0x400017f0; -wDev_ProcessRxSucData = 0x400017f4; -wdevProcessRxSucDataAll = 0x400017f8; -wdev_csi_len_align = 0x400017fc; -ppDequeueTxDone_Locked = 0x40001800; -ppProcTxDone = 0x40001804; -pm_tx_data_done_process = 0x40001808; -config_is_cache_tx_buf_enabled = 0x4000180c; -ppMapWaitTxq = 0x40001810; -ppProcessWaitingQueue = 0x40001814; -ppDisableQueue = 0x40001818; -pm_allow_tx = 0x4000181c; -/* Data (.data, .bss, .rodata) */ -our_instances_ptr = 0x3ff1ee44; -pTxRx = 0x3fcdf968; -lmacConfMib_ptr = 0x3fcdf964; -our_wait_eb = 0x3fcdf960; -our_tx_eb = 0x3fcdf95c; -pp_wdev_funcs = 0x3fcdf958; -g_osi_funcs_p = 0x3fcdf954; -wDevCtrl_ptr = 0x3fcdf950; -g_wdev_last_desc_reset_ptr = 0x3ff1ee40; -wDevMacSleep_ptr = 0x3fcdf94c; -g_lmac_cnt_ptr = 0x3fcdf948; -our_controls_ptr = 0x3ff1ee3c; -pp_sig_cnt_ptr = 0x3fcdf944; -g_eb_list_desc_ptr = 0x3fcdf940; -s_fragment_ptr = 0x3fcdf93c; -if_ctrl_ptr = 0x3fcdf938; -g_intr_lock_mux = 0x3fcdf934; -g_wifi_global_lock = 0x3fcdf930; -s_wifi_queue = 0x3fcdf92c; -pp_task_hdl = 0x3fcdf928; -s_pp_task_create_sem = 0x3fcdf924; -s_pp_task_del_sem = 0x3fcdf920; -g_wifi_menuconfig_ptr = 0x3fcdf91c; -xphyQueue = 0x3fcdf918; -ap_no_lr_ptr = 0x3fcdf914; -rc11BSchedTbl_ptr = 0x3fcdf910; -rc11NSchedTbl_ptr = 0x3fcdf90c; -rcLoRaSchedTbl_ptr = 0x3fcdf908; -BasicOFDMSched_ptr = 0x3fcdf904; -trc_ctl_ptr = 0x3fcdf900; -g_pm_cnt_ptr = 0x3fcdf8fc; -g_pm_ptr = 0x3fcdf8f8; -g_pm_cfg_ptr = 0x3fcdf8f4; -g_esp_mesh_quick_funcs_ptr = 0x3fcdf8f0; -g_txop_queue_status_ptr = 0x3fcdf8ec; -g_mac_sleep_en_ptr = 0x3fcdf8e8; -g_mesh_is_root_ptr = 0x3fcdf8e4; -g_mesh_topology_ptr = 0x3fcdf8e0; -g_mesh_init_ps_type_ptr = 0x3fcdf8dc; -g_mesh_is_started_ptr = 0x3fcdf8d8; -g_config_func = 0x3fcdf8d4; -g_net80211_tx_func = 0x3fcdf8d0; -g_timer_func = 0x3fcdf8cc; -s_michael_mic_failure_cb = 0x3fcdf8c8; -wifi_sta_rx_probe_req = 0x3fcdf8c4; -g_tx_done_cb_func = 0x3fcdf8c0; -g_per_conn_trc = 0x3fcdf874; -s_encap_amsdu_func = 0x3fcdf870; - - -/*************************************** - Group rom_net80211 - ***************************************/ - -/* Functions */ -esp_net80211_rom_version_get = 0x40001820; -ampdu_dispatch = 0x40001824; -ampdu_dispatch_all = 0x40001828; -ampdu_dispatch_as_many_as_possible = 0x4000182c; -ampdu_dispatch_movement = 0x40001830; -ampdu_dispatch_upto = 0x40001834; -chm_is_at_home_channel = 0x40001838; -cnx_node_is_existing = 0x4000183c; -cnx_node_search = 0x40001840; -ic_ebuf_recycle_rx = 0x40001844; -ic_ebuf_recycle_tx = 0x40001848; -ic_reset_rx_ba = 0x4000184c; -ieee80211_align_eb = 0x40001850; -ieee80211_ampdu_reorder = 0x40001854; -ieee80211_ampdu_start_age_timer = 0x40001858; -ieee80211_encap_esfbuf = 0x4000185c; -ieee80211_is_tx_allowed = 0x40001860; -ieee80211_output_pending_eb = 0x40001864; -ieee80211_output_process = 0x40001868; -ieee80211_set_tx_desc = 0x4000186c; -sta_input = 0x40001870; -wifi_get_macaddr = 0x40001874; -wifi_rf_phy_disable = 0x40001878; -wifi_rf_phy_enable = 0x4000187c; -ic_ebuf_alloc = 0x40001880; -ieee80211_classify = 0x40001884; -ieee80211_copy_eb_header = 0x40001888; -ieee80211_recycle_cache_eb = 0x4000188c; -ieee80211_search_node = 0x40001890; -roundup2 = 0x40001894; -ieee80211_crypto_encap = 0x40001898; -ieee80211_crypto_decap = 0x4000189c; -ieee80211_decap = 0x400018a0; -ieee80211_set_tx_pti = 0x400018a4; -wifi_is_started = 0x400018a8; -/* Data (.data, .bss, .rodata) */ -net80211_funcs = 0x3fcdf86c; -g_scan = 0x3fcdf868; -g_chm = 0x3fcdf864; -g_ic_ptr = 0x3fcdf860; -g_hmac_cnt_ptr = 0x3fcdf85c; -g_tx_cacheq_ptr = 0x3fcdf858; -s_netstack_free = 0x3fcdf854; -mesh_rxcb = 0x3fcdf850; -sta_rxcb = 0x3fcdf84c; - - -/*************************************** - Group rom_coexist - ***************************************/ - -/* Functions */ -esp_coex_rom_version_get = 0x400018ac; -coex_bt_release = 0x400018b0; -coex_bt_request = 0x400018b4; -coex_core_ble_conn_dyn_prio_get = 0x400018b8; -coex_core_event_duration_get = 0x400018bc; -coex_core_pti_get = 0x400018c0; -coex_core_release = 0x400018c4; -coex_core_request = 0x400018c8; -coex_core_status_get = 0x400018cc; -coex_core_timer_idx_get = 0x400018d0; -coex_event_duration_get = 0x400018d4; -coex_hw_timer_disable = 0x400018d8; -coex_hw_timer_enable = 0x400018dc; -coex_hw_timer_set = 0x400018e0; -coex_schm_interval_set = 0x400018e4; -coex_schm_lock = 0x400018e8; -coex_schm_unlock = 0x400018ec; -coex_status_get = 0x400018f0; -coex_wifi_release = 0x400018f4; -esp_coex_ble_conn_dynamic_prio_get = 0x400018f8; -/* Data (.data, .bss, .rodata) */ -coex_env_ptr = 0x3fcdf848; -coex_pti_tab_ptr = 0x3fcdf844; -coex_schm_env_ptr = 0x3fcdf840; -coexist_funcs = 0x3fcdf83c; -g_coa_funcs_p = 0x3fcdf838; -g_coex_param_ptr = 0x3fcdf834; - - -/*************************************** - Group rom_phy - ***************************************/ - -/* Functions */ -phy_get_romfuncs = 0x400018fc; -rom_abs_temp = 0x40001900; -rom_bb_bss_cbw40_dig = 0x40001904; -rom_bb_wdg_test_en = 0x40001908; -rom_bb_wdt_get_status = 0x4000190c; -rom_bb_wdt_int_enable = 0x40001910; -rom_bb_wdt_rst_enable = 0x40001914; -rom_bb_wdt_timeout_clear = 0x40001918; -rom_cbw2040_cfg = 0x4000191c; -rom_check_noise_floor = 0x40001920; -rom_chip_i2c_readReg = 0x40001924; -rom_chip_i2c_writeReg = 0x40001928; -rom_correct_rf_ana_gain = 0x4000192c; -rom_dc_iq_est = 0x40001930; -rom_disable_agc = 0x40001934; -rom_en_pwdet = 0x40001938; -rom_enable_agc = 0x4000193c; -rom_get_bbgain_db = 0x40001940; -rom_get_data_sat = 0x40001944; -rom_get_i2c_read_mask = 0x40001948; -rom_get_pwctrl_correct = 0x4000194c; -rom_get_rf_gain_qdb = 0x40001950; -rom_i2c_readReg = 0x40001954; -rom_i2c_readReg_Mask = 0x40001958; -rom_i2c_writeReg = 0x4000195c; -rom_i2c_writeReg_Mask = 0x40001960; -rom_index_to_txbbgain = 0x40001964; -rom_iq_est_disable = 0x40001968; -rom_iq_est_enable = 0x4000196c; -rom_linear_to_db = 0x40001970; -rom_loopback_mode_en = 0x40001974; -rom_mhz2ieee = 0x40001978; -rom_noise_floor_auto_set = 0x4000197c; -rom_pbus_debugmode = 0x40001980; -rom_pbus_force_mode = 0x40001984; -rom_pbus_force_test = 0x40001988; -rom_pbus_rd = 0x4000198c; -rom_pbus_rd_addr = 0x40001990; -rom_pbus_rd_shift = 0x40001994; -rom_pbus_set_dco = 0x40001998; -rom_pbus_set_rxgain = 0x4000199c; -rom_pbus_workmode = 0x400019a0; -rom_pbus_xpd_rx_off = 0x400019a4; -rom_pbus_xpd_rx_on = 0x400019a8; -rom_pbus_xpd_tx_off = 0x400019ac; -rom_pbus_xpd_tx_on = 0x400019b0; -rom_phy_byte_to_word = 0x400019b4; -rom_phy_disable_cca = 0x400019b8; -rom_phy_enable_cca = 0x400019bc; -rom_phy_get_noisefloor = 0x400019c0; -rom_phy_get_rx_freq = 0x400019c4; -rom_phy_set_bbfreq_init = 0x400019c8; -rom_pow_usr = 0x400019cc; -rom_pwdet_sar2_init = 0x400019d0; -rom_read_hw_noisefloor = 0x400019d4; -rom_read_sar_dout = 0x400019d8; -rom_set_cal_rxdc = 0x400019dc; -rom_set_chan_cal_interp = 0x400019e0; -rom_set_loopback_gain = 0x400019e4; -rom_set_noise_floor = 0x400019e8; -rom_set_rxclk_en = 0x400019ec; -rom_set_tx_dig_gain = 0x400019f0; -rom_set_txcap_reg = 0x400019f4; -rom_set_txclk_en = 0x400019f8; -rom_spur_cal = 0x400019fc; -rom_spur_reg_write_one_tone = 0x40001a00; -rom_target_power_add_backoff = 0x40001a04; -rom_tx_pwctrl_bg_init = 0x40001a08; -rom_txbbgain_to_index = 0x40001a0c; -rom_wifi_11g_rate_chg = 0x40001a10; -rom_write_gain_mem = 0x40001a14; -chip726_phyrom_version = 0x40001a18; -rom_disable_wifi_agc = 0x40001a1c; -rom_enable_wifi_agc = 0x40001a20; -rom_set_tx_gain_table = 0x40001a24; -rom_bt_index_to_bb = 0x40001a28; -rom_bt_bb_to_index = 0x40001a2c; -rom_wr_bt_tx_atten = 0x40001a30; -rom_wr_bt_tx_gain_mem = 0x40001a34; -rom_spur_coef_cfg = 0x40001a38; -rom_bb_bss_cbw40 = 0x40001a3c; -rom_set_cca = 0x40001a40; -rom_tx_paon_set = 0x40001a44; -rom_i2cmst_reg_init = 0x40001a48; -rom_iq_corr_enable = 0x40001a4c; -rom_fe_reg_init = 0x40001a50; -rom_agc_reg_init = 0x40001a54; -rom_bb_reg_init = 0x40001a58; -rom_mac_enable_bb = 0x40001a5c; -rom_bb_wdg_cfg = 0x40001a60; -rom_force_txon = 0x40001a64; -rom_fe_txrx_reset = 0x40001a68; -rom_set_rx_comp = 0x40001a6c; -rom_set_pbus_reg = 0x40001a70; -rom_write_chan_freq = 0x40001a74; -rom_phy_xpd_rf = 0x40001a78; -rom_set_xpd_sar = 0x40001a7c; -rom_write_dac_gain2 = 0x40001a80; -rom_rtc_sar2_init = 0x40001a84; -rom_get_target_power_offset = 0x40001a88; -rom_write_txrate_power_offset = 0x40001a8c; -rom_get_rate_fcc_index = 0x40001a90; -rom_get_rate_target_power = 0x40001a94; -rom_write_wifi_dig_gain = 0x40001a98; -rom_bt_correct_rf_ana_gain = 0x40001a9c; -rom_pkdet_vol_start = 0x40001aa0; -rom_read_sar2_code = 0x40001aa4; -rom_get_sar2_vol = 0x40001aa8; -rom_get_pll_vol = 0x40001aac; -rom_get_phy_target_power = 0x40001ab0; -rom_temp_to_power = 0x40001ab4; -rom_phy_track_pll_cap = 0x40001ab8; -rom_phy_pwdet_always_en = 0x40001abc; -rom_phy_pwdet_onetime_en = 0x40001ac0; -rom_get_i2c_mst0_mask = 0x40001ac4; -rom_get_i2c_hostid = 0x40001ac8; -rom_enter_critical_phy = 0x40001acc; -rom_exit_critical_phy = 0x40001ad0; -rom_chip_i2c_readReg_org = 0x40001ad4; -rom_i2c_paral_set_mst0 = 0x40001ad8; -rom_i2c_paral_set_read = 0x40001adc; -rom_i2c_paral_read = 0x40001ae0; -rom_i2c_paral_write = 0x40001ae4; -rom_i2c_paral_write_num = 0x40001ae8; -rom_i2c_paral_write_mask = 0x40001aec; -rom_bb_bss_cbw40_ana = 0x40001af0; -rom_chan_to_freq = 0x40001af4; -rom_open_i2c_xpd = 0x40001af8; -rom_dac_rate_set = 0x40001afc; -rom_tsens_read_init = 0x40001b00; -rom_tsens_code_read = 0x40001b04; -rom_tsens_index_to_dac = 0x40001b08; -rom_tsens_index_to_offset = 0x40001b0c; -rom_tsens_dac_cal = 0x40001b10; -rom_code_to_temp = 0x40001b14; -rom_write_pll_cap_mem = 0x40001b18; -rom_pll_correct_dcap = 0x40001b1c; -rom_phy_en_hw_set_freq = 0x40001b20; -rom_phy_dis_hw_set_freq = 0x40001b24; -rom_pll_vol_cal = 0x40001b28; - - - - -/* ROM function interface esp32c3.rom.libgcc.ld for esp32c3 - * - * - * Generated from ./interface-esp32c3.yml md5sum 93b28a9e1fe42d212018eb4336849208 - * - * Compatible with ROM where ECO version equal or greater to 0. - * - * THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT. - */ - -/*************************************** - Group libgcc - ***************************************/ - -/* Functions */ -__absvdi2 = 0x40000764; -__absvsi2 = 0x40000768; -__adddf3 = 0x4000076c; -__addsf3 = 0x40000770; -__addvdi3 = 0x40000774; -__addvsi3 = 0x40000778; -__ashldi3 = 0x4000077c; -__ashrdi3 = 0x40000780; -__bswapdi2 = 0x40000784; -__bswapsi2 = 0x40000788; -__clear_cache = 0x4000078c; -__clrsbdi2 = 0x40000790; -__clrsbsi2 = 0x40000794; -__clzdi2 = 0x40000798; -__clzsi2 = 0x4000079c; -__cmpdi2 = 0x400007a0; -__ctzdi2 = 0x400007a4; -__ctzsi2 = 0x400007a8; -__divdc3 = 0x400007ac; -__divdf3 = 0x400007b0; -__divdi3 = 0x400007b4; -__divsc3 = 0x400007b8; -__divsf3 = 0x400007bc; -__divsi3 = 0x400007c0; -__eqdf2 = 0x400007c4; -__eqsf2 = 0x400007c8; -__extendsfdf2 = 0x400007cc; -__ffsdi2 = 0x400007d0; -__ffssi2 = 0x400007d4; -__fixdfdi = 0x400007d8; -__fixdfsi = 0x400007dc; -__fixsfdi = 0x400007e0; -__fixsfsi = 0x400007e4; -__fixunsdfsi = 0x400007e8; -__fixunssfdi = 0x400007ec; -__fixunssfsi = 0x400007f0; -__floatdidf = 0x400007f4; -__floatdisf = 0x400007f8; -__floatsidf = 0x400007fc; -__floatsisf = 0x40000800; -__floatundidf = 0x40000804; -__floatundisf = 0x40000808; -__floatunsidf = 0x4000080c; -__floatunsisf = 0x40000810; -__gcc_bcmp = 0x40000814; -__gedf2 = 0x40000818; -__gesf2 = 0x4000081c; -__gtdf2 = 0x40000820; -__gtsf2 = 0x40000824; -__ledf2 = 0x40000828; -__lesf2 = 0x4000082c; -__lshrdi3 = 0x40000830; -__ltdf2 = 0x40000834; -__ltsf2 = 0x40000838; -__moddi3 = 0x4000083c; -__modsi3 = 0x40000840; -__muldc3 = 0x40000844; -__muldf3 = 0x40000848; -__muldi3 = 0x4000084c; -__mulsc3 = 0x40000850; -__mulsf3 = 0x40000854; -__mulsi3 = 0x40000858; -__mulvdi3 = 0x4000085c; -__mulvsi3 = 0x40000860; -__nedf2 = 0x40000864; -__negdf2 = 0x40000868; -__negdi2 = 0x4000086c; -__negsf2 = 0x40000870; -__negvdi2 = 0x40000874; -__negvsi2 = 0x40000878; -__nesf2 = 0x4000087c; -__paritysi2 = 0x40000880; -__popcountdi2 = 0x40000884; -__popcountsi2 = 0x40000888; -__powidf2 = 0x4000088c; -__powisf2 = 0x40000890; -__subdf3 = 0x40000894; -__subsf3 = 0x40000898; -__subvdi3 = 0x4000089c; -__subvsi3 = 0x400008a0; -__truncdfsf2 = 0x400008a4; -__ucmpdi2 = 0x400008a8; -__udivdi3 = 0x400008ac; -__udivmoddi4 = 0x400008b0; -__udivsi3 = 0x400008b4; -__udiv_w_sdiv = 0x400008b8; -__umoddi3 = 0x400008bc; -__umodsi3 = 0x400008c0; -__unorddf2 = 0x400008c4; -__unordsf2 = 0x400008c8; - - - -/* ROM function interface esp32c3.rom.newlib-nano.ld for esp32c3 - * - * - * Generated from ./interface-esp32c3.yml md5sum 93b28a9e1fe42d212018eb4336849208 - * - * Compatible with ROM where ECO version equal or greater to 0. - * - * THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT. - */ - -/*************************************** - Group newlib_nano_format - ***************************************/ - -/* Functions */ -__sprint_r = 0x40000480; -_fiprintf_r = 0x40000484; -_fprintf_r = 0x40000488; -_printf_common = 0x4000048c; -_printf_i = 0x40000490; -_vfiprintf_r = 0x40000494; -_vfprintf_r = 0x40000498; -fiprintf = 0x4000049c; -fprintf = 0x400004a0; -printf = 0x400004a4; -vfiprintf = 0x400004a8; -vfprintf = 0x400004ac; - - - - -/* ROM function interface esp32c3.rom.newlib.ld for esp32c3 - * - * - * Generated from ./interface-esp32c3.yml md5sum 93b28a9e1fe42d212018eb4336849208 - * - * Compatible with ROM where ECO version equal or greater to 0. - * - * THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT. - */ - -/*************************************** - Group newlib - ***************************************/ - -/* Functions */ -esp_rom_newlib_init_common_mutexes = 0x40000350; -memset = 0x40000354; -memcpy = 0x40000358; -memmove = 0x4000035c; -memcmp = 0x40000360; -strcpy = 0x40000364; -strncpy = 0x40000368; -strcmp = 0x4000036c; -strncmp = 0x40000370; -strlen = 0x40000374; -strstr = 0x40000378; -bzero = 0x4000037c; -_isatty_r = 0x40000380; -sbrk = 0x40000384; -isalnum = 0x40000388; -isalpha = 0x4000038c; -isascii = 0x40000390; -isblank = 0x40000394; -iscntrl = 0x40000398; -isdigit = 0x4000039c; -islower = 0x400003a0; -isgraph = 0x400003a4; -isprint = 0x400003a8; -ispunct = 0x400003ac; -isspace = 0x400003b0; -isupper = 0x400003b4; -toupper = 0x400003b8; -tolower = 0x400003bc; -toascii = 0x400003c0; -memccpy = 0x400003c4; -memchr = 0x400003c8; -memrchr = 0x400003cc; -strcasecmp = 0x400003d0; -strcasestr = 0x400003d4; -strcat = 0x400003d8; -strdup = 0x400003dc; -strchr = 0x400003e0; -strcspn = 0x400003e4; -strcoll = 0x400003e8; -strlcat = 0x400003ec; -strlcpy = 0x400003f0; -strlwr = 0x400003f4; -strncasecmp = 0x400003f8; -strncat = 0x400003fc; -strndup = 0x40000400; -strnlen = 0x40000404; -strrchr = 0x40000408; -strsep = 0x4000040c; -strspn = 0x40000410; -strtok_r = 0x40000414; -strupr = 0x40000418; -longjmp = 0x4000041c; -setjmp = 0x40000420; -abs = 0x40000424; -div = 0x40000428; -labs = 0x4000042c; -ldiv = 0x40000430; -qsort = 0x40000434; -rand_r = 0x40000438; -rand = 0x4000043c; -srand = 0x40000440; -utoa = 0x40000444; -itoa = 0x40000448; -atoi = 0x4000044c; -atol = 0x40000450; -strtol = 0x40000454; -strtoul = 0x40000458; -PROVIDE( fflush = 0x4000045c ); -PROVIDE( _fflush_r = 0x40000460 ); -PROVIDE( _fwalk = 0x40000464 ); -PROVIDE( _fwalk_reent = 0x40000468 ); -PROVIDE( __smakebuf_r = 0x4000046c ); -PROVIDE( __swhatbuf_r = 0x40000470 ); -PROVIDE( __swbuf_r = 0x40000474 ); -__swbuf = 0x40000478; -PROVIDE( __swsetup_r = 0x4000047c ); -/* Data (.data, .bss, .rodata) */ -syscall_table_ptr = 0x3fcdffe0; -_global_impure_ptr = 0x3fcdffdc; - - - -/* ROM version variables for esp32c3 - * - * These addresses should be compatible with any ROM version for this chip. - * - * THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT. - */ -_rom_chip_id = 0x40000010; -_rom_eco_version = 0x40000014; diff --git a/flasher_stub/ld/rom_32c5.ld b/flasher_stub/ld/rom_32c5.ld deleted file mode 100755 index 3ef16e1fe..000000000 --- a/flasher_stub/ld/rom_32c5.ld +++ /dev/null @@ -1,483 +0,0 @@ -/* ROM function interface esp32c5.rom.ld for esp32c5 - * - * - * Generated from ./target/esp32c5/interface-esp32c5.yml md5sum f5c146321f24f88ad1f27234da5aed11 - * - * Compatible with ROM where ECO version equal or greater to 0. - * - * THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT. - */ - -/*************************************** - Group common - ***************************************/ - -PROVIDE ( SPIWrite = esp_rom_spiflash_write); -PROVIDE ( SPI_read_status_high = esp_rom_spiflash_read_statushigh); -PROVIDE ( SPI_write_status = esp_rom_spiflash_write_status); -PROVIDE ( SPIRead = esp_rom_spiflash_read); -PROVIDE ( SPIParamCfg = esp_rom_spiflash_config_param); -PROVIDE ( SPIEraseChip = esp_rom_spiflash_erase_chip); -PROVIDE ( SPIEraseSector = esp_rom_spiflash_erase_sector); -PROVIDE ( SPIEraseBlock = esp_rom_spiflash_erase_block); -PROVIDE ( SPI_Write_Encrypt_Enable = esp_rom_spiflash_write_encrypted_enable); -PROVIDE ( SPI_Write_Encrypt_Disable = esp_rom_spiflash_write_encrypted_disable); -PROVIDE ( SPI_Encrypt_Write = esp_rom_spiflash_write_encrypted); - -/*************************************** - Group common - ***************************************/ - -/* Functions */ -rtc_get_reset_reason = 0x40000018; -rtc_get_wakeup_cause = 0x4000001c; -pmu_enable_unhold_pads = 0x40000020; -ets_printf = 0x40000024; -ets_install_putc1 = 0x40000028; -ets_install_putc2 = 0x4000002c; -ets_install_uart_printf = 0x40000030; -ets_install_usb_printf = 0x40000034; -ets_get_printf_channel = 0x40000038; -ets_delay_us = 0x4000003c; -ets_get_cpu_frequency = 0x40000040; -ets_update_cpu_frequency = 0x40000044; -ets_install_lock = 0x40000048; -UartRxString = 0x4000004c; -UartGetCmdLn = 0x40000050; -uart_tx_one_char = 0x40000054; -uart_tx_one_char2 = 0x40000058; -uart_tx_one_char3 = 0x4000005c; -uart_rx_one_char = 0x40000060; -uart_rx_one_char_block = 0x40000064; -uart_rx_intr_handler = 0x40000068; -uart_rx_readbuff = 0x4000006c; -uartAttach = 0x40000070; -uart_tx_flush = 0x40000074; -uart_tx_wait_idle = 0x40000078; -uart_div_modify = 0x4000007c; -ets_write_char_uart = 0x40000080; -uart_tx_switch = 0x40000084; -uart_buff_switch = 0x40000088; -roundup2 = 0x4000008c; -multofup = 0x40000090; -software_reset = 0x40000094; -software_reset_cpu = 0x40000098; -ets_clk_assist_debug_clock_enable = 0x4000009c; -clear_super_wdt_reset_flag = 0x400000a0; -disable_default_watchdog = 0x400000a4; -esp_rom_set_rtc_wake_addr = 0x400000a8; -esp_rom_get_rtc_wake_addr = 0x400000ac; -send_packet = 0x400000b0; -recv_packet = 0x400000b4; -GetUartDevice = 0x400000b8; -UartDwnLdProc = 0x400000bc; -GetSecurityInfoProc = 0x400000c0; -Uart_Init = 0x400000c4; -ets_set_user_start = 0x400000c8; -/* Data (.data, .bss, .rodata) */ -ets_rom_layout_p = 0x4004fffc; -ets_ops_table_ptr = 0x4085fff8; -g_saved_pc = 0x4085fffc; - - -/*************************************** - Group miniz - ***************************************/ - -/* Functions */ -mz_adler32 = 0x400000cc; -mz_free = 0x400000d0; -tdefl_compress = 0x400000d4; -tdefl_compress_buffer = 0x400000d8; -tdefl_compress_mem_to_heap = 0x400000dc; -tdefl_compress_mem_to_mem = 0x400000e0; -tdefl_compress_mem_to_output = 0x400000e4; -tdefl_get_adler32 = 0x400000e8; -tdefl_get_prev_return_status = 0x400000ec; -tdefl_init = 0x400000f0; -tdefl_write_image_to_png_file_in_memory = 0x400000f4; -tdefl_write_image_to_png_file_in_memory_ex = 0x400000f8; -tinfl_decompress = 0x400000fc; -tinfl_decompress_mem_to_callback = 0x40000100; -tinfl_decompress_mem_to_heap = 0x40000104; -tinfl_decompress_mem_to_mem = 0x40000108; - - -/*************************************** - Group tjpgd - ***************************************/ - -/* Functions */ -jd_prepare = 0x4000010c; -jd_decomp = 0x40000110; - - -/*************************************** - Group spi_extmem_common - ***************************************/ - -/* Functions */ -esp_rom_spi_cmd_config = 0x40000114; -esp_rom_spi_cmd_start = 0x40000118; -esp_rom_spi_set_op_mode = 0x4000011c; - - -/*************************************** - Group spiflash_legacy - ***************************************/ - -/* Functions */ -esp_rom_spiflash_wait_idle = 0x40000120; -esp_rom_spiflash_write_encrypted = 0x40000124; -esp_rom_spiflash_write_encrypted_dest = 0x40000128; -esp_rom_spiflash_write_encrypted_enable = 0x4000012c; -esp_rom_spiflash_write_encrypted_disable = 0x40000130; -esp_rom_spiflash_erase_chip = 0x40000134; -_esp_rom_spiflash_erase_sector = 0x40000138; -_esp_rom_spiflash_erase_block = 0x4000013c; -_esp_rom_spiflash_write = 0x40000140; -_esp_rom_spiflash_read = 0x40000144; -_esp_rom_spiflash_unlock = 0x40000148; -_SPIEraseArea = 0x4000014c; -_SPI_write_enable = 0x40000150; -esp_rom_spiflash_erase_sector = 0x40000154; -esp_rom_spiflash_erase_block = 0x40000158; -esp_rom_spiflash_write = 0x4000015c; -esp_rom_spiflash_read = 0x40000160; -esp_rom_spiflash_unlock = 0x40000164; -SPIEraseArea = 0x40000168; -SPI_write_enable = 0x4000016c; -esp_rom_spiflash_config_param = 0x40000170; -esp_rom_spiflash_read_user_cmd = 0x40000174; -esp_rom_spiflash_select_qio_pins = 0x40000178; -esp_rom_spi_flash_auto_sus_res = 0x4000017c; -esp_rom_spi_flash_send_resume = 0x40000180; -esp_rom_spi_flash_update_id = 0x40000184; -esp_rom_spiflash_config_clk = 0x40000188; -esp_rom_spiflash_config_readmode = 0x4000018c; -esp_rom_spiflash_read_status = 0x40000190; -esp_rom_spiflash_read_statushigh = 0x40000194; -esp_rom_spiflash_write_status = 0x40000198; -esp_rom_spiflash_write_disable = 0x4000019c; -spi_cache_mode_switch = 0x400001a0; -spi_common_set_dummy_output = 0x400001a4; -spi_common_set_flash_cs_timing = 0x400001a8; -esp_rom_spi_set_address_bit_len = 0x400001ac; -SPILock = 0x400001b0; -SPIMasterReadModeCnfig = 0x400001b4; -SPI_Common_Command = 0x400001b8; -SPI_WakeUp = 0x400001bc; -SPI_block_erase = 0x400001c0; -SPI_chip_erase = 0x400001c4; -SPI_init = 0x400001c8; -SPI_page_program = 0x400001cc; -SPI_read_data = 0x400001d0; -SPI_sector_erase = 0x400001d4; -SelectSpiFunction = 0x400001d8; -SetSpiDrvs = 0x400001dc; -Wait_SPI_Idle = 0x400001e0; -spi_dummy_len_fix = 0x400001e4; -Disable_QMode = 0x400001e8; -Enable_QMode = 0x400001ec; -spi_flash_attach = 0x400001f0; -spi_flash_get_chip_size = 0x400001f4; -spi_flash_guard_set = 0x400001f8; -spi_flash_guard_get = 0x400001fc; -spi_flash_read_encrypted = 0x40000200; -/* Data (.data, .bss, .rodata) */ -rom_spiflash_legacy_funcs = 0x4085fff0; -rom_spiflash_legacy_data = 0x4085ffec; -g_flash_guard_ops = 0x4085fff4; - - -/*************************************** - Group hal_wdt - ***************************************/ - -/* Functions */ -wdt_hal_init = 0x400003a4; -wdt_hal_deinit = 0x400003a8; -wdt_hal_config_stage = 0x400003ac; -wdt_hal_write_protect_disable = 0x400003b0; -wdt_hal_write_protect_enable = 0x400003b4; -wdt_hal_enable = 0x400003b8; -wdt_hal_disable = 0x400003bc; -wdt_hal_handle_intr = 0x400003c0; -wdt_hal_feed = 0x400003c4; -wdt_hal_set_flashboot_en = 0x400003c8; -wdt_hal_is_enabled = 0x400003cc; - - -/*************************************** - Group hal_systimer - ***************************************/ - -/* Functions */ -systimer_hal_init = 0x400003d0; -systimer_hal_deinit = 0x400003d4; -systimer_hal_set_tick_rate_ops = 0x400003d8; -systimer_hal_get_counter_value = 0x400003dc; -systimer_hal_get_time = 0x400003e0; -systimer_hal_set_alarm_target = 0x400003e4; -systimer_hal_set_alarm_period = 0x400003e8; -systimer_hal_get_alarm_value = 0x400003ec; -systimer_hal_enable_alarm_int = 0x400003f0; -systimer_hal_on_apb_freq_update = 0x400003f4; -systimer_hal_counter_value_advance = 0x400003f8; -systimer_hal_enable_counter = 0x400003fc; -systimer_hal_select_alarm_mode = 0x40000400; -systimer_hal_connect_alarm_counter = 0x40000404; -systimer_hal_counter_can_stall_by_cpu = 0x40000408; - - -/*************************************** - Group cache - ***************************************/ - -/* Functions */ -Cache_Get_Line_Size = 0x40000638; -Cache_Get_Mode = 0x4000063c; -Cache_Address_Through_Cache = 0x40000640; -ROM_Boot_Cache_Init = 0x40000644; -Cache_Sync_Items = 0x40000648; -Cache_Op_Addr = 0x4000064c; -Cache_Invalidate_Addr = 0x40000650; -Cache_Clean_Addr = 0x40000654; -Cache_WriteBack_Addr = 0x40000658; -Cache_WriteBack_Invalidate_Addr = 0x4000065c; -Cache_Invalidate_All = 0x40000660; -Cache_Clean_All = 0x40000664; -Cache_WriteBack_All = 0x40000668; -Cache_WriteBack_Invalidate_All = 0x4000066c; -Cache_Mask_All = 0x40000670; -Cache_UnMask_Dram0 = 0x40000674; -Cache_Suspend_Autoload = 0x40000678; -Cache_Resume_Autoload = 0x4000067c; -Cache_Start_Preload = 0x40000680; -Cache_Preload_Done = 0x40000684; -Cache_End_Preload = 0x40000688; -Cache_Config_Autoload = 0x4000068c; -Cache_Enable_Autoload = 0x40000690; -Cache_Disable_Autoload = 0x40000694; -Cache_Enable_PreLock = 0x40000698; -Cache_Disable_PreLock = 0x4000069c; -Cache_Lock_Items = 0x400006a0; -Cache_Lock_Addr = 0x400006a4; -Cache_Unlock_Addr = 0x400006a8; -Cache_Disable_Cache = 0x400006ac; -Cache_Enable_Cache = 0x400006b0; -Cache_Suspend_Cache = 0x400006b4; -Cache_Resume_Cache = 0x400006b8; -Cache_Freeze_Enable = 0x400006bc; -Cache_Freeze_Disable = 0x400006c0; -Cache_Set_IDROM_MMU_Size = 0x400006c4; -Cache_Get_IROM_MMU_End = 0x400006c8; -Cache_Get_DROM_MMU_End = 0x400006cc; -Cache_MMU_Init = 0x400006d0; -Cache_MSPI_MMU_Set = 0x400006d4; -Cache_MSPI_MMU_Set_Secure = 0x400006d8; -Cache_Count_Flash_Pages = 0x400006dc; -Cache_Travel_Tag_Memory = 0x400006e0; -Cache_Get_Virtual_Addr = 0x400006e4; -flash2spiram_instruction_offset = 0x400006e8; -flash2spiram_rodata_offset = 0x400006ec; -flash_instr_rodata_start_page = 0x400006f0; -flash_instr_rodata_end_page = 0x400006f4; -Cache_Set_IDROM_MMU_Info = 0x400006f8; -Cache_Flash_To_SPIRAM_Copy = 0x400006fc; -/* Data (.data, .bss, .rodata) */ -rom_cache_op_cb = 0x4085ffcc; -rom_cache_internal_table_ptr = 0x4085ffc8; - - -/*************************************** - Group clock - ***************************************/ - -/* Functions */ -ets_clk_get_xtal_freq = 0x40000700; -ets_clk_get_cpu_freq = 0x40000704; - - -/*************************************** - Group gpio - ***************************************/ - -/* Functions */ -gpio_set_output_level = 0x40000708; -gpio_get_input_level = 0x4000070c; -gpio_matrix_in = 0x40000710; -gpio_matrix_out = 0x40000714; -gpio_bypass_matrix_in = 0x40000718; -gpio_output_disable = 0x4000071c; -gpio_output_enable = 0x40000720; -gpio_pad_input_disable = 0x40000724; -gpio_pad_input_enable = 0x40000728; -gpio_pad_pulldown = 0x4000072c; -gpio_pad_pullup = 0x40000730; -gpio_pad_select_gpio = 0x40000734; -gpio_pad_set_drv = 0x40000738; -gpio_pad_unhold = 0x4000073c; -gpio_pad_hold = 0x40000740; - - -/*************************************** - Group interrupts - ***************************************/ - -/* Functions */ -esprv_intc_int_set_priority = 0x40000744; -esprv_intc_int_set_threshold = 0x40000748; -esprv_intc_int_enable = 0x4000074c; -esprv_intc_int_disable = 0x40000750; -esprv_intc_int_set_type = 0x40000754; -PROVIDE( intr_handler_set = 0x40000758 ); -intr_matrix_set = 0x4000075c; -ets_intr_register_ctx = 0x40000760; -ets_intr_lock = 0x40000764; -ets_intr_unlock = 0x40000768; -ets_isr_attach = 0x4000076c; -ets_isr_mask = 0x40000770; -ets_isr_unmask = 0x40000774; - - -/*************************************** - Group crc - ***************************************/ - -/* Functions */ -crc32_le = 0x40000778; -crc16_le = 0x4000077c; -crc8_le = 0x40000780; -crc32_be = 0x40000784; -crc16_be = 0x40000788; -crc8_be = 0x4000078c; -esp_crc8 = 0x40000790; -/* Data (.data, .bss, .rodata) */ -crc32_le_table_ptr = 0x4004fff8; -crc16_le_table_ptr = 0x4004fff4; -crc8_le_table_ptr = 0x4004fff0; -crc32_be_table_ptr = 0x4004ffec; -crc16_be_table_ptr = 0x4004ffe8; -crc8_be_table_ptr = 0x4004ffe4; - - -/*************************************** - Group md5 - ***************************************/ - -/* Functions */ -md5_vector = 0x40000794; -MD5Init = 0x40000798; -MD5Update = 0x4000079c; -MD5Final = 0x400007a0; - - -/*************************************** - Group hwcrypto - ***************************************/ - -/* Functions */ -ets_sha_enable = 0x400007a4; -ets_sha_disable = 0x400007a8; -ets_sha_get_state = 0x400007ac; -ets_sha_init = 0x400007b0; -ets_sha_process = 0x400007b4; -ets_sha_starts = 0x400007b8; -ets_sha_update = 0x400007bc; -ets_sha_finish = 0x400007c0; -ets_sha_clone = 0x400007c4; -ets_hmac_enable = 0x400007c8; -ets_hmac_disable = 0x400007cc; -ets_hmac_calculate_message = 0x400007d0; -ets_hmac_calculate_downstream = 0x400007d4; -ets_hmac_invalidate_downstream = 0x400007d8; -ets_aes_enable = 0x400007dc; -ets_aes_disable = 0x400007e0; -ets_aes_setkey = 0x400007e4; -ets_aes_block = 0x400007e8; -ets_aes_setkey_dec = 0x400007ec; -ets_aes_setkey_enc = 0x400007f0; -ets_bigint_enable = 0x400007f4; -ets_bigint_disable = 0x400007f8; -ets_bigint_multiply = 0x400007fc; -ets_bigint_modmult = 0x40000800; -ets_bigint_modexp = 0x40000804; -ets_bigint_wait_finish = 0x40000808; -ets_bigint_getz = 0x4000080c; -ets_ds_enable = 0x40000810; -ets_ds_disable = 0x40000814; -ets_ds_start_sign = 0x40000818; -ets_ds_is_busy = 0x4000081c; -ets_ds_finish_sign = 0x40000820; -ets_ds_encrypt_params = 0x40000824; - - -/*************************************** - Group efuse - ***************************************/ - -/* Functions */ -ets_efuse_read = 0x40000828; -ets_efuse_program = 0x4000082c; -ets_efuse_clear_program_registers = 0x40000830; -ets_efuse_write_key = 0x40000834; -ets_efuse_get_read_register_address = 0x40000838; -ets_efuse_get_key_purpose = 0x4000083c; -ets_efuse_key_block_unused = 0x40000840; -ets_efuse_find_unused_key_block = 0x40000844; -ets_efuse_rs_calculate = 0x40000848; -ets_efuse_count_unused_key_blocks = 0x4000084c; -ets_efuse_secure_boot_enabled = 0x40000850; -ets_efuse_secure_boot_aggressive_revoke_enabled = 0x40000854; -ets_efuse_cache_encryption_enabled = 0x40000858; -ets_efuse_download_modes_disabled = 0x4000085c; -ets_efuse_find_purpose = 0x40000860; -ets_efuse_force_send_resume = 0x40000864; -ets_efuse_get_flash_delay_us = 0x40000868; -ets_efuse_get_uart_print_control = 0x4000086c; -ets_efuse_direct_boot_mode_disabled = 0x40000870; -ets_efuse_security_download_modes_enabled = 0x40000874; -ets_efuse_jtag_disabled = 0x40000878; -ets_efuse_usb_print_is_disabled = 0x4000087c; -ets_efuse_usb_download_mode_disabled = 0x40000880; -ets_efuse_usb_device_disabled = 0x40000884; -ets_efuse_secure_boot_fast_wake_enabled = 0x40000888; -ets_jtag_enable_temporarily = 0x4000088c; - - -/*************************************** - Group key_mgr - ***************************************/ - -/* Functions */ -esp_rom_check_recover_key = 0x40000890; -esp_rom_km_huk_conf = 0x40000894; -esp_rom_km_huk_risk = 0x40000898; - - -/*************************************** - Group secureboot - ***************************************/ - -/* Functions */ -ets_emsa_pss_verify = 0x4000089c; -ets_rsa_pss_verify = 0x400008a0; -ets_ecdsa_verify = 0x400008a4; -ets_secure_boot_verify_bootloader_with_keys = 0x400008a8; -ets_secure_boot_verify_signature = 0x400008ac; -ets_secure_boot_read_key_digests = 0x400008b0; -ets_mgf1_sha256 = 0x400008b4; -ets_secure_boot_revoke_public_key_digest = 0x400008b8; - - -/*************************************** - Group usb_device_uart - ***************************************/ - -/* Functions */ -usb_serial_device_rx_one_char = 0x40000ab8; -usb_serial_device_rx_one_char_block = 0x40000abc; -usb_serial_device_tx_flush = 0x40000ac0; -usb_serial_device_tx_one_char = 0x40000ac4; - diff --git a/flasher_stub/ld/rom_32c5_beta_3.ld b/flasher_stub/ld/rom_32c5_beta_3.ld deleted file mode 100755 index e009f2ac4..000000000 --- a/flasher_stub/ld/rom_32c5_beta_3.ld +++ /dev/null @@ -1,594 +0,0 @@ -/* ROM function interface esp32c5.rom.ld for esp32c5 - * - * - * Generated from ./target/esp32c5/interface-esp32c5.yml md5sum 2476337377df636dda217b0b3c1a63db - * - * Compatible with ROM where ECO version equal or greater to 0. - * - * THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT. - */ - -/*************************************** - Group common - ***************************************/ - -PROVIDE ( SPIWrite = esp_rom_spiflash_write); -PROVIDE ( SPI_read_status_high = esp_rom_spiflash_read_statushigh); -PROVIDE ( SPI_write_status = esp_rom_spiflash_write_status); -PROVIDE ( SPIRead = esp_rom_spiflash_read); -PROVIDE ( SPIParamCfg = esp_rom_spiflash_config_param); -PROVIDE ( SPIEraseChip = esp_rom_spiflash_erase_chip); -PROVIDE ( SPIEraseSector = esp_rom_spiflash_erase_sector); -PROVIDE ( SPIEraseBlock = esp_rom_spiflash_erase_block); -PROVIDE ( SPI_Write_Encrypt_Enable = esp_rom_spiflash_write_encrypted_enable); -PROVIDE ( SPI_Write_Encrypt_Disable = esp_rom_spiflash_write_encrypted_disable); -PROVIDE ( SPI_Encrypt_Write = esp_rom_spiflash_write_encrypted); - -/*************************************** - Group common - ***************************************/ - -/* Functions */ -rtc_get_reset_reason = 0x40000018; -rtc_get_wakeup_cause = 0x4000001c; -pmu_enable_unhold_pads = 0x40000020; -ets_printf = 0x40000024; -ets_install_putc1 = 0x40000028; -ets_install_putc2 = 0x4000002c; -ets_install_uart_printf = 0x40000030; -ets_install_usb_printf = 0x40000034; -ets_get_printf_channel = 0x40000038; -ets_delay_us = 0x4000003c; -ets_get_cpu_frequency = 0x40000040; -ets_update_cpu_frequency = 0x40000044; -ets_install_lock = 0x40000048; -UartRxString = 0x4000004c; -UartGetCmdLn = 0x40000050; -uart_tx_one_char = 0x40000054; -uart_tx_one_char2 = 0x40000058; -uart_tx_one_char3 = 0x4000005c; -uart_rx_one_char = 0x40000060; -uart_rx_one_char_block = 0x40000064; -uart_rx_intr_handler = 0x40000068; -uart_rx_readbuff = 0x4000006c; -uartAttach = 0x40000070; -uart_tx_flush = 0x40000074; -uart_tx_wait_idle = 0x40000078; -uart_div_modify = 0x4000007c; -ets_write_char_uart = 0x40000080; -uart_tx_switch = 0x40000084; -uart_buff_switch = 0x40000088; -roundup2 = 0x4000008c; -multofup = 0x40000090; -software_reset = 0x40000094; -software_reset_cpu = 0x40000098; -ets_clk_assist_debug_clock_enable = 0x4000009c; -clear_super_wdt_reset_flag = 0x400000a0; -disable_default_watchdog = 0x400000a4; -esp_rom_set_rtc_wake_addr = 0x400000a8; -esp_rom_get_rtc_wake_addr = 0x400000ac; -send_packet = 0x400000b0; -recv_packet = 0x400000b4; -GetUartDevice = 0x400000b8; -UartDwnLdProc = 0x400000bc; -GetSecurityInfoProc = 0x400000c0; -Uart_Init = 0x400000c4; -ets_set_user_start = 0x400000c8; -/* Data (.data, .bss, .rodata) */ -ets_rom_layout_p = 0x4004fffc; -ets_ops_table_ptr = 0x4087fff8; -g_saved_pc = 0x4087fffc; - - -/*************************************** - Group miniz - ***************************************/ - -/* Functions */ -mz_adler32 = 0x400000cc; -mz_free = 0x400000d0; -tdefl_compress = 0x400000d4; -tdefl_compress_buffer = 0x400000d8; -tdefl_compress_mem_to_heap = 0x400000dc; -tdefl_compress_mem_to_mem = 0x400000e0; -tdefl_compress_mem_to_output = 0x400000e4; -tdefl_get_adler32 = 0x400000e8; -tdefl_get_prev_return_status = 0x400000ec; -tdefl_init = 0x400000f0; -tdefl_write_image_to_png_file_in_memory = 0x400000f4; -tdefl_write_image_to_png_file_in_memory_ex = 0x400000f8; -tinfl_decompress = 0x400000fc; -tinfl_decompress_mem_to_callback = 0x40000100; -tinfl_decompress_mem_to_heap = 0x40000104; -tinfl_decompress_mem_to_mem = 0x40000108; - - -/*************************************** - Group spiflash_legacy - ***************************************/ - -/* Functions */ -esp_rom_spiflash_wait_idle = 0x4000010c; -esp_rom_spiflash_write_encrypted = 0x40000110; -esp_rom_spiflash_write_encrypted_dest = 0x40000114; -esp_rom_spiflash_write_encrypted_enable = 0x40000118; -esp_rom_spiflash_write_encrypted_disable = 0x4000011c; -esp_rom_spiflash_erase_chip = 0x40000120; -_esp_rom_spiflash_erase_sector = 0x40000124; -_esp_rom_spiflash_erase_block = 0x40000128; -_esp_rom_spiflash_write = 0x4000012c; -_esp_rom_spiflash_read = 0x40000130; -_esp_rom_spiflash_unlock = 0x40000134; -_SPIEraseArea = 0x40000138; -_SPI_write_enable = 0x4000013c; -esp_rom_spiflash_erase_sector = 0x40000140; -esp_rom_spiflash_erase_block = 0x40000144; -esp_rom_spiflash_write = 0x40000148; -esp_rom_spiflash_read = 0x4000014c; -esp_rom_spiflash_unlock = 0x40000150; -SPIEraseArea = 0x40000154; -SPI_write_enable = 0x40000158; -esp_rom_spiflash_config_param = 0x4000015c; -esp_rom_spiflash_read_user_cmd = 0x40000160; -esp_rom_spiflash_select_qio_pins = 0x40000164; -esp_rom_spi_flash_auto_sus_res = 0x40000168; -esp_rom_spi_flash_send_resume = 0x4000016c; -esp_rom_spi_flash_update_id = 0x40000170; -esp_rom_spiflash_config_clk = 0x40000174; -esp_rom_spiflash_config_readmode = 0x40000178; -esp_rom_spiflash_read_status = 0x4000017c; -esp_rom_spiflash_read_statushigh = 0x40000180; -esp_rom_spiflash_write_status = 0x40000184; -esp_rom_spiflash_write_disable = 0x40000188; -spi_cache_mode_switch = 0x4000018c; -spi_common_set_dummy_output = 0x40000190; -spi_common_set_flash_cs_timing = 0x40000194; -esp_rom_spi_set_address_bit_len = 0x40000198; -SPILock = 0x4000019c; -SPIMasterReadModeCnfig = 0x400001a0; -SPI_Common_Command = 0x400001a4; -SPI_WakeUp = 0x400001a8; -SPI_block_erase = 0x400001ac; -SPI_chip_erase = 0x400001b0; -SPI_init = 0x400001b4; -SPI_page_program = 0x400001b8; -SPI_read_data = 0x400001bc; -SPI_sector_erase = 0x400001c0; -SelectSpiFunction = 0x400001c4; -SetSpiDrvs = 0x400001c8; -Wait_SPI_Idle = 0x400001cc; -spi_dummy_len_fix = 0x400001d0; -Disable_QMode = 0x400001d4; -Enable_QMode = 0x400001d8; -spi_flash_attach = 0x400001dc; -spi_flash_get_chip_size = 0x400001e0; -spi_flash_guard_set = 0x400001e4; -spi_flash_guard_get = 0x400001e8; -spi_flash_read_encrypted = 0x400001ec; -/* Data (.data, .bss, .rodata) */ -rom_spiflash_legacy_funcs = 0x4087fff0; -rom_spiflash_legacy_data = 0x4087ffec; -g_flash_guard_ops = 0x4087fff4; - - -/*************************************** - Group hal_wdt - ***************************************/ - -/* Functions */ -wdt_hal_init = 0x40000390; -wdt_hal_deinit = 0x40000394; -wdt_hal_config_stage = 0x40000398; -wdt_hal_write_protect_disable = 0x4000039c; -wdt_hal_write_protect_enable = 0x400003a0; -wdt_hal_enable = 0x400003a4; -wdt_hal_disable = 0x400003a8; -wdt_hal_handle_intr = 0x400003ac; -wdt_hal_feed = 0x400003b0; -wdt_hal_set_flashboot_en = 0x400003b4; -wdt_hal_is_enabled = 0x400003b8; - - -/*************************************** - Group hal_systimer - ***************************************/ - -/* Functions */ -systimer_hal_init = 0x400003bc; -systimer_hal_deinit = 0x400003c0; -systimer_hal_set_tick_rate_ops = 0x400003c4; -systimer_hal_get_counter_value = 0x400003c8; -systimer_hal_get_time = 0x400003cc; -systimer_hal_set_alarm_target = 0x400003d0; -systimer_hal_set_alarm_period = 0x400003d4; -systimer_hal_get_alarm_value = 0x400003d8; -systimer_hal_enable_alarm_int = 0x400003dc; -systimer_hal_on_apb_freq_update = 0x400003e0; -systimer_hal_counter_value_advance = 0x400003e4; -systimer_hal_enable_counter = 0x400003e8; -systimer_hal_select_alarm_mode = 0x400003ec; -systimer_hal_connect_alarm_counter = 0x400003f0; -systimer_hal_counter_can_stall_by_cpu = 0x400003f4; - - -/*************************************** - Group cache - ***************************************/ - -/* Functions */ -Cache_Get_ICache_Line_Size = 0x40000624; -Cache_Get_Mode = 0x40000628; -Cache_Address_Through_Cache = 0x4000062c; -ROM_Boot_Cache_Init = 0x40000630; -MMU_Set_Page_Mode = 0x40000634; -MMU_Get_Page_Mode = 0x40000638; -Cache_Invalidate_ICache_Items = 0x4000063c; -Cache_Op_Addr = 0x40000640; -Cache_Invalidate_Addr = 0x40000644; -Cache_Invalidate_ICache_All = 0x40000648; -Cache_Mask_All = 0x4000064c; -Cache_UnMask_Dram0 = 0x40000650; -Cache_Suspend_ICache_Autoload = 0x40000654; -Cache_Resume_ICache_Autoload = 0x40000658; -Cache_Start_ICache_Preload = 0x4000065c; -Cache_ICache_Preload_Done = 0x40000660; -Cache_End_ICache_Preload = 0x40000664; -Cache_Config_ICache_Autoload = 0x40000668; -Cache_Enable_ICache_Autoload = 0x4000066c; -Cache_Disable_ICache_Autoload = 0x40000670; -Cache_Enable_ICache_PreLock = 0x40000674; -Cache_Disable_ICache_PreLock = 0x40000678; -Cache_Lock_ICache_Items = 0x4000067c; -Cache_Unlock_ICache_Items = 0x40000680; -Cache_Lock_Addr = 0x40000684; -Cache_Unlock_Addr = 0x40000688; -Cache_Disable_ICache = 0x4000068c; -Cache_Enable_ICache = 0x40000690; -Cache_Suspend_ICache = 0x40000694; -Cache_Resume_ICache = 0x40000698; -Cache_Freeze_ICache_Enable = 0x4000069c; -Cache_Freeze_ICache_Disable = 0x400006a0; -Cache_Set_IDROM_MMU_Size = 0x400006a4; -Cache_Get_IROM_MMU_End = 0x400006a8; -Cache_Get_DROM_MMU_End = 0x400006ac; -Cache_MMU_Init = 0x400006b0; -Cache_MSPI_MMU_Set = 0x400006b4; -Cache_MSPI_MMU_Set_Secure = 0x400006b8; -Cache_Travel_Tag_Memory = 0x400006bc; -Cache_Get_Virtual_Addr = 0x400006c0; -/* Data (.data, .bss, .rodata) */ -rom_cache_op_cb = 0x4087ffcc; -rom_cache_internal_table_ptr = 0x4087ffc8; - - -/*************************************** - Group clock - ***************************************/ - -/* Functions */ -ets_clk_get_xtal_freq = 0x400006c4; -ets_clk_get_cpu_freq = 0x400006c8; - - -/*************************************** - Group gpio - ***************************************/ - -/* Functions */ -gpio_set_output_level = 0x400006cc; -gpio_get_input_level = 0x400006d0; -gpio_matrix_in = 0x400006d4; -gpio_matrix_out = 0x400006d8; -gpio_bypass_matrix_in = 0x400006dc; -gpio_output_disable = 0x400006e0; -gpio_output_enable = 0x400006e4; -gpio_pad_input_disable = 0x400006e8; -gpio_pad_input_enable = 0x400006ec; -gpio_pad_pulldown = 0x400006f0; -gpio_pad_pullup = 0x400006f4; -gpio_pad_select_gpio = 0x400006f8; -gpio_pad_set_drv = 0x400006fc; -gpio_pad_unhold = 0x40000700; -gpio_pad_hold = 0x40000704; - - -/*************************************** - Group interrupts - ***************************************/ - -/* Functions */ -esprv_intc_int_set_priority = 0x40000708; -esprv_intc_int_set_threshold = 0x4000070c; -esprv_intc_int_enable = 0x40000710; -esprv_intc_int_disable = 0x40000714; -esprv_intc_int_set_type = 0x40000718; -PROVIDE( intr_handler_set = 0x4000071c ); -intr_matrix_set = 0x40000720; -ets_intr_lock = 0x40000724; -ets_intr_unlock = 0x40000728; -ets_isr_attach = 0x4000072c; -ets_isr_mask = 0x40000730; -ets_isr_unmask = 0x40000734; - - -/*************************************** - Group crypto - ***************************************/ - -/* Functions */ -md5_vector = 0x40000738; -MD5Init = 0x4000073c; -MD5Update = 0x40000740; -MD5Final = 0x40000744; -crc32_le = 0x40000748; -crc16_le = 0x4000074c; -crc8_le = 0x40000750; -crc32_be = 0x40000754; -crc16_be = 0x40000758; -crc8_be = 0x4000075c; -esp_crc8 = 0x40000760; -ets_sha_enable = 0x40000764; -ets_sha_disable = 0x40000768; -ets_sha_get_state = 0x4000076c; -ets_sha_init = 0x40000770; -ets_sha_process = 0x40000774; -ets_sha_starts = 0x40000778; -ets_sha_update = 0x4000077c; -ets_sha_finish = 0x40000780; -ets_sha_clone = 0x40000784; -ets_hmac_enable = 0x40000788; -ets_hmac_disable = 0x4000078c; -ets_hmac_calculate_message = 0x40000790; -ets_hmac_calculate_downstream = 0x40000794; -ets_hmac_invalidate_downstream = 0x40000798; -ets_jtag_enable_temporarily = 0x4000079c; -ets_aes_enable = 0x400007a0; -ets_aes_disable = 0x400007a4; -ets_aes_setkey = 0x400007a8; -ets_aes_block = 0x400007ac; -ets_aes_setkey_dec = 0x400007b0; -ets_aes_setkey_enc = 0x400007b4; -ets_bigint_enable = 0x400007b8; -ets_bigint_disable = 0x400007bc; -ets_bigint_multiply = 0x400007c0; -ets_bigint_modmult = 0x400007c4; -ets_bigint_modexp = 0x400007c8; -ets_bigint_wait_finish = 0x400007cc; -ets_bigint_getz = 0x400007d0; -ets_ds_enable = 0x400007d4; -ets_ds_disable = 0x400007d8; -ets_ds_start_sign = 0x400007dc; -ets_ds_is_busy = 0x400007e0; -ets_ds_finish_sign = 0x400007e4; -ets_ds_encrypt_params = 0x400007e8; -ets_mgf1_sha256 = 0x400007ec; -/* Data (.data, .bss, .rodata) */ -crc32_le_table_ptr = 0x4004fff8; -crc16_le_table_ptr = 0x4004fff4; -crc8_le_table_ptr = 0x4004fff0; -crc32_be_table_ptr = 0x4004ffec; -crc16_be_table_ptr = 0x4004ffe8; -crc8_be_table_ptr = 0x4004ffe4; - - -/*************************************** - Group efuse - ***************************************/ - -/* Functions */ -ets_efuse_read = 0x400007f0; -ets_efuse_program = 0x400007f4; -ets_efuse_clear_program_registers = 0x400007f8; -ets_efuse_write_key = 0x400007fc; -ets_efuse_get_read_register_address = 0x40000800; -ets_efuse_get_key_purpose = 0x40000804; -ets_efuse_key_block_unused = 0x40000808; -ets_efuse_find_unused_key_block = 0x4000080c; -ets_efuse_rs_calculate = 0x40000810; -ets_efuse_count_unused_key_blocks = 0x40000814; -ets_efuse_secure_boot_enabled = 0x40000818; -ets_efuse_secure_boot_aggressive_revoke_enabled = 0x4000081c; -ets_efuse_cache_encryption_enabled = 0x40000820; -ets_efuse_download_modes_disabled = 0x40000824; -ets_efuse_find_purpose = 0x40000828; -ets_efuse_force_send_resume = 0x4000082c; -ets_efuse_get_flash_delay_us = 0x40000830; -ets_efuse_get_uart_print_control = 0x40000834; -ets_efuse_direct_boot_mode_disabled = 0x40000838; -ets_efuse_security_download_modes_enabled = 0x4000083c; -ets_efuse_jtag_disabled = 0x40000840; -ets_efuse_usb_print_is_disabled = 0x40000844; -ets_efuse_usb_download_mode_disabled = 0x40000848; -ets_efuse_usb_device_disabled = 0x4000084c; -ets_efuse_secure_boot_fast_wake_enabled = 0x40000850; - - -/*************************************** - Group secureboot - ***************************************/ - -/* Functions */ -ets_emsa_pss_verify = 0x40000854; -ets_rsa_pss_verify = 0x40000858; -ets_ecdsa_verify = 0x4000085c; -ets_secure_boot_verify_bootloader_with_keys = 0x40000860; -ets_secure_boot_verify_signature = 0x40000864; -ets_secure_boot_read_key_digests = 0x40000868; -ets_secure_boot_revoke_public_key_digest = 0x4000086c; - - -/*************************************** - Group usb_device_uart - ***************************************/ - -/* Functions */ -usb_serial_device_rx_one_char = 0x40000a6c; -usb_serial_device_rx_one_char_block = 0x40000a70; -usb_serial_device_tx_flush = 0x40000a74; -usb_serial_device_tx_one_char = 0x40000a78; - - -/*************************************** - Group usb_dwcotg_uart - ***************************************/ - -/* Functions */ -Uart_Init_USB = 0x40000a7c; -usb_serial_otg_rx_one_char = 0x40000a80; -usb_serial_otg_rx_one_char_block = 0x40000a84; -usb_serial_otg_tx_flush = 0x40000a88; -usb_serial_otg_tx_one_char = 0x40000a8c; -/* Data (.data, .bss, .rodata) */ -uart_acm_dev = 0x4087ffc4; - - -/*************************************** - Group usb_dwcotg_module - ***************************************/ - -/* Functions */ -cdc_acm_class_handle_req = 0x40000a90; -cdc_acm_init = 0x40000a94; -cdc_acm_fifo_fill = 0x40000a98; -cdc_acm_rx_fifo_cnt = 0x40000a9c; -cdc_acm_fifo_read = 0x40000aa0; -cdc_acm_irq_tx_enable = 0x40000aa4; -cdc_acm_irq_tx_disable = 0x40000aa8; -cdc_acm_irq_state_enable = 0x40000aac; -cdc_acm_irq_state_disable = 0x40000ab0; -cdc_acm_irq_tx_ready = 0x40000ab4; -cdc_acm_irq_rx_enable = 0x40000ab8; -cdc_acm_irq_rx_disable = 0x40000abc; -cdc_acm_irq_rx_ready = 0x40000ac0; -cdc_acm_irq_is_pending = 0x40000ac4; -cdc_acm_irq_callback_set = 0x40000ac8; -cdc_acm_line_ctrl_set = 0x40000acc; -cdc_acm_line_ctrl_get = 0x40000ad0; -cdc_acm_poll_out = 0x40000ad4; -chip_usb_dw_did_persist = 0x40000ad8; -chip_usb_dw_init = 0x40000adc; -chip_usb_detach = 0x40000ae0; -chip_usb_dw_prepare_persist = 0x40000ae4; -chip_usb_get_persist_flags = 0x40000ae8; -chip_usb_set_persist_flags = 0x40000aec; -cpio_start = 0x40000af0; -cpio_feed = 0x40000af4; -cpio_done = 0x40000af8; -cpio_destroy = 0x40000afc; -dfu_flash_init = 0x40000b00; -dfu_flash_erase = 0x40000b04; -dfu_flash_program = 0x40000b08; -dfu_flash_read = 0x40000b0c; -dfu_flash_attach = 0x40000b10; -dfu_cpio_callback = 0x40000b14; -dfu_updater_get_err = 0x40000b18; -dfu_updater_clear_err = 0x40000b1c; -dfu_updater_enable = 0x40000b20; -dfu_updater_begin = 0x40000b24; -dfu_updater_feed = 0x40000b28; -dfu_updater_end = 0x40000b2c; -dfu_updater_set_raw_addr = 0x40000b30; -dfu_updater_flash_read = 0x40000b34; -usb_dc_prepare_persist = 0x40000b38; -usb_dw_isr_handler = 0x40000b3c; -usb_dc_attach = 0x40000b40; -usb_dc_detach = 0x40000b44; -usb_dc_reset = 0x40000b48; -usb_dc_set_address = 0x40000b4c; -usb_dc_ep_check_cap = 0x40000b50; -usb_dc_ep_configure = 0x40000b54; -usb_dc_ep_set_stall = 0x40000b58; -usb_dc_ep_clear_stall = 0x40000b5c; -usb_dc_ep_halt = 0x40000b60; -usb_dc_ep_is_stalled = 0x40000b64; -usb_dc_ep_enable = 0x40000b68; -usb_dc_ep_disable = 0x40000b6c; -usb_dc_ep_flush = 0x40000b70; -usb_dc_ep_write_would_block = 0x40000b74; -usb_dc_ep_write = 0x40000b78; -usb_dc_ep_read_wait = 0x40000b7c; -usb_dc_ep_read_continue = 0x40000b80; -usb_dc_ep_read = 0x40000b84; -usb_dc_ep_set_callback = 0x40000b88; -usb_dc_set_status_callback = 0x40000b8c; -usb_dc_ep_mps = 0x40000b90; -usb_dc_check_poll_for_interrupts = 0x40000b94; -mac_addr_to_serial_str_desc = 0x40000b98; -usb_set_current_descriptor = 0x40000b9c; -usb_get_descriptor = 0x40000ba0; -usb_dev_resume = 0x40000ba4; -usb_dev_get_configuration = 0x40000ba8; -usb_set_config = 0x40000bac; -usb_deconfig = 0x40000bb0; -usb_enable = 0x40000bb4; -usb_disable = 0x40000bb8; -usb_write_would_block = 0x40000bbc; -usb_write = 0x40000bc0; -usb_read = 0x40000bc4; -usb_ep_set_stall = 0x40000bc8; -usb_ep_clear_stall = 0x40000bcc; -usb_ep_read_wait = 0x40000bd0; -usb_ep_read_continue = 0x40000bd4; -usb_transfer_ep_callback = 0x40000bd8; -usb_transfer = 0x40000bdc; -usb_cancel_transfer = 0x40000be0; -usb_transfer_sync = 0x40000be4; -usb_dfu_set_detach_cb = 0x40000be8; -dfu_class_handle_req = 0x40000bec; -dfu_status_cb = 0x40000bf0; -dfu_custom_handle_req = 0x40000bf4; -usb_dfu_init = 0x40000bf8; -usb_dfu_force_detach = 0x40000bfc; -usb_dev_deinit = 0x40000c00; -usb_dw_ctrl_deinit = 0x40000c04; -/* Data (.data, .bss, .rodata) */ -s_usb_osglue = 0x4087ffb8; - - -/*************************************** - Group lldesc - ***************************************/ - -/* Functions */ -lldesc_build_chain = 0x40000c08; - - -/*************************************** - Group sip - ***************************************/ - -/* Functions */ -sip_after_tx_complete = 0x40000c0c; -sip_alloc_to_host_evt = 0x40000c10; -sip_download_begin = 0x40000c14; -sip_get_ptr = 0x40000c18; -sip_get_state = 0x40000c1c; -sip_init_attach = 0x40000c20; -sip_install_rx_ctrl_cb = 0x40000c24; -sip_install_rx_data_cb = 0x40000c28; -sip_is_active = 0x40000c2c; -sip_post_init = 0x40000c30; -sip_reclaim_from_host_cmd = 0x40000c34; -sip_reclaim_tx_data_pkt = 0x40000c38; -sip_send = 0x40000c3c; -sip_to_host_chain_append = 0x40000c40; -sip_to_host_evt_send_done = 0x40000c44; - - -/*************************************** - Group slc - ***************************************/ - -/* Functions */ -slc_add_credits = 0x40000c48; -slc_enable = 0x40000c4c; -slc_from_host_chain_fetch = 0x40000c50; -slc_from_host_chain_recycle = 0x40000c54; -slc_has_pkt_to_host = 0x40000c58; -slc_init_attach = 0x40000c5c; -slc_init_credit = 0x40000c60; -slc_reattach = 0x40000c64; -slc_send_to_host_chain = 0x40000c68; -slc_set_host_io_max_window = 0x40000c6c; -slc_to_host_chain_recycle = 0x40000c70; - diff --git a/flasher_stub/ld/rom_32c6.ld b/flasher_stub/ld/rom_32c6.ld deleted file mode 100755 index 47466e977..000000000 --- a/flasher_stub/ld/rom_32c6.ld +++ /dev/null @@ -1,487 +0,0 @@ -/* ROM function interface esp32c6.rom.ld for esp32c6 - * - * - * Generated from ./target/esp32c6/interface-esp32c6.yml md5sum 626e7f1bf23e87c38db8c3f22a53407b - * - * Compatible with ROM where ECO version equal or greater to 0. - * - * THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT. - */ - -/*************************************** - Group common - ***************************************/ - -PROVIDE ( SPIWrite = esp_rom_spiflash_write); -PROVIDE ( SPI_read_status_high = esp_rom_spiflash_read_statushigh); -PROVIDE ( SPI_write_status = esp_rom_spiflash_write_status); -PROVIDE ( SPIRead = esp_rom_spiflash_read); -PROVIDE ( SPIParamCfg = esp_rom_spiflash_config_param); -PROVIDE ( SPIEraseChip = esp_rom_spiflash_erase_chip); -PROVIDE ( SPIEraseSector = esp_rom_spiflash_erase_sector); -PROVIDE ( SPIEraseBlock = esp_rom_spiflash_erase_block); -PROVIDE ( SPI_Write_Encrypt_Enable = esp_rom_spiflash_write_encrypted_enable); -PROVIDE ( SPI_Write_Encrypt_Disable = esp_rom_spiflash_write_encrypted_disable); -PROVIDE ( SPI_Encrypt_Write = esp_rom_spiflash_write_encrypted); - -/*************************************** - Group common - ***************************************/ - -/* Functions */ -rtc_get_reset_reason = 0x40000018; -analog_super_wdt_reset_happened = 0x4000001c; -rtc_get_wakeup_cause = 0x40000020; -rtc_unhold_all_pads = 0x40000024; -ets_printf = 0x40000028; -ets_install_putc1 = 0x4000002c; -ets_install_putc2 = 0x40000030; -ets_install_uart_printf = 0x40000034; -ets_install_usb_printf = 0x40000038; -ets_get_printf_channel = 0x4000003c; -ets_delay_us = 0x40000040; -ets_get_cpu_frequency = 0x40000044; -ets_update_cpu_frequency = 0x40000048; -ets_install_lock = 0x4000004c; -UartRxString = 0x40000050; -UartGetCmdLn = 0x40000054; -uart_tx_one_char = 0x40000058; -uart_tx_one_char2 = 0x4000005c; -uart_rx_one_char = 0x40000060; -uart_rx_one_char_block = 0x40000064; -uart_rx_intr_handler = 0x40000068; -uart_rx_readbuff = 0x4000006c; -uartAttach = 0x40000070; -uart_tx_flush = 0x40000074; -uart_tx_wait_idle = 0x40000078; -uart_div_modify = 0x4000007c; -ets_write_char_uart = 0x40000080; -uart_tx_switch = 0x40000084; -roundup2 = 0x40000088; -multofup = 0x4000008c; -software_reset = 0x40000090; -software_reset_cpu = 0x40000094; -ets_clk_assist_debug_clock_enable = 0x40000098; -clear_super_wdt_reset_flag = 0x4000009c; -disable_default_watchdog = 0x400000a0; -esp_rom_set_rtc_wake_addr = 0x400000a4; -esp_rom_get_rtc_wake_addr = 0x400000a8; -send_packet = 0x400000ac; -recv_packet = 0x400000b0; -GetUartDevice = 0x400000b4; -UartDwnLdProc = 0x400000b8; -GetSecurityInfoProc = 0x400000bc; -Uart_Init = 0x400000c0; -ets_set_user_start = 0x400000c4; -/* Data (.data, .bss, .rodata) */ -ets_rom_layout_p = 0x4004fffc; -ets_ops_table_ptr = 0x4087fff8; -g_saved_pc = 0x4087fffc; - - -/*************************************** - Group miniz - ***************************************/ - -/* Functions */ -mz_adler32 = 0x400000c8; -mz_free = 0x400000cc; -tdefl_compress = 0x400000d0; -tdefl_compress_buffer = 0x400000d4; -tdefl_compress_mem_to_heap = 0x400000d8; -tdefl_compress_mem_to_mem = 0x400000dc; -tdefl_compress_mem_to_output = 0x400000e0; -tdefl_get_adler32 = 0x400000e4; -tdefl_get_prev_return_status = 0x400000e8; -tdefl_init = 0x400000ec; -tdefl_write_image_to_png_file_in_memory = 0x400000f0; -tdefl_write_image_to_png_file_in_memory_ex = 0x400000f4; -tinfl_decompress = 0x400000f8; -tinfl_decompress_mem_to_callback = 0x400000fc; -tinfl_decompress_mem_to_heap = 0x40000100; -tinfl_decompress_mem_to_mem = 0x40000104; - - -/*************************************** - Group tjpgd - ***************************************/ - -/* Functions */ -jd_prepare = 0x40000108; -jd_decomp = 0x4000010c; - - -/*************************************** - Group spiflash_legacy - ***************************************/ - -/* Functions */ -esp_rom_spiflash_wait_idle = 0x40000110; -esp_rom_spiflash_write_encrypted = 0x40000114; -esp_rom_spiflash_write_encrypted_dest = 0x40000118; -esp_rom_spiflash_write_encrypted_enable = 0x4000011c; -esp_rom_spiflash_write_encrypted_disable = 0x40000120; -esp_rom_spiflash_erase_chip = 0x40000124; -_esp_rom_spiflash_erase_sector = 0x40000128; -_esp_rom_spiflash_erase_block = 0x4000012c; -_esp_rom_spiflash_write = 0x40000130; -_esp_rom_spiflash_read = 0x40000134; -_esp_rom_spiflash_unlock = 0x40000138; -_SPIEraseArea = 0x4000013c; -_SPI_write_enable = 0x40000140; -esp_rom_spiflash_erase_sector = 0x40000144; -esp_rom_spiflash_erase_block = 0x40000148; -esp_rom_spiflash_write = 0x4000014c; -esp_rom_spiflash_read = 0x40000150; -esp_rom_spiflash_unlock = 0x40000154; -SPIEraseArea = 0x40000158; -SPI_write_enable = 0x4000015c; -esp_rom_spiflash_config_param = 0x40000160; -esp_rom_spiflash_read_user_cmd = 0x40000164; -esp_rom_spiflash_select_qio_pins = 0x40000168; -esp_rom_spi_flash_auto_sus_res = 0x4000016c; -esp_rom_spi_flash_send_resume = 0x40000170; -esp_rom_spi_flash_update_id = 0x40000174; -esp_rom_spiflash_config_clk = 0x40000178; -esp_rom_spiflash_config_readmode = 0x4000017c; -esp_rom_spiflash_read_status = 0x40000180; -esp_rom_spiflash_read_statushigh = 0x40000184; -esp_rom_spiflash_write_status = 0x40000188; -spi_cache_mode_switch = 0x4000018c; -spi_common_set_dummy_output = 0x40000190; -spi_common_set_flash_cs_timing = 0x40000194; -esp_rom_spi_set_address_bit_len = 0x40000198; -SPILock = 0x4000019c; -SPIMasterReadModeCnfig = 0x400001a0; -SPI_Common_Command = 0x400001a4; -SPI_WakeUp = 0x400001a8; -SPI_block_erase = 0x400001ac; -SPI_chip_erase = 0x400001b0; -SPI_init = 0x400001b4; -SPI_page_program = 0x400001b8; -SPI_read_data = 0x400001bc; -SPI_sector_erase = 0x400001c0; -SelectSpiFunction = 0x400001c4; -SetSpiDrvs = 0x400001c8; -Wait_SPI_Idle = 0x400001cc; -spi_dummy_len_fix = 0x400001d0; -Disable_QMode = 0x400001d4; -Enable_QMode = 0x400001d8; -spi_flash_attach = 0x400001dc; -spi_flash_get_chip_size = 0x400001e0; -spi_flash_guard_set = 0x400001e4; -spi_flash_guard_get = 0x400001e8; -spi_flash_read_encrypted = 0x400001ec; -/* Data (.data, .bss, .rodata) */ -rom_spiflash_legacy_funcs = 0x4087fff0; -rom_spiflash_legacy_data = 0x4087ffec; -g_flash_guard_ops = 0x4087fff4; - - -/*************************************** - Group hal_wdt - ***************************************/ - -/* Functions */ -wdt_hal_init = 0x40000394; -wdt_hal_deinit = 0x40000398; -wdt_hal_config_stage = 0x4000039c; -wdt_hal_write_protect_disable = 0x400003a0; -wdt_hal_write_protect_enable = 0x400003a4; -wdt_hal_enable = 0x400003a8; -wdt_hal_disable = 0x400003ac; -wdt_hal_handle_intr = 0x400003b0; -wdt_hal_feed = 0x400003b4; -wdt_hal_set_flashboot_en = 0x400003b8; -wdt_hal_is_enabled = 0x400003bc; - - -/*************************************** - Group hal_systimer - ***************************************/ - -/* Functions */ -systimer_hal_init = 0x400003c0; -systimer_hal_deinit = 0x400003c4; -systimer_hal_set_tick_rate_ops = 0x400003c8; -systimer_hal_get_counter_value = 0x400003cc; -systimer_hal_get_time = 0x400003d0; -systimer_hal_set_alarm_target = 0x400003d4; -systimer_hal_set_alarm_period = 0x400003d8; -systimer_hal_get_alarm_value = 0x400003dc; -systimer_hal_enable_alarm_int = 0x400003e0; -systimer_hal_on_apb_freq_update = 0x400003e4; -systimer_hal_counter_value_advance = 0x400003e8; -systimer_hal_enable_counter = 0x400003ec; -systimer_hal_select_alarm_mode = 0x400003f0; -systimer_hal_connect_alarm_counter = 0x400003f4; -systimer_hal_counter_can_stall_by_cpu = 0x400003f8; - - -/*************************************** - Group cache - ***************************************/ - -/* Functions */ -Cache_Get_ICache_Line_Size = 0x40000628; -Cache_Get_Mode = 0x4000062c; -Cache_Address_Through_Cache = 0x40000630; -ROM_Boot_Cache_Init = 0x40000634; -MMU_Set_Page_Mode = 0x40000638; -MMU_Get_Page_Mode = 0x4000063c; -Cache_Invalidate_ICache_Items = 0x40000640; -Cache_Op_Addr = 0x40000644; -Cache_Invalidate_Addr = 0x40000648; -Cache_Invalidate_ICache_All = 0x4000064c; -Cache_Mask_All = 0x40000650; -Cache_UnMask_Dram0 = 0x40000654; -Cache_Suspend_ICache_Autoload = 0x40000658; -Cache_Resume_ICache_Autoload = 0x4000065c; -Cache_Start_ICache_Preload = 0x40000660; -Cache_ICache_Preload_Done = 0x40000664; -Cache_End_ICache_Preload = 0x40000668; -Cache_Config_ICache_Autoload = 0x4000066c; -Cache_Enable_ICache_Autoload = 0x40000670; -Cache_Disable_ICache_Autoload = 0x40000674; -Cache_Enable_ICache_PreLock = 0x40000678; -Cache_Disable_ICache_PreLock = 0x4000067c; -Cache_Lock_ICache_Items = 0x40000680; -Cache_Unlock_ICache_Items = 0x40000684; -Cache_Lock_Addr = 0x40000688; -Cache_Unlock_Addr = 0x4000068c; -Cache_Disable_ICache = 0x40000690; -Cache_Enable_ICache = 0x40000694; -Cache_Suspend_ICache = 0x40000698; -Cache_Resume_ICache = 0x4000069c; -Cache_Freeze_ICache_Enable = 0x400006a0; -Cache_Freeze_ICache_Disable = 0x400006a4; -Cache_Set_IDROM_MMU_Size = 0x400006a8; -Cache_Get_IROM_MMU_End = 0x400006ac; -Cache_Get_DROM_MMU_End = 0x400006b0; -Cache_MMU_Init = 0x400006b4; -Cache_MSPI_MMU_Set = 0x400006b8; -Cache_Travel_Tag_Memory = 0x400006bc; -Cache_Get_Virtual_Addr = 0x400006c0; -/* Data (.data, .bss, .rodata) */ -rom_cache_op_cb = 0x4087ffcc; -rom_cache_internal_table_ptr = 0x4087ffc8; - - -/*************************************** - Group clock - ***************************************/ - -/* Functions */ -ets_clk_get_xtal_freq = 0x400006c4; -ets_clk_get_cpu_freq = 0x400006c8; -ets_clk_apb_wait_ready = 0x400006cc; -ets_clk_mspi_apb_wait_ready = 0x400006d0; - - -/*************************************** - Group gpio - ***************************************/ - -/* Functions */ -gpio_input_get = 0x400006d4; -gpio_matrix_in = 0x400006d8; -gpio_matrix_out = 0x400006dc; -gpio_output_disable = 0x400006e0; -gpio_output_enable = 0x400006e4; -gpio_output_set = 0x400006e8; -gpio_pad_hold = 0x400006ec; -gpio_pad_input_disable = 0x400006f0; -gpio_pad_input_enable = 0x400006f4; -gpio_pad_pulldown = 0x400006f8; -gpio_pad_pullup = 0x400006fc; -gpio_pad_select_gpio = 0x40000700; -gpio_pad_set_drv = 0x40000704; -gpio_pad_unhold = 0x40000708; -gpio_pin_wakeup_disable = 0x4000070c; -gpio_pin_wakeup_enable = 0x40000710; -gpio_bypass_matrix_in = 0x40000714; - - -/*************************************** - Group interrupts - ***************************************/ - -/* Functions */ -esprv_intc_int_set_priority = 0x40000718; -esprv_intc_int_set_threshold = 0x4000071c; -esprv_intc_int_enable = 0x40000720; -esprv_intc_int_disable = 0x40000724; -esprv_intc_int_set_type = 0x40000728; -PROVIDE( intr_handler_set = 0x4000072c ); -intr_matrix_set = 0x40000730; -ets_intr_lock = 0x40000734; -ets_intr_unlock = 0x40000738; -ets_isr_attach = 0x4000073c; -ets_isr_mask = 0x40000740; -ets_isr_unmask = 0x40000744; - - -/*************************************** - Group crypto - ***************************************/ - -/* Functions */ -md5_vector = 0x40000748; -MD5Init = 0x4000074c; -MD5Update = 0x40000750; -MD5Final = 0x40000754; -crc32_le = 0x40000758; -crc16_le = 0x4000075c; -crc8_le = 0x40000760; -crc32_be = 0x40000764; -crc16_be = 0x40000768; -crc8_be = 0x4000076c; -esp_crc8 = 0x40000770; -ets_sha_enable = 0x40000774; -ets_sha_disable = 0x40000778; -ets_sha_get_state = 0x4000077c; -ets_sha_init = 0x40000780; -ets_sha_process = 0x40000784; -ets_sha_starts = 0x40000788; -ets_sha_update = 0x4000078c; -ets_sha_finish = 0x40000790; -ets_sha_clone = 0x40000794; -ets_hmac_enable = 0x40000798; -ets_hmac_disable = 0x4000079c; -ets_hmac_calculate_message = 0x400007a0; -ets_hmac_calculate_downstream = 0x400007a4; -ets_hmac_invalidate_downstream = 0x400007a8; -ets_jtag_enable_temporarily = 0x400007ac; -ets_aes_enable = 0x400007b0; -ets_aes_disable = 0x400007b4; -ets_aes_setkey = 0x400007b8; -ets_aes_block = 0x400007bc; -ets_aes_setkey_dec = 0x400007c0; -ets_aes_setkey_enc = 0x400007c4; -ets_bigint_enable = 0x400007c8; -ets_bigint_disable = 0x400007cc; -ets_bigint_multiply = 0x400007d0; -ets_bigint_modmult = 0x400007d4; -ets_bigint_modexp = 0x400007d8; -ets_bigint_wait_finish = 0x400007dc; -ets_bigint_getz = 0x400007e0; -ets_ds_enable = 0x400007e4; -ets_ds_disable = 0x400007e8; -ets_ds_start_sign = 0x400007ec; -ets_ds_is_busy = 0x400007f0; -ets_ds_finish_sign = 0x400007f4; -ets_ds_encrypt_params = 0x400007f8; -ets_mgf1_sha256 = 0x400007fc; -/* Data (.data, .bss, .rodata) */ -crc32_le_table_ptr = 0x4004fff8; -crc16_le_table_ptr = 0x4004fff4; -crc8_le_table_ptr = 0x4004fff0; -crc32_be_table_ptr = 0x4004ffec; -crc16_be_table_ptr = 0x4004ffe8; -crc8_be_table_ptr = 0x4004ffe4; - - -/*************************************** - Group efuse - ***************************************/ - -/* Functions */ -ets_efuse_read = 0x40000800; -ets_efuse_program = 0x40000804; -ets_efuse_clear_program_registers = 0x40000808; -ets_efuse_write_key = 0x4000080c; -ets_efuse_get_read_register_address = 0x40000810; -ets_efuse_get_key_purpose = 0x40000814; -ets_efuse_key_block_unused = 0x40000818; -ets_efuse_find_unused_key_block = 0x4000081c; -ets_efuse_rs_calculate = 0x40000820; -ets_efuse_count_unused_key_blocks = 0x40000824; -ets_efuse_secure_boot_enabled = 0x40000828; -ets_efuse_secure_boot_aggressive_revoke_enabled = 0x4000082c; -ets_efuse_cache_encryption_enabled = 0x40000830; -ets_efuse_download_modes_disabled = 0x40000834; -ets_efuse_find_purpose = 0x40000838; -ets_efuse_force_send_resume = 0x4000083c; -ets_efuse_get_flash_delay_us = 0x40000840; -ets_efuse_get_mac = 0x40000844; -ets_efuse_get_uart_print_control = 0x40000848; -ets_efuse_direct_boot_mode_disabled = 0x4000084c; -ets_efuse_security_download_modes_enabled = 0x40000850; -ets_efuse_set_timing = 0x40000854; -ets_efuse_jtag_disabled = 0x40000858; -ets_efuse_usb_print_is_disabled = 0x4000085c; -ets_efuse_usb_download_mode_disabled = 0x40000860; -ets_efuse_usb_device_disabled = 0x40000864; -ets_efuse_secure_boot_fast_wake_enabled = 0x40000868; - - -/*************************************** - Group secureboot - ***************************************/ - -/* Functions */ -ets_emsa_pss_verify = 0x4000086c; -ets_rsa_pss_verify = 0x40000870; -ets_secure_boot_verify_bootloader_with_keys = 0x40000874; -ets_secure_boot_verify_signature = 0x40000878; -ets_secure_boot_read_key_digests = 0x4000087c; -ets_secure_boot_revoke_public_key_digest = 0x40000880; - - -/*************************************** - Group usb_device_uart - ***************************************/ - -/* Functions */ -usb_serial_device_rx_one_char = 0x40000a80; -usb_serial_device_rx_one_char_block = 0x40000a84; -usb_serial_device_tx_flush = 0x40000a88; -usb_serial_device_tx_one_char = 0x40000a8c; - - -/*************************************** - Group lldesc - ***************************************/ - -/* Functions */ -lldesc_build_chain = 0x40000a90; - - -/*************************************** - Group sip - ***************************************/ - -/* Functions */ -sip_after_tx_complete = 0x40000a94; -sip_alloc_to_host_evt = 0x40000a98; -sip_download_begin = 0x40000a9c; -sip_get_ptr = 0x40000aa0; -sip_get_state = 0x40000aa4; -sip_init_attach = 0x40000aa8; -sip_install_rx_ctrl_cb = 0x40000aac; -sip_install_rx_data_cb = 0x40000ab0; -sip_is_active = 0x40000ab4; -sip_post_init = 0x40000ab8; -sip_reclaim_from_host_cmd = 0x40000abc; -sip_reclaim_tx_data_pkt = 0x40000ac0; -sip_send = 0x40000ac4; -sip_to_host_chain_append = 0x40000ac8; -sip_to_host_evt_send_done = 0x40000acc; - - -/*************************************** - Group slc - ***************************************/ - -/* Functions */ -slc_add_credits = 0x40000ad0; -slc_enable = 0x40000ad4; -slc_from_host_chain_fetch = 0x40000ad8; -slc_from_host_chain_recycle = 0x40000adc; -slc_has_pkt_to_host = 0x40000ae0; -slc_init_attach = 0x40000ae4; -slc_init_credit = 0x40000ae8; -slc_reattach = 0x40000aec; -slc_send_to_host_chain = 0x40000af0; -slc_set_host_io_max_window = 0x40000af4; -slc_to_host_chain_recycle = 0x40000af8; diff --git a/flasher_stub/ld/rom_32c6_beta.ld b/flasher_stub/ld/rom_32c6_beta.ld deleted file mode 100755 index ad801af61..000000000 --- a/flasher_stub/ld/rom_32c6_beta.ld +++ /dev/null @@ -1,1951 +0,0 @@ -/* ROM function interface esp32c6.rom.ld for esp32c6 - * - * - * Generated from ./interface-esp32c6.yml md5sum e7196719ebc959e6dd2f61dec2db53e0 - * - * Compatible with ROM where ECO version equal or greater to 0. - * - * THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT. - */ - - -PROVIDE ( SPIWrite = esp_rom_spiflash_write); -PROVIDE ( SPI_read_status_high = esp_rom_spiflash_read_statushigh); -PROVIDE ( SPI_write_status = esp_rom_spiflash_write_status); -PROVIDE ( SPIRead = esp_rom_spiflash_read); -PROVIDE ( SPIParamCfg = esp_rom_spiflash_config_param); -PROVIDE ( SPIEraseChip = esp_rom_spiflash_erase_chip); -PROVIDE ( SPIEraseSector = esp_rom_spiflash_erase_sector); -PROVIDE ( SPIEraseBlock = esp_rom_spiflash_erase_block); -PROVIDE ( SPI_Write_Encrypt_Enable = esp_rom_spiflash_write_encrypted_enable); -PROVIDE ( SPI_Write_Encrypt_Disable = esp_rom_spiflash_write_encrypted_disable); -PROVIDE ( SPI_Encrypt_Write = esp_rom_spiflash_write_encrypted); - - -/*************************************** - Group common - ***************************************/ - -/* Functions */ -rtc_get_reset_reason = 0x40000018; -analog_super_wdt_reset_happened = 0x4000001c; -jtag_cpu_reset_happened = 0x40000020; -rtc_get_wakeup_cause = 0x40000024; -rtc_select_apb_bridge = 0x40000028; -rtc_unhold_all_pads = 0x4000002c; -ets_is_print_boot = 0x40000030; -ets_printf = 0x40000034; -ets_install_putc1 = 0x40000038; -ets_install_uart_printf = 0x4000003c; -ets_install_putc2 = 0x40000040; -PROVIDE( ets_delay_us = 0x40000044 ); -ets_get_stack_info = 0x40000048; -ets_install_lock = 0x4000004c; -ets_backup_dma_copy = 0x40000050; -ets_apb_backup_init_lock_func = 0x40000054; -UartRxString = 0x40000058; -uart_tx_one_char = 0x4000005c; -uart_tx_one_char2 = 0x40000060; -uart_rx_one_char = 0x40000064; -uart_rx_one_char_block = 0x40000068; -uart_rx_readbuff = 0x4000006c; -uartAttach = 0x40000070; -uart_tx_flush = 0x40000074; -uart_tx_wait_idle = 0x40000078; -uart_div_modify = 0x4000007c; -multofup = 0x40000080; -software_reset = 0x40000084; -software_reset_cpu = 0x40000088; -assist_debug_clock_enable = 0x4000008c; -assist_debug_record_enable = 0x40000090; -clear_super_wdt_reset_flag = 0x40000094; -disable_default_watchdog = 0x40000098; -esp_rom_set_rtc_wake_addr = 0x4000009c; -esp_rom_get_rtc_wake_addr = 0x400000a0; -send_packet = 0x400000a4; -recv_packet = 0x400000a8; -GetUartDevice = 0x400000ac; -GetSecurityInfoProc = 0x4004b172; -UartDwnLdProc = 0x400000b0; -Uart_Init = 0x400000b4; -ets_set_user_start = 0x400000b8; -/* Data (.data, .bss, .rodata) */ -ets_rom_layout_p = 0x3ff1fffc; -ets_ops_table_ptr = 0x3fcdfffc; - - -/*************************************** - Group miniz - ***************************************/ - -/* Functions */ -mz_adler32 = 0x400000bc; -mz_crc32 = 0x400000c0; -mz_free = 0x400000c4; -tdefl_compress = 0x400000c8; -tdefl_compress_buffer = 0x400000cc; -tdefl_compress_mem_to_heap = 0x400000d0; -tdefl_compress_mem_to_mem = 0x400000d4; -tdefl_compress_mem_to_output = 0x400000d8; -tdefl_get_adler32 = 0x400000dc; -tdefl_get_prev_return_status = 0x400000e0; -tdefl_init = 0x400000e4; -tdefl_write_image_to_png_file_in_memory = 0x400000e8; -tdefl_write_image_to_png_file_in_memory_ex = 0x400000ec; -tinfl_decompress = 0x400000f0; -tinfl_decompress_mem_to_callback = 0x400000f4; -tinfl_decompress_mem_to_heap = 0x400000f8; -tinfl_decompress_mem_to_mem = 0x400000fc; - - -/*************************************** - Group tjpgd - ***************************************/ - -/* Functions */ -jd_prepare = 0x40000100; -jd_decomp = 0x40000104; - - -/*************************************** - Group spiflash_legacy - ***************************************/ - -/* Functions */ -PROVIDE( esp_rom_spiflash_wait_idle = 0x40000108 ); -PROVIDE( esp_rom_spiflash_write_encrypted = 0x4000010c ); -PROVIDE( esp_rom_spiflash_write_encrypted_dest = 0x40000110 ); -PROVIDE( esp_rom_spiflash_write_encrypted_enable = 0x40000114 ); -PROVIDE( esp_rom_spiflash_write_encrypted_disable = 0x40000118 ); -PROVIDE( esp_rom_spiflash_erase_chip = 0x4000011c ); -PROVIDE( esp_rom_spiflash_erase_block = 0x40000120 ); -PROVIDE( esp_rom_spiflash_erase_sector = 0x40000124 ); -PROVIDE( esp_rom_spiflash_write = 0x40000128 ); -PROVIDE( esp_rom_spiflash_read = 0x4000012c ); -PROVIDE( esp_rom_spiflash_config_param = 0x40000130 ); -PROVIDE( esp_rom_spiflash_read_user_cmd = 0x40000134 ); -PROVIDE( esp_rom_spiflash_select_qio_pins = 0x40000138 ); -PROVIDE( esp_rom_spiflash_unlock = 0x4000013c ); -PROVIDE( esp_rom_spi_flash_auto_sus_res = 0x40000140 ); -PROVIDE( esp_rom_spi_flash_send_resume = 0x40000144 ); -PROVIDE( esp_rom_spi_flash_update_id = 0x40000148 ); -PROVIDE( esp_rom_spiflash_config_clk = 0x4000014c ); -PROVIDE( esp_rom_spiflash_config_readmode = 0x40000150 ); -PROVIDE( esp_rom_spiflash_read_status = 0x40000154 ); -PROVIDE( esp_rom_spiflash_read_statushigh = 0x40000158 ); -PROVIDE( esp_rom_spiflash_write_status = 0x4000015c ); -PROVIDE( spi_flash_attach = 0x40000160 ); -PROVIDE( spi_flash_get_chip_size = 0x40000164 ); -PROVIDE( spi_flash_guard_set = 0x40000168 ); -PROVIDE( spi_flash_guard_get = 0x4000016c ); -PROVIDE( spi_flash_write_config_set = 0x40000170 ); -PROVIDE( spi_flash_write_config_get = 0x40000174 ); -PROVIDE( spi_flash_safe_write_address_func_set = 0x40000178 ); -PROVIDE( spi_flash_unlock = 0x4000017c ); -PROVIDE( spi_flash_erase_range = 0x40000180 ); -PROVIDE( spi_flash_erase_sector = 0x40000184 ); -PROVIDE( spi_flash_write = 0x40000188 ); -PROVIDE( spi_flash_read = 0x4000018c ); -PROVIDE( spi_flash_write_encrypted = 0x40000190 ); -PROVIDE( spi_flash_read_encrypted = 0x40000194 ); -PROVIDE( spi_flash_mmap_os_func_set = 0x40000198 ); -PROVIDE( spi_flash_mmap_page_num_init = 0x4000019c ); -PROVIDE( spi_flash_mmap = 0x400001a0 ); -PROVIDE( spi_flash_mmap_pages = 0x400001a4 ); -PROVIDE( spi_flash_munmap = 0x400001a8 ); -PROVIDE( spi_flash_mmap_dump = 0x400001ac ); -PROVIDE( spi_flash_check_and_flush_cache = 0x400001b0 ); -PROVIDE( spi_flash_mmap_get_free_pages = 0x400001b4 ); -PROVIDE( spi_flash_cache2phys = 0x400001b8 ); -PROVIDE( spi_flash_phys2cache = 0x400001bc ); -PROVIDE( spi_flash_disable_cache = 0x400001c0 ); -PROVIDE( spi_flash_restore_cache = 0x400001c4 ); -PROVIDE( spi_flash_cache_enabled = 0x400001c8 ); -PROVIDE( spi_flash_enable_cache = 0x400001cc ); -PROVIDE( spi_cache_mode_switch = 0x400001d0 ); -PROVIDE( spi_common_set_dummy_output = 0x400001d4 ); -PROVIDE( spi_common_set_flash_cs_timing = 0x400001d8 ); -PROVIDE( esp_enable_cache_flash_wrap = 0x400001dc ); -PROVIDE( SPIEraseArea = 0x400001e0 ); -PROVIDE( SPILock = 0x400001e4 ); -PROVIDE( SPIMasterReadModeCnfig = 0x400001e8 ); -PROVIDE( SPI_Common_Command = 0x400001ec ); -PROVIDE( SPI_WakeUp = 0x400001f0 ); -PROVIDE( SPI_block_erase = 0x400001f4 ); -PROVIDE( SPI_chip_erase = 0x400001f8 ); -PROVIDE( SPI_init = 0x400001fc ); -PROVIDE( SPI_page_program = 0x40000200 ); -PROVIDE( SPI_read_data = 0x40000204 ); -PROVIDE( SPI_sector_erase = 0x40000208 ); -PROVIDE( SPI_write_enable = 0x4000020c ); -PROVIDE( SelectSpiFunction = 0x40000210 ); -PROVIDE( SetSpiDrvs = 0x40000214 ); -PROVIDE( Wait_SPI_Idle = 0x40000218 ); -PROVIDE( spi_dummy_len_fix = 0x4000021c ); -PROVIDE( Disable_QMode = 0x40000220 ); -PROVIDE( Enable_QMode = 0x40000224 ); -/* Data (.data, .bss, .rodata) */ -PROVIDE( rom_spiflash_legacy_funcs = 0x3fcdfff4 ); -PROVIDE( rom_spiflash_legacy_data = 0x3fcdfff0 ); -PROVIDE( g_flash_guard_ops = 0x3fcdfff8 ); - - -/*************************************** - Group spi_flash_hal - ***************************************/ - -/* Functions */ -PROVIDE( spi_flash_hal_poll_cmd_done = 0x40000228 ); -PROVIDE( spi_flash_hal_device_config = 0x4000022c ); -PROVIDE( spi_flash_hal_configure_host_io_mode = 0x40000230 ); -PROVIDE( spi_flash_hal_common_command = 0x40000234 ); -PROVIDE( spi_flash_hal_read = 0x40000238 ); -PROVIDE( spi_flash_hal_erase_chip = 0x4000023c ); -PROVIDE( spi_flash_hal_erase_sector = 0x40000240 ); -PROVIDE( spi_flash_hal_erase_block = 0x40000244 ); -PROVIDE( spi_flash_hal_program_page = 0x40000248 ); -PROVIDE( spi_flash_hal_set_write_protect = 0x4000024c ); -PROVIDE( spi_flash_hal_host_idle = 0x40000250 ); - - -/*************************************** - Group spi_flash_chips - ***************************************/ - -/* Functions */ -PROVIDE( spi_flash_chip_generic_probe = 0x40000254 ); -PROVIDE( spi_flash_chip_generic_detect_size = 0x40000258 ); -PROVIDE( spi_flash_chip_generic_write = 0x4000025c ); -PROVIDE( spi_flash_chip_generic_write_encrypted = 0x40000260 ); -PROVIDE( spi_flash_chip_generic_set_write_protect = 0x40000264 ); -PROVIDE( spi_flash_common_write_status_16b_wrsr = 0x40000268 ); -PROVIDE( spi_flash_chip_generic_reset = 0x4000026c ); -PROVIDE( spi_flash_chip_generic_erase_chip = 0x40000270 ); -PROVIDE( spi_flash_chip_generic_erase_sector = 0x40000274 ); -PROVIDE( spi_flash_chip_generic_erase_block = 0x40000278 ); -PROVIDE( spi_flash_chip_generic_page_program = 0x4000027c ); -PROVIDE( spi_flash_chip_generic_get_write_protect = 0x40000280 ); -PROVIDE( spi_flash_common_read_status_16b_rdsr_rdsr2 = 0x40000284 ); -PROVIDE( spi_flash_chip_generic_read_reg = 0x40000288 ); -PROVIDE( spi_flash_chip_generic_yield = 0x4000028c ); -PROVIDE( spi_flash_generic_wait_host_idle = 0x40000290 ); -PROVIDE( spi_flash_chip_generic_wait_idle = 0x40000294 ); -PROVIDE( spi_flash_chip_generic_config_host_io_mode = 0x40000298 ); -PROVIDE( spi_flash_chip_generic_read = 0x4000029c ); -PROVIDE( spi_flash_common_read_status_8b_rdsr2 = 0x400002a0 ); -PROVIDE( spi_flash_chip_generic_get_io_mode = 0x400002a4 ); -PROVIDE( spi_flash_common_read_status_8b_rdsr = 0x400002a8 ); -PROVIDE( spi_flash_common_write_status_8b_wrsr = 0x400002ac ); -PROVIDE( spi_flash_common_write_status_8b_wrsr2 = 0x400002b0 ); -PROVIDE( spi_flash_common_set_io_mode = 0x400002b4 ); -PROVIDE( spi_flash_chip_generic_set_io_mode = 0x400002b8 ); -PROVIDE( spi_flash_chip_gd_get_io_mode = 0x400002bc ); -PROVIDE( spi_flash_chip_gd_probe = 0x400002c0 ); -PROVIDE( spi_flash_chip_gd_set_io_mode = 0x400002c4 ); -/* Data (.data, .bss, .rodata) */ -PROVIDE( spi_flash_chip_generic_config_data = 0x3fcdffec ); - - -/*************************************** - Group memspi_host - ***************************************/ - -/* Functions */ -PROVIDE( memspi_host_read_id_hs = 0x400002c8 ); -PROVIDE( memspi_host_read_status_hs = 0x400002cc ); -PROVIDE( memspi_host_flush_cache = 0x400002d0 ); -PROVIDE( memspi_host_erase_chip = 0x400002d4 ); -PROVIDE( memspi_host_erase_sector = 0x400002d8 ); -PROVIDE( memspi_host_erase_block = 0x400002dc ); -PROVIDE( memspi_host_program_page = 0x400002e0 ); -PROVIDE( memspi_host_read = 0x400002e4 ); -PROVIDE( memspi_host_set_write_protect = 0x400002e8 ); -PROVIDE( memspi_host_set_max_read_len = 0x400002ec ); -PROVIDE( memspi_host_read_data_slicer = 0x400002f0 ); -PROVIDE( memspi_host_write_data_slicer = 0x400002f4 ); - - -/*************************************** - Group esp_flash - ***************************************/ - -/* Functions */ -PROVIDE( esp_flash_chip_driver_initialized = 0x400002f8 ); -PROVIDE( esp_flash_read_id = 0x400002fc ); -PROVIDE( esp_flash_get_size = 0x40000300 ); -PROVIDE( esp_flash_erase_chip = 0x40000304 ); -PROVIDE( esp_flash_erase_region = 0x40000308 ); -PROVIDE( esp_flash_get_chip_write_protect = 0x4000030c ); -PROVIDE( esp_flash_set_chip_write_protect = 0x40000310 ); -PROVIDE( esp_flash_get_protectable_regions = 0x40000314 ); -PROVIDE( esp_flash_get_protected_region = 0x40000318 ); -PROVIDE( esp_flash_set_protected_region = 0x4000031c ); -PROVIDE( esp_flash_read = 0x40000320 ); -PROVIDE( esp_flash_write = 0x40000324 ); -PROVIDE( esp_flash_write_encrypted = 0x40000328 ); -PROVIDE( esp_flash_read_encrypted = 0x4000032c ); -PROVIDE( esp_flash_get_io_mode = 0x40000330 ); -PROVIDE( esp_flash_set_io_mode = 0x40000334 ); -PROVIDE( spi_flash_boot_attach = 0x40000338 ); -PROVIDE( spi_flash_dump_counters = 0x4000033c ); -PROVIDE( spi_flash_get_counters = 0x40000340 ); -PROVIDE( spi_flash_op_counters_config = 0x40000344 ); -PROVIDE( spi_flash_reset_counters = 0x40000348 ); -/* Data (.data, .bss, .rodata) */ -PROVIDE( esp_flash_default_chip = 0x3fcdffe8 ); -PROVIDE( esp_flash_api_funcs = 0x3fcdffe4 ); - - -/*************************************** - Group cache - ***************************************/ - -/* Functions */ -PROVIDE( Cache_Get_ICache_Line_Size = 0x400004ac ); -PROVIDE( Cache_Get_Mode = 0x400004b0 ); -PROVIDE( Cache_Address_Through_IBus = 0x400004b4 ); -PROVIDE( Cache_Address_Through_DBus = 0x400004b8 ); -PROVIDE( Cache_Set_Default_Mode = 0x400004bc ); -PROVIDE( Cache_Enable_Defalut_ICache_Mode = 0x400004c0 ); -PROVIDE( ROM_Boot_Cache_Init = 0x400004c4 ); -PROVIDE( Cache_Invalidate_ICache_Items = 0x400004c8 ); -PROVIDE( Cache_Op_Addr = 0x400004cc ); -PROVIDE( Cache_Invalidate_Addr = 0x400004d0 ); -PROVIDE( Cache_Invalidate_ICache_All = 0x400004d4 ); -PROVIDE( Cache_Mask_All = 0x400004d8 ); -PROVIDE( Cache_UnMask_Dram0 = 0x400004dc ); -PROVIDE( Cache_Suspend_ICache_Autoload = 0x400004e0 ); -PROVIDE( Cache_Resume_ICache_Autoload = 0x400004e4 ); -PROVIDE( Cache_Start_ICache_Preload = 0x400004e8 ); -PROVIDE( Cache_ICache_Preload_Done = 0x400004ec ); -PROVIDE( Cache_End_ICache_Preload = 0x400004f0 ); -PROVIDE( Cache_Config_ICache_Autoload = 0x400004f4 ); -PROVIDE( Cache_Enable_ICache_Autoload = 0x400004f8 ); -PROVIDE( Cache_Disable_ICache_Autoload = 0x400004fc ); -PROVIDE( Cache_Enable_ICache_PreLock = 0x40000500 ); -PROVIDE( Cache_Disable_ICache_PreLock = 0x40000504 ); -PROVIDE( Cache_Lock_ICache_Items = 0x40000508 ); -PROVIDE( Cache_Unlock_ICache_Items = 0x4000050c ); -PROVIDE( Cache_Lock_Addr = 0x40000510 ); -PROVIDE( Cache_Unlock_Addr = 0x40000514 ); -PROVIDE( Cache_Disable_ICache = 0x40000518 ); -PROVIDE( Cache_Enable_ICache = 0x4000051c ); -PROVIDE( Cache_Suspend_ICache = 0x40000520 ); -PROVIDE( Cache_Resume_ICache = 0x40000524 ); -PROVIDE( Cache_Freeze_ICache_Enable = 0x40000528 ); -PROVIDE( Cache_Freeze_ICache_Disable = 0x4000052c ); -PROVIDE( Cache_Pms_Lock = 0x40000530 ); -PROVIDE( Cache_Ibus_Pms_Set_Addr = 0x40000534 ); -PROVIDE( Cache_Ibus_Pms_Set_Attr = 0x40000538 ); -PROVIDE( Cache_Dbus_Pms_Set_Addr = 0x4000053c ); -PROVIDE( Cache_Dbus_Pms_Set_Attr = 0x40000540 ); -PROVIDE( Cache_Set_IDROM_MMU_Size = 0x40000544 ); -PROVIDE( Cache_Get_IROM_MMU_End = 0x40000548 ); -PROVIDE( Cache_Get_DROM_MMU_End = 0x4000054c ); -PROVIDE( Cache_Owner_Init = 0x40000550 ); -PROVIDE( Cache_Occupy_ICache_MEMORY = 0x40000554 ); -PROVIDE( Cache_MMU_Init = 0x40000558 ); -PROVIDE( Cache_Ibus_MMU_Set = 0x4000055c ); -PROVIDE( Cache_Dbus_MMU_Set = 0x40000560 ); -PROVIDE( Cache_Count_Flash_Pages = 0x40000564 ); -PROVIDE( Cache_Travel_Tag_Memory = 0x40000568 ); -PROVIDE( Cache_Get_Virtual_Addr = 0x4000056c ); -PROVIDE( Cache_Get_Memory_BaseAddr = 0x40000570 ); -PROVIDE( Cache_Get_Memory_Addr = 0x40000574 ); -PROVIDE( Cache_Get_Memory_value = 0x40000578 ); -/* Data (.data, .bss, .rodata) */ -PROVIDE( rom_cache_op_cb = 0x3fcdffd8 ); -PROVIDE( rom_cache_internal_table_ptr = 0x3fcdffd4 ); - - -/*************************************** - Group clock - ***************************************/ - -/* Functions */ -ets_get_apb_freq = 0x4000057c; -ets_get_cpu_frequency = 0x40000580; -ets_update_cpu_frequency = 0x40000584; -ets_get_printf_channel = 0x40000588; -ets_get_xtal_div = 0x4000058c; -ets_set_xtal_div = 0x40000590; -ets_get_xtal_freq = 0x40000594; - - -/*************************************** - Group gpio - ***************************************/ - -/* Functions */ -gpio_input_get = 0x40000598; -gpio_matrix_in = 0x4000059c; -gpio_matrix_out = 0x400005a0; -gpio_output_disable = 0x400005a4; -gpio_output_enable = 0x400005a8; -gpio_output_set = 0x400005ac; -gpio_pad_hold = 0x400005b0; -gpio_pad_input_disable = 0x400005b4; -gpio_pad_input_enable = 0x400005b8; -gpio_pad_pulldown = 0x400005bc; -gpio_pad_pullup = 0x400005c0; -gpio_pad_select_gpio = 0x400005c4; -gpio_pad_set_drv = 0x400005c8; -gpio_pad_unhold = 0x400005cc; -gpio_pin_wakeup_disable = 0x400005d0; -gpio_pin_wakeup_enable = 0x400005d4; -gpio_bypass_matrix_in = 0x400005d8; - - -/*************************************** - Group interrupts - ***************************************/ - -/* Functions */ -esprv_intc_int_set_priority = 0x400005dc; -esprv_intc_int_set_threshold = 0x400005e0; -esprv_intc_int_enable = 0x400005e4; -esprv_intc_int_disable = 0x400005e8; -esprv_intc_int_set_type = 0x400005ec; -intr_matrix_set = 0x400005f0; -ets_intr_lock = 0x400005f4; -ets_intr_unlock = 0x400005f8; -PROVIDE( intr_handler_set = 0x400005fc ); -ets_isr_attach = 0x40000600; -ets_isr_mask = 0x40000604; -ets_isr_unmask = 0x40000608; - - -/*************************************** - Group crypto - ***************************************/ - -/* Functions */ -md5_vector = 0x4000060c; -MD5Init = 0x40000610; -MD5Update = 0x40000614; -MD5Final = 0x40000618; -hmac_md5_vector = 0x4000061c; -hmac_md5 = 0x40000620; -crc32_le = 0x40000624; -crc32_be = 0x40000628; -crc16_le = 0x4000062c; -crc16_be = 0x40000630; -crc8_le = 0x40000634; -crc8_be = 0x40000638; -esp_crc8 = 0x4000063c; -ets_sha_enable = 0x40000640; -ets_sha_disable = 0x40000644; -ets_sha_get_state = 0x40000648; -ets_sha_init = 0x4000064c; -ets_sha_process = 0x40000650; -ets_sha_starts = 0x40000654; -ets_sha_update = 0x40000658; -ets_sha_finish = 0x4000065c; -ets_sha_clone = 0x40000660; -ets_hmac_enable = 0x40000664; -ets_hmac_disable = 0x40000668; -ets_hmac_calculate_message = 0x4000066c; -ets_hmac_calculate_downstream = 0x40000670; -ets_hmac_invalidate_downstream = 0x40000674; -ets_jtag_enable_temporarily = 0x40000678; -ets_aes_enable = 0x4000067c; -ets_aes_disable = 0x40000680; -ets_aes_setkey = 0x40000684; -ets_aes_block = 0x40000688; -ets_bigint_enable = 0x4000068c; -ets_bigint_disable = 0x40000690; -ets_bigint_multiply = 0x40000694; -ets_bigint_modmult = 0x40000698; -ets_bigint_modexp = 0x4000069c; -ets_bigint_wait_finish = 0x400006a0; -ets_bigint_getz = 0x400006a4; -ets_ds_enable = 0x400006a8; -ets_ds_disable = 0x400006ac; -ets_ds_start_sign = 0x400006b0; -ets_ds_is_busy = 0x400006b4; -ets_ds_finish_sign = 0x400006b8; -ets_ds_encrypt_params = 0x400006bc; -ets_aes_setkey_dec = 0x400006c0; -ets_aes_setkey_enc = 0x400006c4; -ets_mgf1_sha256 = 0x400006c8; - - -/*************************************** - Group efuse - ***************************************/ - -/* Functions */ -ets_efuse_read = 0x400006cc; -ets_efuse_program = 0x400006d0; -ets_efuse_clear_program_registers = 0x400006d4; -ets_efuse_write_key = 0x400006d8; -ets_efuse_get_read_register_address = 0x400006dc; -ets_efuse_get_key_purpose = 0x400006e0; -ets_efuse_key_block_unused = 0x400006e4; -ets_efuse_find_unused_key_block = 0x400006e8; -ets_efuse_rs_calculate = 0x400006ec; -ets_efuse_count_unused_key_blocks = 0x400006f0; -ets_efuse_secure_boot_enabled = 0x400006f4; -ets_efuse_secure_boot_aggressive_revoke_enabled = 0x400006f8; -ets_efuse_cache_encryption_enabled = 0x400006fc; -ets_efuse_download_modes_disabled = 0x40000700; -ets_efuse_find_purpose = 0x40000704; -ets_efuse_flash_opi_5pads_power_sel_vddspi = 0x40000708; -ets_efuse_force_send_resume = 0x4000070c; -ets_efuse_get_flash_delay_us = 0x40000710; -ets_efuse_get_mac = 0x40000714; -ets_efuse_get_spiconfig = 0x40000718; -ets_efuse_usb_print_is_disabled = 0x4000071c; -ets_efuse_get_uart_print_channel = 0x40000720; -ets_efuse_get_uart_print_control = 0x40000724; -ets_efuse_get_wp_pad = 0x40000728; -ets_efuse_legacy_spi_boot_mode_disabled = 0x4000072c; -ets_efuse_security_download_modes_enabled = 0x40000730; -ets_efuse_set_timing = 0x40000734; -ets_efuse_jtag_disabled = 0x40000738; -ets_efuse_usb_download_mode_disabled = 0x4000073c; -ets_efuse_usb_module_disabled = 0x40000740; -ets_efuse_usb_device_disabled = 0x40000744; - - -/*************************************** - Group secureboot - ***************************************/ - -/* Functions */ -ets_emsa_pss_verify = 0x40000748; -ets_rsa_pss_verify = 0x4000074c; -ets_secure_boot_verify_bootloader_with_keys = 0x40000750; -ets_secure_boot_verify_signature = 0x40000754; -ets_secure_boot_read_key_digests = 0x40000758; -ets_secure_boot_revoke_public_key_digest = 0x4000075c; - - -/*************************************** - Group usb_uart - ***************************************/ - -/* Functions */ -PROVIDE( usb_uart_rx_one_char = 0x400008c8 ); -PROVIDE( usb_uart_rx_one_char_block = 0x400008cc ); -PROVIDE( usb_uart_tx_flush = 0x400008d0 ); -PROVIDE( usb_uart_tx_one_char = 0x400008d4 ); -/* Data (.data, .bss, .rodata) */ -PROVIDE( g_uart_print = 0x3fcdffd1 ); -PROVIDE( g_usb_print = 0x3fcdffd0 ); - - -/*************************************** - Group bluetooth - ***************************************/ - -/* Functions */ -bt_rf_coex_get_dft_cfg = 0x400008d8; -bt_rf_coex_hooks_p_set = 0x400008dc; -btdm_con_maxevtime_cal_impl = 0x400008e0; -btdm_controller_get_compile_version_impl = 0x400008e4; -btdm_controller_rom_data_init = 0x400008e8; -btdm_dis_privacy_err_report_impl = 0x400008ec; -btdm_disable_adv_delay_impl = 0x400008f0; -btdm_enable_scan_continue_impl = 0x400008f4; -btdm_enable_scan_forever_impl = 0x400008f8; -btdm_get_power_state_impl = 0x400008fc; -btdm_get_prevent_sleep_flag_impl = 0x40000900; -btdm_power_state_active_impl = 0x40000904; -btdm_switch_phy_coded_impl = 0x40000908; -hci_acl_data_handler = 0x4000090c; -hci_disconnect_cmd_handler = 0x40000910; -hci_le_con_upd_cmd_handler = 0x40000914; -hci_le_ltk_req_neg_reply_cmd_handler = 0x40000918; -hci_le_ltk_req_reply_cmd_handler = 0x4000091c; -hci_le_rd_chnl_map_cmd_handler = 0x40000920; -hci_le_rd_phy_cmd_handler = 0x40000924; -hci_le_rd_rem_feats_cmd_handler = 0x40000928; -hci_le_rem_con_param_req_neg_reply_cmd_handler = 0x4000092c; -hci_le_rem_con_param_req_reply_cmd_handler = 0x40000930; -hci_le_set_data_len_cmd_handler = 0x40000934; -hci_le_set_phy_cmd_handler = 0x40000938; -hci_le_start_enc_cmd_handler = 0x4000093c; -hci_rd_auth_payl_to_cmd_handler = 0x40000940; -hci_rd_rem_ver_info_cmd_handler = 0x40000944; -hci_rd_rssi_cmd_handler = 0x40000948; -hci_rd_tx_pwr_lvl_cmd_handler = 0x4000094c; -hci_vs_set_pref_slave_evt_dur_cmd_handler = 0x40000950; -hci_vs_set_pref_slave_latency_cmd_handler = 0x40000954; -hci_wr_auth_payl_to_cmd_handler = 0x40000958; -ll_channel_map_ind_handler = 0x4000095c; -ll_connection_param_req_handler = 0x40000960; -ll_connection_param_rsp_handler = 0x40000964; -ll_connection_update_ind_handler = 0x40000968; -ll_enc_req_handler = 0x4000096c; -ll_enc_rsp_handler = 0x40000970; -ll_feature_req_handler = 0x40000974; -ll_feature_rsp_handler = 0x40000978; -ll_length_req_handler = 0x4000097c; -ll_length_rsp_handler = 0x40000980; -ll_min_used_channels_ind_handler = 0x40000984; -ll_pause_enc_req_handler = 0x40000988; -ll_pause_enc_rsp_handler = 0x4000098c; -ll_phy_req_handler = 0x40000990; -ll_phy_rsp_handler = 0x40000994; -ll_phy_update_ind_handler = 0x40000998; -ll_ping_req_handler = 0x4000099c; -ll_ping_rsp_handler = 0x400009a0; -ll_slave_feature_req_handler = 0x400009a4; -ll_start_enc_req_handler = 0x400009a8; -ll_start_enc_rsp_handler = 0x400009ac; -ll_terminate_ind_handler = 0x400009b0; -ll_version_ind_handler = 0x400009b4; -llc_auth_payl_nearly_to_handler = 0x400009b8; -llc_auth_payl_real_to_handler = 0x400009bc; -llc_encrypt_ind_handler = 0x400009c0; -llc_hci_command_handler_wrapper = 0x400009c4; -llc_ll_connection_param_req_pdu_send = 0x400009c8; -llc_ll_connection_param_rsp_pdu_send = 0x400009cc; -llc_ll_connection_update_ind_pdu_send = 0x400009d0; -llc_ll_enc_req_pdu_send = 0x400009d4; -llc_ll_enc_rsp_pdu_send = 0x400009d8; -llc_ll_feature_req_pdu_send = 0x400009dc; -llc_ll_feature_rsp_pdu_send = 0x400009e0; -llc_ll_length_req_pdu_send = 0x400009e4; -llc_ll_length_rsp_pdu_send = 0x400009e8; -llc_ll_pause_enc_req_pdu_send = 0x400009ec; -llc_ll_pause_enc_rsp_pdu_send = 0x400009f0; -llc_ll_phy_req_pdu_send = 0x400009f4; -llc_ll_phy_rsp_pdu_send = 0x400009f8; -llc_ll_ping_req_pdu_send = 0x400009fc; -llc_ll_ping_rsp_pdu_send = 0x40000a00; -llc_ll_start_enc_req_pdu_send = 0x40000a04; -llc_ll_start_enc_rsp_pdu_send = 0x40000a08; -llc_ll_terminate_ind_pdu_send = 0x40000a0c; -llc_ll_unknown_rsp_pdu_send = 0x40000a10; -llc_llcp_ch_map_update_ind_pdu_send = 0x40000a14; -llc_llcp_phy_upd_ind_pdu_send = 0x40000a18; -llc_llcp_version_ind_pdu_send = 0x40000a1c; -llc_op_ch_map_upd_ind_handler = 0x40000a20; -llc_op_con_upd_ind_handler = 0x40000a24; -llc_op_disconnect_ind_handler = 0x40000a28; -llc_op_dl_upd_ind_handler = 0x40000a2c; -llc_op_encrypt_ind_handler = 0x40000a30; -llc_op_feats_exch_ind_handler = 0x40000a34; -llc_op_le_ping_ind_handler = 0x40000a38; -llc_op_phy_upd_ind_handler = 0x40000a3c; -llc_op_ver_exch_ind_handler = 0x40000a40; -llc_stopped_ind_handler = 0x40000a44; -lld_acl_rx_ind_handler = 0x40000a48; -lld_acl_tx_cfm_handler = 0x40000a4c; -lld_adv_end_ind_handler = 0x40000a50; -lld_adv_rep_ind_handler = 0x40000a54; -lld_ch_map_upd_cfm_handler = 0x40000a58; -lld_con_estab_ind_handler = 0x40000a5c; -lld_con_evt_sd_evt_time_set = 0x40000a60; -lld_con_offset_upd_ind_handler = 0x40000a64; -lld_con_param_upd_cfm_handler = 0x40000a68; -lld_disc_ind_handler = 0x40000a6c; -lld_init_end_ind_handler = 0x40000a70; -lld_llcp_rx_ind_handler_wrapper = 0x40000a74; -lld_llcp_tx_cfm_handler = 0x40000a78; -lld_per_adv_end_ind_handler = 0x40000a7c; -lld_per_adv_rep_ind_handler = 0x40000a80; -lld_per_adv_rx_end_ind_handler = 0x40000a84; -lld_phy_coded_500k_get = 0x40000a88; -lld_phy_upd_cfm_handler = 0x40000a8c; -lld_scan_end_ind_handler = 0x40000a90; -lld_scan_req_ind_handler = 0x40000a94; -lld_sync_start_req_handler = 0x40000a98; -lld_test_end_ind_handler = 0x40000a9c; -lld_update_rxbuf_handler = 0x40000aa0; -llm_ch_map_update_ind_handler = 0x40000aa4; -llm_hci_command_handler_wrapper = 0x40000aa8; -llm_scan_period_to_handler = 0x40000aac; -r_Add2SelfBigHex256 = 0x40000ab0; -r_AddBigHex256 = 0x40000ab4; -r_AddBigHexModP256 = 0x40000ab8; -r_AddP256 = 0x40000abc; -r_AddPdiv2_256 = 0x40000ac0; -r_GF_Jacobian_Point_Addition256 = 0x40000ac4; -r_GF_Jacobian_Point_Double256 = 0x40000ac8; -r_GF_Point_Jacobian_To_Affine256 = 0x40000acc; -r_MultiplyBigHexByUint32_256 = 0x40000ad0; -r_MultiplyBigHexModP256 = 0x40000ad4; -r_MultiplyByU16ModP256 = 0x40000ad8; -r_SubtractBigHex256 = 0x40000adc; -r_SubtractBigHexMod256 = 0x40000ae0; -r_SubtractBigHexUint32_256 = 0x40000ae4; -r_SubtractFromSelfBigHex256 = 0x40000ae8; -r_SubtractFromSelfBigHexSign256 = 0x40000aec; -r_aes_alloc = 0x40000af0; -r_aes_ccm_continue = 0x40000af4; -r_aes_ccm_process_e = 0x40000af8; -r_aes_ccm_xor_128_lsb = 0x40000afc; -r_aes_ccm_xor_128_msb = 0x40000b00; -r_aes_cmac_continue = 0x40000b04; -r_aes_cmac_start = 0x40000b08; -r_aes_k1_continue = 0x40000b0c; -r_aes_k2_continue = 0x40000b10; -r_aes_k3_continue = 0x40000b14; -r_aes_k4_continue = 0x40000b18; -r_aes_shift_left_128 = 0x40000b1c; -r_aes_start = 0x40000b20; -r_aes_xor_128 = 0x40000b24; -r_assert_err = 0x40000b28; -r_assert_param = 0x40000b2c; -r_assert_warn = 0x40000b30; -r_bigHexInversion256 = 0x40000b34; -r_ble_sw_cca_check_isr = 0x40000b38; -r_ble_util_buf_acl_tx_alloc = 0x40000b3c; -r_ble_util_buf_acl_tx_elt_get = 0x40000b40; -r_ble_util_buf_acl_tx_free = 0x40000b44; -r_ble_util_buf_acl_tx_free_in_isr = 0x40000b48; -r_ble_util_buf_adv_tx_alloc = 0x40000b4c; -r_ble_util_buf_adv_tx_free = 0x40000b50; -r_ble_util_buf_adv_tx_free_in_isr = 0x40000b54; -r_ble_util_buf_env_deinit = 0x40000b58; -r_ble_util_buf_env_init = 0x40000b5c; -r_ble_util_buf_get_rx_buf_nb = 0x40000b60; -r_ble_util_buf_get_rx_buf_size = 0x40000b64; -r_ble_util_buf_llcp_tx_alloc = 0x40000b68; -r_ble_util_buf_llcp_tx_free = 0x40000b6c; -r_ble_util_buf_rx_alloc = 0x40000b70; -r_ble_util_buf_rx_alloc_in_isr = 0x40000b74; -r_ble_util_buf_rx_free = 0x40000b78; -r_ble_util_buf_rx_free_in_isr = 0x40000b7c; -r_ble_util_buf_set_rx_buf_nb = 0x40000b80; -r_ble_util_buf_set_rx_buf_size = 0x40000b84; -r_ble_util_data_rx_buf_reset = 0x40000b88; -r_bt_bb_get_intr_mask = 0x40000b8c; -r_bt_bb_intr_clear = 0x40000b90; -r_bt_bb_intr_mask_set = 0x40000b94; -r_bt_bb_isr = 0x40000b98; -r_bt_rf_coex_cfg_set = 0x40000b9c; -r_bt_rf_coex_conn_dynamic_pti_en_get = 0x40000ba0; -r_bt_rf_coex_conn_phy_coded_data_time_limit_en_get = 0x40000ba4; -r_bt_rf_coex_ext_adv_dynamic_pti_en_get = 0x40000ba8; -r_bt_rf_coex_ext_scan_dynamic_pti_en_get = 0x40000bac; -r_bt_rf_coex_legacy_adv_dynamic_pti_en_get = 0x40000bb0; -r_bt_rf_coex_per_adv_dynamic_pti_en_get = 0x40000bb4; -r_bt_rf_coex_pti_table_get = 0x40000bb8; -r_bt_rf_coex_st_param_get = 0x40000bbc; -r_bt_rf_coex_st_param_set = 0x40000bc0; -r_bt_rf_coex_sync_scan_dynamic_pti_en_get = 0x40000bc4; -r_bt_rma_apply_rule_cs_fmt = 0x40000bc8; -r_bt_rma_apply_rule_cs_idx = 0x40000bcc; -r_bt_rma_configure = 0x40000bd0; -r_bt_rma_deregister_rule_cs_fmt = 0x40000bd4; -r_bt_rma_deregister_rule_cs_idx = 0x40000bd8; -r_bt_rma_get_ant_by_act = 0x40000bdc; -r_bt_rma_init = 0x40000be0; -r_bt_rma_register_rule_cs_fmt = 0x40000be4; -r_bt_rma_register_rule_cs_idx = 0x40000be8; -r_bt_rtp_apply_rule_cs_fmt = 0x40000bec; -r_bt_rtp_apply_rule_cs_idx = 0x40000bf0; -r_bt_rtp_deregister_rule_cs_fmt = 0x40000bf4; -r_bt_rtp_deregister_rule_cs_idx = 0x40000bf8; -r_bt_rtp_get_txpwr_idx_by_act = 0x40000bfc; -r_bt_rtp_init = 0x40000c00; -r_bt_rtp_register_rule_cs_fmt = 0x40000c04; -r_bt_rtp_register_rule_cs_idx = 0x40000c08; -r_btdm_isr = 0x40000c0c; -r_btdm_task_post = 0x40000c10; -r_btdm_task_post_from_isr = 0x40000c14; -r_btdm_task_recycle = 0x40000c18; -r_cali_phase_match_p = 0x40000c1c; -r_cmp_abs_time = 0x40000c20; -r_cmp_dest_id = 0x40000c24; -r_cmp_timer_id = 0x40000c28; -r_co_bdaddr_compare = 0x40000c2c; -r_co_ble_pkt_dur_in_us = 0x40000c30; -r_co_list_extract = 0x40000c34; -r_co_list_extract_after = 0x40000c38; -r_co_list_extract_sublist = 0x40000c3c; -r_co_list_find = 0x40000c40; -r_co_list_init = 0x40000c44; -r_co_list_insert_after = 0x40000c48; -r_co_list_insert_before = 0x40000c4c; -r_co_list_merge = 0x40000c50; -r_co_list_pool_init = 0x40000c54; -r_co_list_pop_front = 0x40000c58; -r_co_list_push_back = 0x40000c5c; -r_co_list_push_back_sublist = 0x40000c60; -r_co_list_push_front = 0x40000c64; -r_co_list_size = 0x40000c68; -r_co_nb_good_le_channels = 0x40000c6c; -r_co_util_pack = 0x40000c70; -r_co_util_read_array_size = 0x40000c74; -r_co_util_unpack = 0x40000c78; -r_dbg_env_deinit = 0x40000c7c; -r_dbg_env_init = 0x40000c80; -r_dbg_platform_reset_complete = 0x40000c84; -r_dl_upd_proc_start = 0x40000c88; -r_dump_data = 0x40000c8c; -r_ecc_abort_key256_generation = 0x40000c90; -r_ecc_gen_new_public_key = 0x40000c94; -r_ecc_gen_new_secret_key = 0x40000c98; -r_ecc_generate_key256 = 0x40000c9c; -r_ecc_get_debug_Keys = 0x40000ca0; -r_ecc_init = 0x40000ca4; -r_ecc_is_valid_point = 0x40000ca8; -r_ecc_multiplication_event_handler = 0x40000cac; -r_ecc_point_multiplication_win_256 = 0x40000cb0; -r_emi_alloc_em_mapping_by_offset = 0x40000cb4; -r_emi_base_reg_lut_show = 0x40000cb8; -r_emi_em_base_reg_show = 0x40000cbc; -r_emi_free_em_mapping_by_offset = 0x40000cc0; -r_emi_get_em_mapping_idx_by_offset = 0x40000cc4; -r_emi_get_mem_addr_by_offset = 0x40000cc8; -r_emi_overwrite_em_mapping_by_offset = 0x40000ccc; -r_esp_vendor_hci_command_handler = 0x40000cd0; -r_get_stack_usage = 0x40000cd4; -r_h4tl_acl_hdr_rx_evt_handler = 0x40000cd8; -r_h4tl_cmd_hdr_rx_evt_handler = 0x40000cdc; -r_h4tl_cmd_pld_rx_evt_handler = 0x40000ce0; -r_h4tl_eif_io_event_post = 0x40000ce4; -r_h4tl_eif_register = 0x40000ce8; -r_h4tl_init = 0x40000cec; -r_h4tl_out_of_sync = 0x40000cf0; -r_h4tl_out_of_sync_check = 0x40000cf4; -r_h4tl_read_hdr = 0x40000cf8; -r_h4tl_read_next_out_of_sync = 0x40000cfc; -r_h4tl_read_payl = 0x40000d00; -r_h4tl_read_start = 0x40000d04; -r_h4tl_rx_acl_hdr_extract = 0x40000d08; -r_h4tl_rx_cmd_hdr_extract = 0x40000d0c; -r_h4tl_rx_done = 0x40000d10; -r_h4tl_start = 0x40000d14; -r_h4tl_stop = 0x40000d18; -r_h4tl_tx_done = 0x40000d1c; -r_h4tl_tx_evt_handler = 0x40000d20; -r_h4tl_write = 0x40000d24; -r_hci_acl_tx_data_alloc = 0x40000d28; -r_hci_acl_tx_data_received = 0x40000d2c; -r_hci_basic_cmd_send_2_controller = 0x40000d30; -r_hci_ble_adv_report_filter_check = 0x40000d34; -r_hci_ble_adv_report_tx_check = 0x40000d38; -r_hci_ble_conhdl_register = 0x40000d3c; -r_hci_ble_conhdl_unregister = 0x40000d40; -r_hci_build_acl_data = 0x40000d44; -r_hci_build_cc_evt = 0x40000d48; -r_hci_build_cs_evt = 0x40000d4c; -r_hci_build_evt = 0x40000d50; -r_hci_build_le_evt = 0x40000d54; -r_hci_cmd_get_max_param_size = 0x40000d58; -r_hci_cmd_received = 0x40000d5c; -r_hci_cmd_reject = 0x40000d60; -r_hci_evt_mask_check = 0x40000d64; -r_hci_evt_mask_set = 0x40000d68; -r_hci_fc_acl_buf_size_set = 0x40000d6c; -r_hci_fc_acl_en = 0x40000d70; -r_hci_fc_acl_packet_sent = 0x40000d74; -r_hci_fc_check_host_available_nb_acl_packets = 0x40000d78; -r_hci_fc_host_nb_acl_pkts_complete = 0x40000d7c; -r_hci_fc_init = 0x40000d80; -r_hci_look_for_cmd_desc = 0x40000d84; -r_hci_look_for_evt_desc = 0x40000d88; -r_hci_look_for_le_evt_desc = 0x40000d8c; -r_hci_look_for_le_evt_desc_esp = 0x40000d90; -r_hci_pack_bytes = 0x40000d94; -r_hci_register_vendor_desc_tab = 0x40000d98; -r_hci_send_2_controller = 0x40000d9c; -r_hci_send_2_host = 0x40000da0; -r_hci_tl_c2h_data_flow_on = 0x40000da4; -r_hci_tl_cmd_hdr_rx_evt_handler = 0x40000da8; -r_hci_tl_cmd_pld_rx_evt_handler = 0x40000dac; -r_hci_tl_get_pkt = 0x40000db0; -r_hci_tl_hci_pkt_handler = 0x40000db4; -r_hci_tl_hci_tx_done_evt_handler = 0x40000db8; -r_hci_tl_inc_nb_h2c_cmd_pkts = 0x40000dbc; -r_hci_tl_save_pkt = 0x40000dc0; -r_hci_tl_send = 0x40000dc4; -r_hci_tx_done = 0x40000dc8; -r_hci_tx_start = 0x40000dcc; -r_hci_tx_trigger = 0x40000dd0; -r_isValidSecretKey_256 = 0x40000dd4; -r_ke_check_malloc = 0x40000dd8; -r_ke_event_callback_set = 0x40000ddc; -r_ke_event_clear = 0x40000de0; -r_ke_event_flush = 0x40000de4; -r_ke_event_get = 0x40000de8; -r_ke_event_get_all = 0x40000dec; -r_ke_event_init = 0x40000df0; -r_ke_event_schedule = 0x40000df4; -r_ke_event_set = 0x40000df8; -r_ke_flush = 0x40000dfc; -r_ke_free = 0x40000e00; -r_ke_handler_search = 0x40000e04; -r_ke_init = 0x40000e08; -r_ke_is_free = 0x40000e0c; -r_ke_malloc = 0x40000e10; -r_ke_mem_init = 0x40000e14; -r_ke_mem_is_empty = 0x40000e18; -r_ke_mem_is_in_heap = 0x40000e1c; -r_ke_msg_alloc = 0x40000e20; -r_ke_msg_dest_id_get = 0x40000e24; -r_ke_msg_discard = 0x40000e28; -r_ke_msg_forward = 0x40000e2c; -r_ke_msg_forward_new_id = 0x40000e30; -r_ke_msg_free = 0x40000e34; -r_ke_msg_in_queue = 0x40000e38; -r_ke_msg_save = 0x40000e3c; -r_ke_msg_send = 0x40000e40; -r_ke_msg_send_basic = 0x40000e44; -r_ke_msg_src_id_get = 0x40000e48; -r_ke_queue_extract = 0x40000e4c; -r_ke_queue_insert = 0x40000e50; -r_ke_sleep_check = 0x40000e54; -r_ke_state_get = 0x40000e58; -r_ke_state_set = 0x40000e5c; -r_ke_task_check = 0x40000e60; -r_ke_task_create = 0x40000e64; -r_ke_task_delete = 0x40000e68; -r_ke_task_handler_get = 0x40000e6c; -r_ke_task_init = 0x40000e70; -r_ke_task_msg_flush = 0x40000e74; -r_ke_task_saved_update = 0x40000e78; -r_ke_task_schedule = 0x40000e7c; -r_ke_time = 0x40000e80; -r_ke_time_cmp = 0x40000e84; -r_ke_time_past = 0x40000e88; -r_ke_timer_active = 0x40000e8c; -r_ke_timer_adjust_all = 0x40000e90; -r_ke_timer_clear = 0x40000e94; -r_ke_timer_init = 0x40000e98; -r_ke_timer_schedule = 0x40000e9c; -r_ke_timer_set = 0x40000ea0; -r_led_init = 0x40000ea4; -r_led_set_all = 0x40000ea8; -r_llc_aes_res_cb = 0x40000eac; -r_llc_ch_map_up_proc_err_cb = 0x40000eb0; -r_llc_cleanup = 0x40000eb4; -r_llc_cmd_cmp_send = 0x40000eb8; -r_llc_cmd_stat_send = 0x40000ebc; -r_llc_con_move_cbk = 0x40000ec0; -r_llc_con_plan_set_update = 0x40000ec4; -r_llc_con_upd_param_in_range = 0x40000ec8; -r_llc_disconnect = 0x40000ecc; -r_llc_disconnect_end = 0x40000ed0; -r_llc_disconnect_proc_continue = 0x40000ed4; -r_llc_disconnect_proc_err_cb = 0x40000ed8; -r_llc_dl_chg_check = 0x40000edc; -r_llc_dle_proc_err_cb = 0x40000ee0; -r_llc_feats_exch_proc_err_cb = 0x40000ee4; -r_llc_hci_cmd_handler_tab_p_get = 0x40000ee8; -r_llc_hci_command_handler = 0x40000eec; -r_llc_hci_con_param_req_evt_send = 0x40000ef0; -r_llc_hci_con_upd_info_send = 0x40000ef4; -r_llc_hci_disconnected_dis = 0x40000ef8; -r_llc_hci_dl_upd_info_send = 0x40000efc; -r_llc_hci_enc_evt_send = 0x40000f00; -r_llc_hci_feats_info_send = 0x40000f04; -r_llc_hci_le_phy_upd_cmp_evt_send = 0x40000f08; -r_llc_hci_ltk_request_evt_send = 0x40000f0c; -r_llc_hci_nb_cmp_pkts_evt_send = 0x40000f10; -r_llc_hci_version_info_send = 0x40000f14; -r_llc_init_term_proc = 0x40000f18; -r_llc_iv_skd_rand_gen = 0x40000f1c; -r_llc_le_ping_proc_continue = 0x40000f20; -r_llc_le_ping_proc_err_cb = 0x40000f24; -r_llc_le_ping_restart = 0x40000f28; -r_llc_le_ping_set = 0x40000f2c; -r_llc_ll_pause_enc_rsp_ack_handler = 0x40000f30; -r_llc_ll_reject_ind_ack_handler = 0x40000f34; -r_llc_ll_reject_ind_pdu_send = 0x40000f38; -r_llc_ll_start_enc_rsp_ack_handler = 0x40000f3c; -r_llc_ll_terminate_ind_ack = 0x40000f40; -r_llc_ll_unknown_ind_handler = 0x40000f44; -r_llc_llcp_send = 0x40000f48; -r_llc_llcp_state_set = 0x40000f4c; -r_llc_llcp_trans_timer_set = 0x40000f50; -r_llc_llcp_tx_check = 0x40000f54; -r_llc_loc_ch_map_proc_continue = 0x40000f58; -r_llc_loc_con_upd_proc_continue = 0x40000f5c; -r_llc_loc_con_upd_proc_err_cb = 0x40000f60; -r_llc_loc_dl_upd_proc_continue = 0x40000f64; -r_llc_loc_encrypt_proc_continue = 0x40000f68; -r_llc_loc_encrypt_proc_err_cb = 0x40000f6c; -r_llc_loc_feats_exch_proc_continue = 0x40000f70; -r_llc_loc_phy_upd_proc_continue = 0x40000f74; -r_llc_loc_phy_upd_proc_err_cb = 0x40000f78; -r_llc_msg_handler_tab_p_get = 0x40000f7c; -r_llc_pref_param_compute = 0x40000f80; -r_llc_proc_collision_check = 0x40000f84; -r_llc_proc_err_ind = 0x40000f88; -r_llc_proc_get = 0x40000f8c; -r_llc_proc_id_get = 0x40000f90; -r_llc_proc_reg = 0x40000f94; -r_llc_proc_state_get = 0x40000f98; -r_llc_proc_state_set = 0x40000f9c; -r_llc_proc_timer_pause_set = 0x40000fa0; -r_llc_proc_timer_set = 0x40000fa4; -r_llc_proc_unreg = 0x40000fa8; -r_llc_rem_ch_map_proc_continue = 0x40000fac; -r_llc_rem_con_upd_proc_continue = 0x40000fb0; -r_llc_rem_con_upd_proc_err_cb = 0x40000fb4; -r_llc_rem_dl_upd_proc = 0x40000fb8; -r_llc_rem_encrypt_proc_continue = 0x40000fbc; -r_llc_rem_encrypt_proc_err_cb = 0x40000fc0; -r_llc_rem_phy_upd_proc_continue = 0x40000fc4; -r_llc_rem_phy_upd_proc_err_cb = 0x40000fc8; -r_llc_role_get = 0x40000fcc; -r_llc_sk_gen = 0x40000fd0; -r_llc_start = 0x40000fd4; -r_llc_stop = 0x40000fd8; -r_llc_ver_exch_loc_proc_continue = 0x40000fdc; -r_llc_ver_proc_err_cb = 0x40000fe0; -r_llcp_pdu_handler_tab_p_get = 0x40000fe4; -r_lld_aa_gen = 0x40000fe8; -r_lld_adv_adv_data_set = 0x40000fec; -r_lld_adv_adv_data_update = 0x40000ff0; -r_lld_adv_aux_ch_idx_set = 0x40000ff4; -r_lld_adv_aux_evt_canceled_cbk = 0x40000ff8; -r_lld_adv_aux_evt_start_cbk = 0x40000ffc; -r_lld_adv_coex_check_ext_adv_synced = 0x40001000; -r_lld_adv_coex_env_reset = 0x40001004; -r_lld_adv_duration_update = 0x40001008; -r_lld_adv_dynamic_pti_process = 0x4000100c; -r_lld_adv_end = 0x40001010; -r_lld_adv_evt_canceled_cbk = 0x40001014; -r_lld_adv_evt_start_cbk = 0x40001018; -r_lld_adv_ext_chain_construct = 0x4000101c; -r_lld_adv_ext_pkt_prepare = 0x40001020; -r_lld_adv_frm_cbk = 0x40001024; -r_lld_adv_frm_isr = 0x40001028; -r_lld_adv_frm_skip_isr = 0x4000102c; -r_lld_adv_init = 0x40001030; -r_lld_adv_pkt_rx = 0x40001034; -r_lld_adv_pkt_rx_connect_ind = 0x40001038; -r_lld_adv_pkt_rx_send_scan_req_evt = 0x4000103c; -r_lld_adv_rand_addr_update = 0x40001040; -r_lld_adv_restart = 0x40001044; -r_lld_adv_scan_rsp_data_set = 0x40001048; -r_lld_adv_scan_rsp_data_update = 0x4000104c; -r_lld_adv_set_tx_power = 0x40001050; -r_lld_adv_start = 0x40001054; -r_lld_adv_stop = 0x40001058; -r_lld_adv_sync_info_set = 0x4000105c; -r_lld_adv_sync_info_update = 0x40001060; -r_lld_calc_aux_rx = 0x40001064; -r_lld_cca_alloc = 0x40001068; -r_lld_cca_data_reset = 0x4000106c; -r_lld_cca_free = 0x40001070; -r_lld_ch_assess_data_get = 0x40001074; -r_lld_ch_idx_get = 0x40001078; -r_lld_ch_map_set = 0x4000107c; -r_lld_channel_assess = 0x40001080; -r_lld_con_activity_act_offset_compute = 0x40001084; -r_lld_con_activity_offset_compute = 0x40001088; -r_lld_con_ch_map_update = 0x4000108c; -r_lld_con_cleanup = 0x40001090; -r_lld_con_current_tx_power_get = 0x40001094; -r_lld_con_data_flow_set = 0x40001098; -r_lld_con_data_len_update = 0x4000109c; -r_lld_con_data_tx = 0x400010a0; -r_lld_con_enc_key_load = 0x400010a4; -r_lld_con_event_counter_get = 0x400010a8; -r_lld_con_evt_canceled_cbk = 0x400010ac; -r_lld_con_evt_duration_min_get = 0x400010b0; -r_lld_con_evt_max_eff_time_cal = 0x400010b4; -r_lld_con_evt_sd_evt_time_get = 0x400010b8; -r_lld_con_evt_start_cbk = 0x400010bc; -r_lld_con_evt_time_update = 0x400010c0; -r_lld_con_free_all_tx_buf = 0x400010c4; -r_lld_con_frm_cbk = 0x400010c8; -r_lld_con_frm_isr = 0x400010cc; -r_lld_con_frm_skip_isr = 0x400010d0; -r_lld_con_init = 0x400010d4; -r_lld_con_llcp_tx = 0x400010d8; -r_lld_con_max_lat_calc = 0x400010dc; -r_lld_con_offset_get = 0x400010e0; -r_lld_con_param_update = 0x400010e4; -r_lld_con_phys_update = 0x400010e8; -r_lld_con_pref_slave_evt_dur_set = 0x400010ec; -r_lld_con_pref_slave_latency_set = 0x400010f0; -r_lld_con_rssi_get = 0x400010f4; -r_lld_con_rx = 0x400010f8; -r_lld_con_rx_channel_assess = 0x400010fc; -r_lld_con_rx_enc = 0x40001100; -r_lld_con_rx_isr = 0x40001104; -r_lld_con_rx_link_info_check = 0x40001108; -r_lld_con_rx_llcp_check = 0x4000110c; -r_lld_con_rx_sync_time_update = 0x40001110; -r_lld_con_sched = 0x40001114; -r_lld_con_set_tx_power = 0x40001118; -r_lld_con_start = 0x4000111c; -r_lld_con_stop = 0x40001120; -r_lld_con_tx = 0x40001124; -r_lld_con_tx_enc = 0x40001128; -r_lld_con_tx_isr = 0x4000112c; -r_lld_con_tx_len_update = 0x40001130; -r_lld_con_tx_len_update_for_intv = 0x40001134; -r_lld_con_tx_len_update_for_rate = 0x40001138; -r_lld_con_tx_prog = 0x4000113c; -r_lld_conn_dynamic_pti_process = 0x40001140; -r_lld_continue_scan_rx_isr_end_process = 0x40001144; -r_lld_ext_scan_dynamic_pti_process = 0x40001148; -r_lld_hw_cca_end_isr = 0x4000114c; -r_lld_hw_cca_evt_handler = 0x40001150; -r_lld_hw_cca_isr = 0x40001154; -r_lld_init_cal_anchor_point = 0x40001158; -r_lld_init_compute_winoffset = 0x4000115c; -r_lld_init_connect_req_pack = 0x40001160; -r_lld_init_end = 0x40001164; -r_lld_init_evt_canceled_cbk = 0x40001168; -r_lld_init_evt_start_cbk = 0x4000116c; -r_lld_init_frm_cbk = 0x40001170; -r_lld_init_frm_eof_isr = 0x40001174; -r_lld_init_frm_skip_isr = 0x40001178; -r_lld_init_init = 0x4000117c; -r_lld_init_process_pkt_rx = 0x40001180; -r_lld_init_process_pkt_rx_adv_ext_ind = 0x40001184; -r_lld_init_process_pkt_rx_adv_ind_or_direct_ind = 0x40001188; -r_lld_init_process_pkt_rx_aux_connect_rsp = 0x4000118c; -r_lld_init_process_pkt_tx = 0x40001190; -r_lld_init_process_pkt_tx_cal_con_timestamp = 0x40001194; -r_lld_init_sched = 0x40001198; -r_lld_init_set_tx_power = 0x4000119c; -r_lld_init_start = 0x400011a0; -r_lld_init_stop = 0x400011a4; -r_lld_instant_proc_end = 0x400011a8; -r_lld_llcp_rx_ind_handler = 0x400011ac; -r_lld_per_adv_ch_map_update = 0x400011b0; -r_lld_per_adv_chain_construct = 0x400011b4; -r_lld_per_adv_cleanup = 0x400011b8; -r_lld_per_adv_coex_env_reset = 0x400011bc; -r_lld_per_adv_data_set = 0x400011c0; -r_lld_per_adv_data_update = 0x400011c4; -r_lld_per_adv_dynamic_pti_process = 0x400011c8; -r_lld_per_adv_evt_canceled_cbk = 0x400011cc; -r_lld_per_adv_evt_start_cbk = 0x400011d0; -r_lld_per_adv_ext_pkt_prepare = 0x400011d4; -r_lld_per_adv_frm_cbk = 0x400011d8; -r_lld_per_adv_frm_isr = 0x400011dc; -r_lld_per_adv_frm_skip_isr = 0x400011e0; -r_lld_per_adv_init = 0x400011e4; -r_lld_per_adv_init_info_get = 0x400011e8; -r_lld_per_adv_list_add = 0x400011ec; -r_lld_per_adv_list_rem = 0x400011f0; -r_lld_per_adv_sched = 0x400011f4; -r_lld_per_adv_set_tx_power = 0x400011f8; -r_lld_per_adv_start = 0x400011fc; -r_lld_per_adv_stop = 0x40001200; -r_lld_per_adv_sync_info_get = 0x40001204; -r_lld_process_cca_data = 0x40001208; -r_lld_ral_search = 0x4000120c; -r_lld_read_clock = 0x40001210; -r_lld_res_list_add = 0x40001214; -r_lld_res_list_clear = 0x40001218; -r_lld_res_list_is_empty = 0x4000121c; -r_lld_res_list_local_rpa_get = 0x40001220; -r_lld_res_list_peer_rpa_get = 0x40001224; -r_lld_res_list_peer_update = 0x40001228; -r_lld_res_list_priv_mode_update = 0x4000122c; -r_lld_res_list_rem = 0x40001230; -r_lld_reset_reg = 0x40001234; -r_lld_rpa_renew = 0x40001238; -r_lld_rpa_renew_evt_canceled_cbk = 0x4000123c; -r_lld_rpa_renew_evt_start_cbk = 0x40001240; -r_lld_rpa_renew_instant_cbk = 0x40001244; -r_lld_rxdesc_check = 0x40001248; -r_lld_rxdesc_free = 0x4000124c; -r_lld_scan_create_sync = 0x40001250; -r_lld_scan_create_sync_cancel = 0x40001254; -r_lld_scan_end = 0x40001258; -r_lld_scan_evt_canceled_cbk = 0x4000125c; -r_lld_scan_evt_start_cbk = 0x40001260; -r_lld_scan_frm_cbk = 0x40001264; -r_lld_scan_frm_eof_isr = 0x40001268; -r_lld_scan_frm_rx_isr = 0x4000126c; -r_lld_scan_frm_skip_isr = 0x40001270; -r_lld_scan_init = 0x40001274; -r_lld_scan_params_update = 0x40001278; -r_lld_scan_process_pkt_rx = 0x4000127c; -r_lld_scan_process_pkt_rx_adv_rep = 0x40001280; -r_lld_scan_process_pkt_rx_aux_adv_ind = 0x40001284; -r_lld_scan_process_pkt_rx_aux_chain_ind = 0x40001288; -r_lld_scan_process_pkt_rx_aux_scan_rsp = 0x4000128c; -r_lld_scan_process_pkt_rx_ext_adv = 0x40001290; -r_lld_scan_process_pkt_rx_ext_adv_ind = 0x40001294; -r_lld_scan_process_pkt_rx_legacy_adv = 0x40001298; -r_lld_scan_restart = 0x4000129c; -r_lld_scan_sched = 0x400012a0; -r_lld_scan_set_tx_power = 0x400012a4; -r_lld_scan_start = 0x400012a8; -r_lld_scan_stop = 0x400012ac; -r_lld_scan_sync_accept = 0x400012b0; -r_lld_scan_sync_info_unpack = 0x400012b4; -r_lld_scan_trunc_ind = 0x400012b8; -r_lld_sw_cca_evt_handler = 0x400012bc; -r_lld_sw_cca_isr = 0x400012c0; -r_lld_sync_ch_map_update = 0x400012c4; -r_lld_sync_cleanup = 0x400012c8; -r_lld_sync_evt_canceled_cbk = 0x400012cc; -r_lld_sync_evt_start_cbk = 0x400012d0; -r_lld_sync_frm_cbk = 0x400012d4; -r_lld_sync_frm_eof_isr = 0x400012d8; -r_lld_sync_frm_rx_isr = 0x400012dc; -r_lld_sync_frm_skip_isr = 0x400012e0; -r_lld_sync_init = 0x400012e4; -r_lld_sync_process_pkt_rx = 0x400012e8; -r_lld_sync_process_pkt_rx_aux_sync_ind = 0x400012ec; -r_lld_sync_process_pkt_rx_pkt_check = 0x400012f0; -r_lld_sync_scan_dynamic_pti_process = 0x400012f4; -r_lld_sync_sched = 0x400012f8; -r_lld_sync_start = 0x400012fc; -r_lld_sync_stop = 0x40001300; -r_lld_sync_trunc_ind = 0x40001304; -r_lld_test_cleanup = 0x40001308; -r_lld_test_evt_canceled_cbk = 0x4000130c; -r_lld_test_evt_start_cbk = 0x40001310; -r_lld_test_freq2chnl = 0x40001314; -r_lld_test_frm_cbk = 0x40001318; -r_lld_test_frm_isr = 0x4000131c; -r_lld_test_init = 0x40001320; -r_lld_test_rx_isr = 0x40001324; -r_lld_test_set_tx_power = 0x40001328; -r_lld_test_start = 0x4000132c; -r_lld_test_stop = 0x40001330; -r_lld_update_rxbuf = 0x40001334; -r_lld_update_rxbuf_isr = 0x40001338; -r_lld_white_list_add = 0x4000133c; -r_lld_white_list_rem = 0x40001340; -r_llm_activity_free_get = 0x40001344; -r_llm_activity_free_set = 0x40001348; -r_llm_activity_syncing_get = 0x4000134c; -r_llm_adv_con_len_check = 0x40001350; -r_llm_adv_hdl_to_id = 0x40001354; -r_llm_adv_rep_flow_control_check = 0x40001358; -r_llm_adv_rep_flow_control_update = 0x4000135c; -r_llm_adv_reports_list_check = 0x40001360; -r_llm_adv_set_all_release = 0x40001364; -r_llm_adv_set_dft_params = 0x40001368; -r_llm_adv_set_release = 0x4000136c; -r_llm_aes_res_cb = 0x40001370; -r_llm_ble_update_adv_flow_control = 0x40001374; -r_llm_ch_map_update = 0x40001378; -r_llm_cmd_cmp_send = 0x4000137c; -r_llm_cmd_stat_send = 0x40001380; -r_llm_dev_list_empty_entry = 0x40001384; -r_llm_dev_list_search = 0x40001388; -r_llm_env_adv_dup_filt_deinit = 0x4000138c; -r_llm_env_adv_dup_filt_init = 0x40001390; -r_llm_init_ble_adv_report_flow_contol = 0x40001394; -r_llm_is_dev_connected = 0x40001398; -r_llm_is_dev_synced = 0x4000139c; -r_llm_is_non_con_act_ongoing_check = 0x400013a0; -r_llm_is_wl_accessible = 0x400013a4; -r_llm_le_evt_mask_check = 0x400013a8; -r_llm_le_features_get = 0x400013ac; -r_llm_link_disc = 0x400013b0; -r_llm_master_ch_map_get = 0x400013b4; -r_llm_msg_handler_tab_p_get = 0x400013b8; -r_llm_no_activity = 0x400013bc; -r_llm_per_adv_slot_dur = 0x400013c0; -r_llm_plan_elt_get = 0x400013c4; -r_llm_rx_path_comp_get = 0x400013c8; -r_llm_scan_start = 0x400013cc; -r_llm_scan_sync_acad_attach = 0x400013d0; -r_llm_scan_sync_acad_detach = 0x400013d4; -r_llm_send_adv_lost_event_to_host = 0x400013d8; -r_llm_tx_path_comp_get = 0x400013dc; -r_misc_deinit = 0x400013e0; -r_misc_free_em_buf_in_isr = 0x400013e4; -r_misc_init = 0x400013e8; -r_misc_msg_handler_tab_p_get = 0x400013ec; -r_notEqual256 = 0x400013f0; -r_phy_upd_proc_start = 0x400013f4; -r_platform_reset = 0x400013f8; -r_register_esp_vendor_cmd_handler = 0x400013fc; -r_rf_em_init = 0x40001400; -r_rf_force_agc_enable = 0x40001404; -r_rf_reg_rd = 0x40001408; -r_rf_reg_wr = 0x4000140c; -r_rf_reset = 0x40001410; -r_rf_rssi_convert = 0x40001414; -r_rf_rw_v9_le_disable = 0x40001418; -r_rf_rw_v9_le_enable = 0x4000141c; -r_rf_sleep = 0x40001420; -r_rf_txpwr_cs_get = 0x40001424; -r_rf_txpwr_dbm_get = 0x40001428; -r_rf_util_cs_fmt_convert = 0x4000142c; -r_rw_crypto_aes_ccm = 0x40001430; -r_rw_crypto_aes_encrypt = 0x40001434; -r_rw_crypto_aes_init = 0x40001438; -r_rw_crypto_aes_k1 = 0x4000143c; -r_rw_crypto_aes_k2 = 0x40001440; -r_rw_crypto_aes_k3 = 0x40001444; -r_rw_crypto_aes_k4 = 0x40001448; -r_rw_crypto_aes_rand = 0x4000144c; -r_rw_crypto_aes_result_handler = 0x40001450; -r_rw_crypto_aes_s1 = 0x40001454; -r_rw_cryto_aes_cmac = 0x40001458; -r_rw_v9_init_em_radio_table = 0x4000145c; -r_rwble_isr = 0x40001460; -r_rwble_sleep_enter = 0x40001464; -r_rwble_sleep_wakeup_end = 0x40001468; -r_rwbtdm_isr_wrapper = 0x4000146c; -r_rwip_active_check = 0x40001470; -r_rwip_aes_encrypt = 0x40001474; -r_rwip_assert = 0x40001478; -r_rwip_crypt_evt_handler = 0x4000147c; -r_rwip_crypt_isr_handler = 0x40001480; -r_rwip_eif_get = 0x40001484; -r_rwip_half_slot_2_lpcycles = 0x40001488; -r_rwip_hus_2_lpcycles = 0x4000148c; -r_rwip_isr = 0x40001490; -r_rwip_lpcycles_2_hus = 0x40001494; -r_rwip_prevent_sleep_clear = 0x40001498; -r_rwip_prevent_sleep_set = 0x4000149c; -r_rwip_schedule = 0x400014a0; -r_rwip_sleep = 0x400014a4; -r_rwip_sw_int_handler = 0x400014a8; -r_rwip_sw_int_req = 0x400014ac; -r_rwip_time_get = 0x400014b0; -r_rwip_timer_10ms_handler = 0x400014b4; -r_rwip_timer_10ms_set = 0x400014b8; -r_rwip_timer_hs_handler = 0x400014bc; -r_rwip_timer_hs_set = 0x400014c0; -r_rwip_timer_hus_handler = 0x400014c4; -r_rwip_timer_hus_set = 0x400014c8; -r_rwip_wakeup = 0x400014cc; -r_rwip_wakeup_end = 0x400014d0; -r_rwip_wlcoex_set = 0x400014d4; -r_sch_alarm_clear = 0x400014d8; -r_sch_alarm_init = 0x400014dc; -r_sch_alarm_prog = 0x400014e0; -r_sch_alarm_set = 0x400014e4; -r_sch_alarm_timer_isr = 0x400014e8; -r_sch_arb_conflict_check = 0x400014ec; -r_sch_arb_elt_cancel = 0x400014f0; -r_sch_arb_event_start_isr = 0x400014f4; -r_sch_arb_init = 0x400014f8; -r_sch_arb_insert = 0x400014fc; -r_sch_arb_prog_timer = 0x40001500; -r_sch_arb_remove = 0x40001504; -r_sch_arb_sw_isr = 0x40001508; -r_sch_plan_chk = 0x4000150c; -r_sch_plan_clock_wrap_offset_update = 0x40001510; -r_sch_plan_init = 0x40001514; -r_sch_plan_interval_req = 0x40001518; -r_sch_plan_offset_max_calc = 0x4000151c; -r_sch_plan_offset_req = 0x40001520; -r_sch_plan_position_range_compute = 0x40001524; -r_sch_plan_rem = 0x40001528; -r_sch_plan_req = 0x4000152c; -r_sch_plan_set = 0x40001530; -r_sch_prog_end_isr = 0x40001534; -r_sch_prog_init = 0x40001538; -r_sch_prog_push = 0x4000153c; -r_sch_prog_rx_isr = 0x40001540; -r_sch_prog_skip_isr = 0x40001544; -r_sch_prog_tx_isr = 0x40001548; -r_sch_slice_bg_add = 0x4000154c; -r_sch_slice_bg_remove = 0x40001550; -r_sch_slice_compute = 0x40001554; -r_sch_slice_fg_add = 0x40001558; -r_sch_slice_fg_remove = 0x4000155c; -r_sch_slice_init = 0x40001560; -r_sch_slice_per_add = 0x40001564; -r_sch_slice_per_remove = 0x40001568; -r_sdk_config_get_bt_sleep_enable = 0x4000156c; -r_sdk_config_get_hl_derived_opts = 0x40001570; -r_sdk_config_get_opts = 0x40001574; -r_sdk_config_get_priv_opts = 0x40001578; -r_sdk_config_set_bt_sleep_enable = 0x4000157c; -r_sdk_config_set_hl_derived_opts = 0x40001580; -r_sdk_config_set_opts = 0x40001584; -r_specialModP256 = 0x40001588; -r_unloaded_area_init = 0x4000158c; -r_vhci_flow_off = 0x40001590; -r_vhci_flow_on = 0x40001594; -r_vhci_notify_host_send_available = 0x40001598; -r_vhci_send_to_host = 0x4000159c; -r_vnd_hci_command_handler = 0x400015a0; -r_vshci_init = 0x400015a4; -vnd_hci_command_handler_wrapper = 0x400015a8; -/* Data (.data, .bss, .rodata) */ -bt_rf_coex_cfg_p = 0x3fcdffcc; -bt_rf_coex_hooks_p = 0x3fcdffc8; -btdm_env_p = 0x3fcdffc4; -g_rw_controller_task_handle = 0x3fcdffc0; -g_rw_init_sem = 0x3fcdffbc; -g_rw_schd_queue = 0x3fcdffb8; -lld_init_env = 0x3fcdffb4; -lld_rpa_renew_env = 0x3fcdffb0; -lld_scan_env = 0x3fcdffac; -lld_scan_sync_env = 0x3fcdffa8; -lld_test_env = 0x3fcdffa4; -p_ble_util_buf_env = 0x3fcdffa0; -p_lld_env = 0x3fcdff9c; -p_llm_env = 0x3fcdff98; -r_h4tl_eif_p = 0x3fcdff94; -r_hli_funcs_p = 0x3fcdff90; -r_ip_funcs_p = 0x3fcdff8c; -r_modules_funcs_p = 0x3fcdff88; -r_osi_funcs_p = 0x3fcdff84; -r_plf_funcs_p = 0x3fcdff80; -vhci_env_p = 0x3fcdff7c; -aa_gen = 0x3fcdff78; -aes_env = 0x3fcdff6c; -bt_rf_coex_cfg_cb = 0x3fcdff1c; -btdm_pwr_state = 0x3fcdff18; -btdm_slp_err = 0x3fcdff14; -ecc_env = 0x3fcdff0c; -esp_handler = 0x3fcdff04; -esp_vendor_cmd = 0x3fcdfefc; -g_adv_delay_dis = 0x3fcdfef8; -g_conflict_elt = 0x3fcdfef4; -g_eif_api = 0x3fcdfee4; -g_event_empty = 0x3fcdfed8; -g_llc_state = 0x3fcdfecc; -g_llm_state = 0x3fcdfec8; -g_max_evt_env = 0x3fcdfec4; -g_misc_state = 0x3fcdfec0; -g_rma_rule_db = 0x3fcdfea4; -g_rtp_rule_db = 0x3fcdfe88; -g_scan_forever = 0x3fcdfe85; -g_time_msb = 0x3fcdfe84; -h4tl_env = 0x3fcdfe5c; -hci_env = 0x3fcdfe38; -hci_ext_host = 0x3fcdfe34; -hci_fc_env = 0x3fcdfe2c; -hci_tl_env = 0x3fcdfe00; -ke_env = 0x3fcdfdd0; -ke_event_env = 0x3fcdfd90; -ke_task_env = 0x3fcdfd14; -llc_env = 0x3fcdfcec; -lld_adv_env = 0x3fcdfcc4; -lld_con_env = 0x3fcdfc9c; -lld_exp_sync_pos_tab = 0x3fcdfc94; -lld_per_adv_env = 0x3fcdfc6c; -lld_sync_env = 0x3fcdfc44; -llm_le_adv_flow_env = 0x3fcdfc38; -rw_sleep_enable = 0x3fcdfc34; -rwble_env = 0x3fcdfc2c; -rwip_env = 0x3fcdfc10; -rwip_param = 0x3fcdfc04; -rwip_prog_delay = 0x3fcdfc00; -rwip_rf = 0x3fcdfbc8; -sch_alarm_env = 0x3fcdfbc0; -sch_arb_env = 0x3fcdfbac; -sch_plan_env = 0x3fcdfba4; -sch_prog_env = 0x3fcdfaa0; -sch_slice_env = 0x3fcdfa40; -sch_slice_params = 0x3fcdfa38; -timer_env = 0x3fcdfa30; -unloaded_area = 0x3fcdfa2c; -vshci_state = 0x3fcdfa28; -TASK_DESC_LLC = 0x3fcdfa1c; -TASK_DESC_LLM = 0x3fcdfa10; -TASK_DESC_VSHCI = 0x3fcdfa04; -co_default_bdaddr = 0x3fcdf9fc; -dbg_assert_block = 0x3fcdf9f8; -g_bt_plf_log_level = 0x3fcdf9f4; -hci_cmd_desc_tab_vs_esp = 0x3fcdf9d0; -hci_command_handler_tab_esp = 0x3fcdf9b8; -privacy_en = 0x3fcdf9b4; -sdk_cfg_priv_opts = 0x3fcdf96c; -BasePoint_x_256 = 0x3ff1ffdc; -BasePoint_y_256 = 0x3ff1ffbc; -DebugE256PublicKey_x = 0x3ff1ff9c; -DebugE256PublicKey_y = 0x3ff1ff7c; -DebugE256SecretKey = 0x3ff1ff5c; -ECC_4Win_Look_up_table = 0x3ff1f7a0; -LLM_AA_CT1 = 0x3ff1f79c; -LLM_AA_CT2 = 0x3ff1f798; -RF_TX_PW_CONV_TBL = 0x3ff1f790; -TASK_DESC_MISC = 0x3ff1f784; -adv_evt_prop2type = 0x3ff1f768; -adv_evt_type2prop = 0x3ff1f760; -aes_cmac_zero = 0x3ff1f750; -aes_k2_salt = 0x3ff1f740; -aes_k3_id64 = 0x3ff1f738; -aes_k3_salt = 0x3ff1f728; -aes_k4_id6 = 0x3ff1f724; -aes_k4_salt = 0x3ff1f714; -bigHexP256 = 0x3ff1f6e8; -byte_tx_time = 0x3ff1f6e0; -co_null_bdaddr = 0x3ff1f6d8; -co_phy_mask_to_rate = 0x3ff1f6d0; -co_phy_mask_to_value = 0x3ff1f6c8; -co_phy_to_rate = 0x3ff1f6c4; -co_phy_value_to_mask = 0x3ff1f6c0; -co_rate_to_byte_dur_us = 0x3ff1f6b8; -co_rate_to_phy = 0x3ff1f6b0; -co_rate_to_phy_mask = 0x3ff1f6ac; -co_sca2ppm = 0x3ff1f69c; -coef_B = 0x3ff1f670; -connect_req_dur_tab = 0x3ff1f668; -ecc_Jacobian_InfinityPoint256 = 0x3ff1f5e4; -em_base_reg_lut = 0x3ff1f518; -fixed_tx_time = 0x3ff1f510; -h4tl_msgtype2hdrlen = 0x3ff1f508; -hci_cmd_desc_root_tab = 0x3ff1f4d8; -hci_cmd_desc_tab_ctrl_bb = 0x3ff1f46c; -hci_cmd_desc_tab_info_par = 0x3ff1f43c; -hci_cmd_desc_tab_le = 0x3ff1f0a0; -hci_cmd_desc_tab_lk_ctrl = 0x3ff1f088; -hci_cmd_desc_tab_stat_par = 0x3ff1f07c; -hci_cmd_desc_tab_vs = 0x3ff1f040; -hci_evt_desc_tab = 0x3ff1eff8; -hci_evt_le_desc_tab = 0x3ff1ef58; -hci_evt_le_desc_tab_esp = 0x3ff1ef50; -hci_rsvd_evt_msk = 0x3ff1ef48; -lld_aux_phy_to_rate = 0x3ff1ef44; -lld_init_max_aux_dur_tab = 0x3ff1ef3c; -lld_scan_map_legacy_pdu_to_evt_type = 0x3ff1ef34; -lld_scan_max_aux_dur_tab = 0x3ff1ef2c; -lld_sync_max_aux_dur_tab = 0x3ff1ef24; -llm_local_le_feats = 0x3ff1ef1c; -llm_local_le_states = 0x3ff1ef14; -llm_local_supp_cmds = 0x3ff1eeec; -maxSecretKey_256 = 0x3ff1eecc; -max_data_tx_time = 0x3ff1eec4; -one_bits = 0x3ff1eeb4; -rwip_coex_cfg = 0x3ff1eeac; -rwip_priority = 0x3ff1ee94; -veryBigHexP256 = 0x3ff1ee48; - - -/*************************************** - Group rom_pp - ***************************************/ - -/* Functions */ -esp_pp_rom_version_get = 0x400015ac; -RC_GetBlockAckTime = 0x400015b0; -ebuf_list_remove = 0x400015b4; -esf_buf_alloc = 0x400015b8; -esf_buf_alloc_dynamic = 0x400015bc; -esf_buf_recycle = 0x400015c0; -GetAccess = 0x400015c4; -hal_mac_is_low_rate_enabled = 0x400015c8; -hal_mac_tx_get_blockack = 0x400015cc; -hal_mac_tx_set_ppdu = 0x400015d0; -ic_get_trc = 0x400015d4; -ic_mac_deinit = 0x400015d8; -ic_mac_init = 0x400015dc; -ic_interface_enabled = 0x400015e0; -is_lmac_idle = 0x400015e4; -lmacAdjustTimestamp = 0x400015e8; -lmacDiscardAgedMSDU = 0x400015ec; -lmacDiscardMSDU = 0x400015f0; -lmacEndFrameExchangeSequence = 0x400015f4; -lmacIsIdle = 0x400015f8; -lmacIsLongFrame = 0x400015fc; -lmacMSDUAged = 0x40001600; -lmacPostTxComplete = 0x40001604; -lmacProcessAllTxTimeout = 0x40001608; -lmacProcessCollisions = 0x4000160c; -lmacProcessRxSucData = 0x40001610; -lmacReachLongLimit = 0x40001614; -lmacReachShortLimit = 0x40001618; -lmacRecycleMPDU = 0x4000161c; -lmacRxDone = 0x40001620; -lmacSetTxFrame = 0x40001624; -lmacTxDone = 0x40001628; -lmacTxFrame = 0x4000162c; -mac_tx_set_duration = 0x40001630; -mac_tx_set_htsig = 0x40001634; -mac_tx_set_plcp0 = 0x40001638; -mac_tx_set_plcp1 = 0x4000163c; -mac_tx_set_plcp2 = 0x40001640; -pm_check_state = 0x40001644; -pm_disable_dream_timer = 0x40001648; -pm_disable_sleep_delay_timer = 0x4000164c; -pm_dream = 0x40001650; -pm_mac_wakeup = 0x40001654; -pm_mac_sleep = 0x40001658; -pm_enable_active_timer = 0x4000165c; -pm_enable_sleep_delay_timer = 0x40001660; -pm_local_tsf_process = 0x40001664; -pm_set_beacon_filter = 0x40001668; -pm_is_in_wifi_slice_threshold = 0x4000166c; -pm_is_waked = 0x40001670; -pm_keep_alive = 0x40001674; -pm_on_beacon_rx = 0x40001678; -pm_on_data_rx = 0x4000167c; -pm_on_tbtt = 0x40001680; -pm_parse_beacon = 0x40001684; -pm_process_tim = 0x40001688; -pm_rx_beacon_process = 0x4000168c; -pm_rx_data_process = 0x40001690; -pm_sleep = 0x40001694; -pm_sleep_for = 0x40001698; -pm_tbtt_process = 0x4000169c; -ppAMPDU2Normal = 0x400016a0; -ppAssembleAMPDU = 0x400016a4; -ppCalFrameTimes = 0x400016a8; -ppCalSubFrameLength = 0x400016ac; -ppCalTxAMPDULength = 0x400016b0; -ppCheckTxAMPDUlength = 0x400016b4; -ppDequeueRxq_Locked = 0x400016b8; -ppDequeueTxQ = 0x400016bc; -ppEmptyDelimiterLength = 0x400016c0; -ppEnqueueRxq = 0x400016c4; -ppEnqueueTxDone = 0x400016c8; -ppGetTxQFirstAvail_Locked = 0x400016cc; -ppGetTxframe = 0x400016d0; -ppMapTxQueue = 0x400016d4; -ppProcTxSecFrame = 0x400016d8; -ppProcessRxPktHdr = 0x400016dc; -ppProcessTxQ = 0x400016e0; -ppRecordBarRRC = 0x400016e4; -lmacRequestTxopQueue = 0x400016e8; -lmacReleaseTxopQueue = 0x400016ec; -ppRecycleAmpdu = 0x400016f0; -ppRecycleRxPkt = 0x400016f4; -ppResortTxAMPDU = 0x400016f8; -ppResumeTxAMPDU = 0x400016fc; -ppRxFragmentProc = 0x40001700; -ppRxPkt = 0x40001704; -ppRxProtoProc = 0x40001708; -ppSearchTxQueue = 0x4000170c; -ppSearchTxframe = 0x40001710; -ppSelectNextQueue = 0x40001714; -ppSubFromAMPDU = 0x40001718; -ppTask = 0x4000171c; -ppTxPkt = 0x40001720; -ppTxProtoProc = 0x40001724; -ppTxqUpdateBitmap = 0x40001728; -pp_coex_tx_request = 0x4000172c; -pp_hdrsize = 0x40001730; -pp_post = 0x40001734; -pp_process_hmac_waiting_txq = 0x40001738; -rcGetAmpduSched = 0x4000173c; -rcUpdateRxDone = 0x40001740; -rc_get_trc = 0x40001744; -rc_get_trc_by_index = 0x40001748; -rcAmpduLowerRate = 0x4000174c; -rcampduuprate = 0x40001750; -rcClearCurAMPDUSched = 0x40001754; -rcClearCurSched = 0x40001758; -rcClearCurStat = 0x4000175c; -rcGetSched = 0x40001760; -rcLowerSched = 0x40001764; -rcSetTxAmpduLimit = 0x40001768; -rcTxUpdatePer = 0x4000176c; -rcUpdateAckSnr = 0x40001770; -rcUpdateRate = 0x40001774; -rcUpdateTxDone = 0x40001778; -rcUpdateTxDoneAmpdu2 = 0x4000177c; -rcUpSched = 0x40001780; -rssi_margin = 0x40001784; -rx11NRate2AMPDULimit = 0x40001788; -TRC_AMPDU_PER_DOWN_THRESHOLD = 0x4000178c; -TRC_AMPDU_PER_UP_THRESHOLD = 0x40001790; -trc_calc_duration = 0x40001794; -trc_isTxAmpduOperational = 0x40001798; -trc_onAmpduOp = 0x4000179c; -TRC_PER_IS_GOOD = 0x400017a0; -trc_SetTxAmpduState = 0x400017a4; -trc_tid_isTxAmpduOperational = 0x400017a8; -trcAmpduSetState = 0x400017ac; -wDevCheckBlockError = 0x400017b0; -wDev_AppendRxBlocks = 0x400017b4; -wDev_DiscardFrame = 0x400017b8; -wDev_GetNoiseFloor = 0x400017bc; -wDev_IndicateAmpdu = 0x400017c0; -wDev_IndicateFrame = 0x400017c4; -wdev_bank_store = 0x400017c8; -wdev_bank_load = 0x400017cc; -wdev_mac_reg_load = 0x400017d0; -wdev_mac_reg_store = 0x400017d4; -wdev_mac_special_reg_load = 0x400017d8; -wdev_mac_special_reg_store = 0x400017dc; -wdev_mac_wakeup = 0x400017e0; -wdev_mac_sleep = 0x400017e4; -hal_mac_is_dma_enable = 0x400017e8; -wDev_ProcessFiq = 0x400017ec; -wDev_ProcessRxSucData = 0x400017f0; -wdevProcessRxSucDataAll = 0x400017f4; -wdev_csi_len_align = 0x400017f8; -ppDequeueTxDone_Locked = 0x400017fc; -ppProcTxDone = 0x40001800; -pm_tx_data_done_process = 0x40001804; -config_is_cache_tx_buf_enabled = 0x40001808; -ppMapWaitTxq = 0x4000180c; -ppProcessWaitingQueue = 0x40001810; -ppDisableQueue = 0x40001814; -pm_allow_tx = 0x40001818; -/* Data (.data, .bss, .rodata) */ -our_instances_ptr = 0x3ff1ee44; -pTxRx = 0x3fcdf968; -lmacConfMib_ptr = 0x3fcdf964; -our_wait_eb = 0x3fcdf960; -our_tx_eb = 0x3fcdf95c; -pp_wdev_funcs = 0x3fcdf958; -g_osi_funcs_p = 0x3fcdf954; -wDevCtrl_ptr = 0x3fcdf950; -g_wdev_last_desc_reset_ptr = 0x3ff1ee40; -wDevMacSleep_ptr = 0x3fcdf94c; -g_lmac_cnt_ptr = 0x3fcdf948; -our_controls_ptr = 0x3ff1ee3c; -pp_sig_cnt_ptr = 0x3fcdf944; -g_eb_list_desc_ptr = 0x3fcdf940; -s_fragment_ptr = 0x3fcdf93c; -if_ctrl_ptr = 0x3fcdf938; -g_intr_lock_mux = 0x3fcdf934; -g_wifi_global_lock = 0x3fcdf930; -s_wifi_queue = 0x3fcdf92c; -pp_task_hdl = 0x3fcdf928; -s_pp_task_create_sem = 0x3fcdf924; -s_pp_task_del_sem = 0x3fcdf920; -g_wifi_menuconfig_ptr = 0x3fcdf91c; -xphyQueue = 0x3fcdf918; -ap_no_lr_ptr = 0x3fcdf914; -rc11BSchedTbl_ptr = 0x3fcdf910; -rc11NSchedTbl_ptr = 0x3fcdf90c; -rcLoRaSchedTbl_ptr = 0x3fcdf908; -BasicOFDMSched_ptr = 0x3fcdf904; -trc_ctl_ptr = 0x3fcdf900; -g_pm_cnt_ptr = 0x3fcdf8fc; -g_pm_ptr = 0x3fcdf8f8; -g_pm_cfg_ptr = 0x3fcdf8f4; -g_esp_mesh_quick_funcs_ptr = 0x3fcdf8f0; -g_txop_queue_status_ptr = 0x3fcdf8ec; -g_mac_sleep_en_ptr = 0x3fcdf8e8; -g_mesh_is_root_ptr = 0x3fcdf8e4; -g_mesh_topology_ptr = 0x3fcdf8e0; -g_mesh_init_ps_type_ptr = 0x3fcdf8dc; -g_mesh_is_started_ptr = 0x3fcdf8d8; -g_config_func = 0x3fcdf8d4; -g_net80211_tx_func = 0x3fcdf8d0; -g_timer_func = 0x3fcdf8cc; -s_michael_mic_failure_cb = 0x3fcdf8c8; -wifi_sta_rx_probe_req = 0x3fcdf8c4; -g_tx_done_cb_func = 0x3fcdf8c0; -g_per_conn_trc = 0x3fcdf874; -s_encap_amsdu_func = 0x3fcdf870; - - -/*************************************** - Group rom_net80211 - ***************************************/ - -/* Functions */ -esp_net80211_rom_version_get = 0x4000181c; -ampdu_dispatch = 0x40001820; -ampdu_dispatch_all = 0x40001824; -ampdu_dispatch_as_many_as_possible = 0x40001828; -ampdu_dispatch_movement = 0x4000182c; -ampdu_dispatch_upto = 0x40001830; -chm_is_at_home_channel = 0x40001834; -cnx_node_is_existing = 0x40001838; -cnx_node_search = 0x4000183c; -ic_ebuf_recycle_rx = 0x40001840; -ic_ebuf_recycle_tx = 0x40001844; -ic_reset_rx_ba = 0x40001848; -ieee80211_align_eb = 0x4000184c; -ieee80211_ampdu_reorder = 0x40001850; -ieee80211_ampdu_start_age_timer = 0x40001854; -ieee80211_encap_esfbuf = 0x40001858; -ieee80211_is_tx_allowed = 0x4000185c; -ieee80211_output_pending_eb = 0x40001860; -ieee80211_output_process = 0x40001864; -ieee80211_set_tx_desc = 0x40001868; -sta_input = 0x4000186c; -wifi_get_macaddr = 0x40001870; -wifi_rf_phy_disable = 0x40001874; -wifi_rf_phy_enable = 0x40001878; -ic_ebuf_alloc = 0x4000187c; -ieee80211_classify = 0x40001880; -ieee80211_copy_eb_header = 0x40001884; -ieee80211_recycle_cache_eb = 0x40001888; -ieee80211_search_node = 0x4000188c; -roundup2 = 0x40001890; -ieee80211_crypto_encap = 0x40001894; -ieee80211_crypto_decap = 0x40001898; -ieee80211_decap = 0x4000189c; -ieee80211_set_tx_pti = 0x400018a0; -wifi_is_started = 0x400018a4; -/* Data (.data, .bss, .rodata) */ -net80211_funcs = 0x3fcdf86c; -g_scan = 0x3fcdf868; -g_chm = 0x3fcdf864; -g_ic_ptr = 0x3fcdf860; -g_hmac_cnt_ptr = 0x3fcdf85c; -g_tx_cacheq_ptr = 0x3fcdf858; -s_netstack_free = 0x3fcdf854; -mesh_rxcb = 0x3fcdf850; -sta_rxcb = 0x3fcdf84c; - - -/*************************************** - Group rom_coexist - ***************************************/ - -/* Functions */ -esp_coex_rom_version_get = 0x400018a8; -coex_bt_release = 0x400018ac; -coex_bt_request = 0x400018b0; -coex_core_ble_conn_dyn_prio_get = 0x400018b4; -coex_core_event_duration_get = 0x400018b8; -coex_core_pti_get = 0x400018bc; -coex_core_release = 0x400018c0; -coex_core_request = 0x400018c4; -coex_core_status_get = 0x400018c8; -coex_core_timer_idx_get = 0x400018cc; -coex_event_duration_get = 0x400018d0; -coex_hw_timer_disable = 0x400018d4; -coex_hw_timer_enable = 0x400018d8; -coex_hw_timer_set = 0x400018dc; -coex_schm_interval_set = 0x400018e0; -coex_schm_lock = 0x400018e4; -coex_schm_unlock = 0x400018e8; -coex_status_get = 0x400018ec; -coex_wifi_release = 0x400018f0; -esp_coex_ble_conn_dynamic_prio_get = 0x400018f4; -/* Data (.data, .bss, .rodata) */ -coex_env_ptr = 0x3fcdf848; -coex_pti_tab_ptr = 0x3fcdf844; -coex_schm_env_ptr = 0x3fcdf840; -coexist_funcs = 0x3fcdf83c; -g_coa_funcs_p = 0x3fcdf838; -g_coex_param_ptr = 0x3fcdf834; - - -/*************************************** - Group rom_phy - ***************************************/ - -/* Functions */ -phy_get_romfuncs = 0x400018f8; -rom_abs_temp = 0x400018fc; -rom_bb_bss_cbw40_dig = 0x40001900; -rom_bb_wdg_test_en = 0x40001904; -rom_bb_wdt_get_status = 0x40001908; -rom_bb_wdt_int_enable = 0x4000190c; -rom_bb_wdt_rst_enable = 0x40001910; -rom_bb_wdt_timeout_clear = 0x40001914; -rom_cbw2040_cfg = 0x40001918; -rom_check_noise_floor = 0x4000191c; -rom_chip_i2c_readReg = 0x40001920; -rom_chip_i2c_writeReg = 0x40001924; -rom_correct_rf_ana_gain = 0x40001928; -rom_dc_iq_est = 0x4000192c; -rom_disable_agc = 0x40001930; -rom_en_pwdet = 0x40001934; -rom_enable_agc = 0x40001938; -rom_get_bbgain_db = 0x4000193c; -rom_get_data_sat = 0x40001940; -rom_get_i2c_read_mask = 0x40001944; -rom_get_pwctrl_correct = 0x40001948; -rom_get_rf_gain_qdb = 0x4000194c; -rom_i2c_readReg = 0x40001950; -rom_i2c_readReg_Mask = 0x40001954; -rom_i2c_writeReg = 0x40001958; -rom_i2c_writeReg_Mask = 0x4000195c; -rom_index_to_txbbgain = 0x40001960; -rom_iq_est_disable = 0x40001964; -rom_iq_est_enable = 0x40001968; -rom_linear_to_db = 0x4000196c; -rom_loopback_mode_en = 0x40001970; -rom_mhz2ieee = 0x40001974; -rom_noise_floor_auto_set = 0x40001978; -rom_pbus_debugmode = 0x4000197c; -rom_pbus_force_mode = 0x40001980; -rom_pbus_force_test = 0x40001984; -rom_pbus_rd = 0x40001988; -rom_pbus_rd_addr = 0x4000198c; -rom_pbus_rd_shift = 0x40001990; -rom_pbus_set_dco = 0x40001994; -rom_pbus_set_rxgain = 0x40001998; -rom_pbus_workmode = 0x4000199c; -rom_pbus_xpd_rx_off = 0x400019a0; -rom_pbus_xpd_rx_on = 0x400019a4; -rom_pbus_xpd_tx_off = 0x400019a8; -rom_pbus_xpd_tx_on = 0x400019ac; -rom_phy_byte_to_word = 0x400019b0; -rom_phy_disable_cca = 0x400019b4; -rom_phy_enable_cca = 0x400019b8; -rom_phy_get_noisefloor = 0x400019bc; -rom_phy_get_rx_freq = 0x400019c0; -rom_phy_set_bbfreq_init = 0x400019c4; -rom_pow_usr = 0x400019c8; -rom_pwdet_sar2_init = 0x400019cc; -rom_read_hw_noisefloor = 0x400019d0; -rom_read_sar_dout = 0x400019d4; -rom_set_cal_rxdc = 0x400019d8; -rom_set_chan_cal_interp = 0x400019dc; -rom_set_loopback_gain = 0x400019e0; -rom_set_noise_floor = 0x400019e4; -rom_set_rxclk_en = 0x400019e8; -rom_set_tx_dig_gain = 0x400019ec; -rom_set_txcap_reg = 0x400019f0; -rom_set_txclk_en = 0x400019f4; -rom_spur_cal = 0x400019f8; -rom_spur_reg_write_one_tone = 0x400019fc; -rom_target_power_add_backoff = 0x40001a00; -rom_tx_pwctrl_bg_init = 0x40001a04; -rom_txbbgain_to_index = 0x40001a08; -rom_wifi_11g_rate_chg = 0x40001a0c; -rom_write_gain_mem = 0x40001a10; -chip726_phyrom_version = 0x40001a14; -rom_disable_wifi_agc = 0x40001a18; -rom_enable_wifi_agc = 0x40001a1c; -rom_set_tx_gain_table = 0x40001a20; -rom_bt_index_to_bb = 0x40001a24; -rom_bt_bb_to_index = 0x40001a28; -rom_wr_bt_tx_atten = 0x40001a2c; -rom_wr_bt_tx_gain_mem = 0x40001a30; -rom_spur_coef_cfg = 0x40001a34; -rom_bb_bss_cbw40 = 0x40001a38; -rom_set_cca = 0x40001a3c; -rom_tx_paon_set = 0x40001a40; -rom_i2cmst_reg_init = 0x40001a44; -rom_iq_corr_enable = 0x40001a48; -rom_fe_reg_init = 0x40001a4c; -rom_agc_reg_init = 0x40001a50; -rom_bb_reg_init = 0x40001a54; -rom_mac_enable_bb = 0x40001a58; -rom_bb_wdg_cfg = 0x40001a5c; -rom_force_txon = 0x40001a60; -rom_fe_txrx_reset = 0x40001a64; -rom_set_rx_comp = 0x40001a68; -rom_set_pbus_reg = 0x40001a6c; -rom_write_chan_freq = 0x40001a70; -rom_phy_xpd_rf = 0x40001a74; -rom_set_xpd_sar = 0x40001a78; -rom_write_dac_gain2 = 0x40001a7c; -rom_rtc_sar2_init = 0x40001a80; -rom_get_target_power_offset = 0x40001a84; -rom_write_txrate_power_offset = 0x40001a88; -rom_get_rate_fcc_index = 0x40001a8c; -rom_get_rate_target_power = 0x40001a90; -rom_write_wifi_dig_gain = 0x40001a94; -rom_bt_correct_rf_ana_gain = 0x40001a98; -rom_pkdet_vol_start = 0x40001a9c; -rom_read_sar2_code = 0x40001aa0; -rom_get_sar2_vol = 0x40001aa4; -rom_get_pll_vol = 0x40001aa8; -rom_get_phy_target_power = 0x40001aac; -rom_temp_to_power = 0x40001ab0; -rom_phy_track_pll_cap = 0x40001ab4; -rom_phy_pwdet_always_en = 0x40001ab8; -rom_phy_pwdet_onetime_en = 0x40001abc; -rom_get_i2c_mst0_mask = 0x40001ac0; -rom_get_i2c_hostid = 0x40001ac4; -rom_enter_critical_phy = 0x40001ac8; -rom_exit_critical_phy = 0x40001acc; -rom_chip_i2c_readReg_org = 0x40001ad0; -rom_i2c_paral_set_mst0 = 0x40001ad4; -rom_i2c_paral_set_read = 0x40001ad8; -rom_i2c_paral_read = 0x40001adc; -rom_i2c_paral_write = 0x40001ae0; -rom_i2c_paral_write_num = 0x40001ae4; -rom_i2c_paral_write_mask = 0x40001ae8; -rom_bb_bss_cbw40_ana = 0x40001aec; -rom_chan_to_freq = 0x40001af0; -rom_open_i2c_xpd = 0x40001af4; -rom_dac_rate_set = 0x40001af8; -rom_tsens_read_init = 0x40001afc; -rom_tsens_code_read = 0x40001b00; -rom_tsens_index_to_dac = 0x40001b04; -rom_tsens_index_to_offset = 0x40001b08; -rom_tsens_dac_cal = 0x40001b0c; -rom_code_to_temp = 0x40001b10; -rom_write_pll_cap_mem = 0x40001b14; -rom_pll_correct_dcap = 0x40001b18; -rom_phy_en_hw_set_freq = 0x40001b1c; -rom_phy_dis_hw_set_freq = 0x40001b20; -rom_pll_vol_cal = 0x40001b24; - diff --git a/flasher_stub/ld/rom_32h2.ld b/flasher_stub/ld/rom_32h2.ld deleted file mode 100755 index accb0adcf..000000000 --- a/flasher_stub/ld/rom_32h2.ld +++ /dev/null @@ -1,428 +0,0 @@ -/* ROM function interface esp32h2.rom.ld for esp32h2 - * - * - * Generated from ./target/esp32h2/interface-esp32h2.yml md5sum c0ad4e113e5b29bb9d799f10f03edbc1 - * - * Compatible with ROM where ECO version equal or greater to 0. - * - * THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT. - */ - -/*************************************** - Group common - ***************************************/ - -PROVIDE ( SPIWrite = esp_rom_spiflash_write); -PROVIDE ( SPI_read_status_high = esp_rom_spiflash_read_statushigh); -PROVIDE ( SPI_write_status = esp_rom_spiflash_write_status); -PROVIDE ( SPIRead = esp_rom_spiflash_read); -PROVIDE ( SPIParamCfg = esp_rom_spiflash_config_param); -PROVIDE ( SPIEraseChip = esp_rom_spiflash_erase_chip); -PROVIDE ( SPIEraseSector = esp_rom_spiflash_erase_sector); -PROVIDE ( SPIEraseBlock = esp_rom_spiflash_erase_block); -PROVIDE ( SPI_Write_Encrypt_Enable = esp_rom_spiflash_write_encrypted_enable); -PROVIDE ( SPI_Write_Encrypt_Disable = esp_rom_spiflash_write_encrypted_disable); -PROVIDE ( SPI_Encrypt_Write = esp_rom_spiflash_write_encrypted); - -/*************************************** - Group common - ***************************************/ - -/* Functions */ -rtc_get_reset_reason = 0x40000018; -analog_super_wdt_reset_happened = 0x4000001c; -rtc_get_wakeup_cause = 0x40000020; -rtc_unhold_all_pads = 0x40000024; -ets_printf = 0x40000028; -ets_install_putc1 = 0x4000002c; -ets_install_putc2 = 0x40000030; -ets_install_uart_printf = 0x40000034; -ets_install_usb_printf = 0x40000038; -ets_get_printf_channel = 0x4000003c; -ets_delay_us = 0x40000040; -ets_get_cpu_frequency = 0x40000044; -ets_update_cpu_frequency = 0x40000048; -ets_install_lock = 0x4000004c; -UartRxString = 0x40000050; -UartGetCmdLn = 0x40000054; -uart_tx_one_char = 0x40000058; -uart_tx_one_char2 = 0x4000005c; -uart_rx_one_char = 0x40000060; -uart_rx_one_char_block = 0x40000064; -uart_rx_intr_handler = 0x40000068; -uart_rx_readbuff = 0x4000006c; -uartAttach = 0x40000070; -uart_tx_flush = 0x40000074; -uart_tx_wait_idle = 0x40000078; -uart_div_modify = 0x4000007c; -ets_write_char_uart = 0x40000080; -uart_tx_switch = 0x40000084; -roundup2 = 0x40000088; -multofup = 0x4000008c; -software_reset = 0x40000090; -software_reset_cpu = 0x40000094; -ets_clk_assist_debug_clock_enable = 0x40000098; -clear_super_wdt_reset_flag = 0x4000009c; -disable_default_watchdog = 0x400000a0; -esp_rom_set_rtc_wake_addr = 0x400000a4; -esp_rom_get_rtc_wake_addr = 0x400000a8; -send_packet = 0x400000ac; -recv_packet = 0x400000b0; -GetUartDevice = 0x400000b4; -UartDwnLdProc = 0x400000b8; -GetSecurityInfoProc = 0x400000bc; -Uart_Init = 0x400000c0; -ets_set_user_start = 0x400000c4; -/* Data (.data, .bss, .rodata) */ -ets_rom_layout_p = 0x4001fffc; -ets_ops_table_ptr = 0x4084fff8; -g_saved_pc = 0x4084fffc; - - -/*************************************** - Group miniz - ***************************************/ - -/* Functions */ -mz_adler32 = 0x400000c8; -mz_free = 0x400000cc; -tdefl_compress = 0x400000d0; -tdefl_compress_buffer = 0x400000d4; -tdefl_compress_mem_to_heap = 0x400000d8; -tdefl_compress_mem_to_mem = 0x400000dc; -tdefl_compress_mem_to_output = 0x400000e0; -tdefl_get_adler32 = 0x400000e4; -tdefl_get_prev_return_status = 0x400000e8; -tdefl_init = 0x400000ec; -tdefl_write_image_to_png_file_in_memory = 0x400000f0; -tdefl_write_image_to_png_file_in_memory_ex = 0x400000f4; -tinfl_decompress = 0x400000f8; -tinfl_decompress_mem_to_callback = 0x400000fc; -tinfl_decompress_mem_to_heap = 0x40000100; -tinfl_decompress_mem_to_mem = 0x40000104; - - -/*************************************** - Group spiflash_legacy - ***************************************/ - -/* Functions */ -esp_rom_spiflash_wait_idle = 0x40000108; -esp_rom_spiflash_write_encrypted = 0x4000010c; -esp_rom_spiflash_write_encrypted_dest = 0x40000110; -esp_rom_spiflash_write_encrypted_enable = 0x40000114; -esp_rom_spiflash_write_encrypted_disable = 0x40000118; -esp_rom_spiflash_erase_chip = 0x4000011c; -_esp_rom_spiflash_erase_sector = 0x40000120; -_esp_rom_spiflash_erase_block = 0x40000124; -_esp_rom_spiflash_write = 0x40000128; -_esp_rom_spiflash_read = 0x4000012c; -_esp_rom_spiflash_unlock = 0x40000130; -_SPIEraseArea = 0x40000134; -_SPI_write_enable = 0x40000138; -esp_rom_spiflash_erase_sector = 0x4000013c; -esp_rom_spiflash_erase_block = 0x40000140; -esp_rom_spiflash_write = 0x40000144; -esp_rom_spiflash_read = 0x40000148; -esp_rom_spiflash_unlock = 0x4000014c; -SPIEraseArea = 0x40000150; -SPI_write_enable = 0x40000154; -esp_rom_spiflash_config_param = 0x40000158; -esp_rom_spiflash_read_user_cmd = 0x4000015c; -esp_rom_spiflash_select_qio_pins = 0x40000160; -esp_rom_spi_flash_auto_sus_res = 0x40000164; -esp_rom_spi_flash_send_resume = 0x40000168; -esp_rom_spi_flash_update_id = 0x4000016c; -esp_rom_spiflash_config_clk = 0x40000170; -esp_rom_spiflash_config_readmode = 0x40000174; -esp_rom_spiflash_read_status = 0x40000178; -esp_rom_spiflash_read_statushigh = 0x4000017c; -esp_rom_spiflash_write_status = 0x40000180; -spi_cache_mode_switch = 0x40000184; -spi_common_set_dummy_output = 0x40000188; -spi_common_set_flash_cs_timing = 0x4000018c; -esp_rom_spi_set_address_bit_len = 0x40000190; -SPILock = 0x40000194; -SPIMasterReadModeCnfig = 0x40000198; -SPI_Common_Command = 0x4000019c; -SPI_WakeUp = 0x400001a0; -SPI_block_erase = 0x400001a4; -SPI_chip_erase = 0x400001a8; -SPI_init = 0x400001ac; -SPI_page_program = 0x400001b0; -SPI_read_data = 0x400001b4; -SPI_sector_erase = 0x400001b8; -SelectSpiFunction = 0x400001bc; -SetSpiDrvs = 0x400001c0; -Wait_SPI_Idle = 0x400001c4; -spi_dummy_len_fix = 0x400001c8; -Disable_QMode = 0x400001cc; -Enable_QMode = 0x400001d0; -spi_flash_attach = 0x400001d4; -spi_flash_get_chip_size = 0x400001d8; -spi_flash_guard_set = 0x400001dc; -spi_flash_guard_get = 0x400001e0; -spi_flash_read_encrypted = 0x400001e4; -/* Data (.data, .bss, .rodata) */ -rom_spiflash_legacy_funcs = 0x4084fff0; -rom_spiflash_legacy_data = 0x4084ffec; -g_flash_guard_ops = 0x4084fff4; - - -/*************************************** - Group hal_wdt - ***************************************/ - -/* Functions */ -wdt_hal_init = 0x4000038c; -wdt_hal_deinit = 0x40000390; -wdt_hal_config_stage = 0x40000394; -wdt_hal_write_protect_disable = 0x40000398; -wdt_hal_write_protect_enable = 0x4000039c; -wdt_hal_enable = 0x400003a0; -wdt_hal_disable = 0x400003a4; -wdt_hal_handle_intr = 0x400003a8; -wdt_hal_feed = 0x400003ac; -wdt_hal_set_flashboot_en = 0x400003b0; -wdt_hal_is_enabled = 0x400003b4; - - -/*************************************** - Group hal_systimer - ***************************************/ - -/* Functions */ -systimer_hal_init = 0x400003b8; -systimer_hal_deinit = 0x400003bc; -systimer_hal_set_tick_rate_ops = 0x400003c0; -systimer_hal_get_counter_value = 0x400003c4; -systimer_hal_get_time = 0x400003c8; -systimer_hal_set_alarm_target = 0x400003cc; -systimer_hal_set_alarm_period = 0x400003d0; -systimer_hal_get_alarm_value = 0x400003d4; -systimer_hal_enable_alarm_int = 0x400003d8; -systimer_hal_on_apb_freq_update = 0x400003dc; -systimer_hal_counter_value_advance = 0x400003e0; -systimer_hal_enable_counter = 0x400003e4; -systimer_hal_select_alarm_mode = 0x400003e8; -systimer_hal_connect_alarm_counter = 0x400003ec; -systimer_hal_counter_can_stall_by_cpu = 0x400003f0; - - -/*************************************** - Group cache - ***************************************/ - -/* Functions */ -Cache_Get_ICache_Line_Size = 0x400005fc; -Cache_Get_Mode = 0x40000600; -Cache_Address_Through_Cache = 0x40000604; -ROM_Boot_Cache_Init = 0x40000608; -MMU_Set_Page_Mode = 0x4000060c; -MMU_Get_Page_Mode = 0x40000610; -Cache_Invalidate_ICache_Items = 0x40000614; -Cache_Op_Addr = 0x40000618; -Cache_Invalidate_Addr = 0x4000061c; -Cache_Invalidate_ICache_All = 0x40000620; -Cache_Mask_All = 0x40000624; -Cache_UnMask_Dram0 = 0x40000628; -Cache_Suspend_ICache_Autoload = 0x4000062c; -Cache_Resume_ICache_Autoload = 0x40000630; -Cache_Start_ICache_Preload = 0x40000634; -Cache_ICache_Preload_Done = 0x40000638; -Cache_End_ICache_Preload = 0x4000063c; -Cache_Config_ICache_Autoload = 0x40000640; -Cache_Enable_ICache_Autoload = 0x40000644; -Cache_Disable_ICache_Autoload = 0x40000648; -Cache_Enable_ICache_PreLock = 0x4000064c; -Cache_Disable_ICache_PreLock = 0x40000650; -Cache_Lock_ICache_Items = 0x40000654; -Cache_Unlock_ICache_Items = 0x40000658; -Cache_Lock_Addr = 0x4000065c; -Cache_Unlock_Addr = 0x40000660; -Cache_Disable_ICache = 0x40000664; -Cache_Enable_ICache = 0x40000668; -Cache_Suspend_ICache = 0x4000066c; -Cache_Resume_ICache = 0x40000670; -Cache_Freeze_ICache_Enable = 0x40000674; -Cache_Freeze_ICache_Disable = 0x40000678; -Cache_Set_IDROM_MMU_Size = 0x4000067c; -Cache_Get_IROM_MMU_End = 0x40000680; -Cache_Get_DROM_MMU_End = 0x40000684; -Cache_MMU_Init = 0x40000688; -Cache_MSPI_MMU_Set = 0x4000068c; -Cache_Travel_Tag_Memory = 0x40000690; -Cache_Get_Virtual_Addr = 0x40000694; -/* Data (.data, .bss, .rodata) */ -rom_cache_op_cb = 0x4084ffcc; -rom_cache_internal_table_ptr = 0x4084ffc8; - - -/*************************************** - Group clock - ***************************************/ - -/* Functions */ -ets_clk_get_xtal_freq = 0x40000698; -ets_clk_get_cpu_freq = 0x4000069c; - - -/*************************************** - Group gpio - ***************************************/ - -/* Functions */ -gpio_input_get = 0x400006a0; -gpio_matrix_in = 0x400006a4; -gpio_matrix_out = 0x400006a8; -gpio_output_disable = 0x400006ac; -gpio_output_enable = 0x400006b0; -gpio_output_set = 0x400006b4; -gpio_pad_hold = 0x400006b8; -gpio_pad_input_disable = 0x400006bc; -gpio_pad_input_enable = 0x400006c0; -gpio_pad_pulldown = 0x400006c4; -gpio_pad_pullup = 0x400006c8; -gpio_pad_select_gpio = 0x400006cc; -gpio_pad_set_drv = 0x400006d0; -gpio_pad_unhold = 0x400006d4; -gpio_pin_wakeup_disable = 0x400006d8; -gpio_pin_wakeup_enable = 0x400006dc; -gpio_bypass_matrix_in = 0x400006e0; - - -/*************************************** - Group interrupts - ***************************************/ - -/* Functions */ -esprv_intc_int_set_priority = 0x400006e4; -esprv_intc_int_set_threshold = 0x400006e8; -esprv_intc_int_enable = 0x400006ec; -esprv_intc_int_disable = 0x400006f0; -esprv_intc_int_set_type = 0x400006f4; -PROVIDE( intr_handler_set = 0x400006f8 ); -intr_matrix_set = 0x400006fc; -ets_intr_lock = 0x40000700; -ets_intr_unlock = 0x40000704; -ets_isr_attach = 0x40000708; -ets_isr_mask = 0x4000070c; -ets_isr_unmask = 0x40000710; - - -/*************************************** - Group crypto - ***************************************/ - -/* Functions */ -md5_vector = 0x40000714; -MD5Init = 0x40000718; -MD5Update = 0x4000071c; -MD5Final = 0x40000720; -crc32_le = 0x40000724; -crc16_le = 0x40000728; -crc8_le = 0x4000072c; -crc32_be = 0x40000730; -crc16_be = 0x40000734; -crc8_be = 0x40000738; -esp_crc8 = 0x4000073c; -ets_sha_enable = 0x40000740; -ets_sha_disable = 0x40000744; -ets_sha_get_state = 0x40000748; -ets_sha_init = 0x4000074c; -ets_sha_process = 0x40000750; -ets_sha_starts = 0x40000754; -ets_sha_update = 0x40000758; -ets_sha_finish = 0x4000075c; -ets_sha_clone = 0x40000760; -ets_hmac_enable = 0x40000764; -ets_hmac_disable = 0x40000768; -ets_hmac_calculate_message = 0x4000076c; -ets_hmac_calculate_downstream = 0x40000770; -ets_hmac_invalidate_downstream = 0x40000774; -ets_jtag_enable_temporarily = 0x40000778; -ets_aes_enable = 0x4000077c; -ets_aes_disable = 0x40000780; -ets_aes_setkey = 0x40000784; -ets_aes_block = 0x40000788; -ets_aes_setkey_dec = 0x4000078c; -ets_aes_setkey_enc = 0x40000790; -ets_bigint_enable = 0x40000794; -ets_bigint_disable = 0x40000798; -ets_bigint_multiply = 0x4000079c; -ets_bigint_modmult = 0x400007a0; -ets_bigint_modexp = 0x400007a4; -ets_bigint_wait_finish = 0x400007a8; -ets_bigint_getz = 0x400007ac; -ets_ds_enable = 0x400007b0; -ets_ds_disable = 0x400007b4; -ets_ds_start_sign = 0x400007b8; -ets_ds_is_busy = 0x400007bc; -ets_ds_finish_sign = 0x400007c0; -ets_ds_encrypt_params = 0x400007c4; -ets_mgf1_sha256 = 0x400007c8; -/* Data (.data, .bss, .rodata) */ -crc32_le_table_ptr = 0x4001fff8; -crc16_le_table_ptr = 0x4001fff4; -crc8_le_table_ptr = 0x4001fff0; -crc32_be_table_ptr = 0x4001ffec; -crc16_be_table_ptr = 0x4001ffe8; -crc8_be_table_ptr = 0x4001ffe4; - - -/*************************************** - Group efuse - ***************************************/ - -/* Functions */ -ets_efuse_read = 0x400007cc; -ets_efuse_program = 0x400007d0; -ets_efuse_clear_program_registers = 0x400007d4; -ets_efuse_write_key = 0x400007d8; -ets_efuse_get_read_register_address = 0x400007dc; -ets_efuse_get_key_purpose = 0x400007e0; -ets_efuse_key_block_unused = 0x400007e4; -ets_efuse_find_unused_key_block = 0x400007e8; -ets_efuse_rs_calculate = 0x400007ec; -ets_efuse_count_unused_key_blocks = 0x400007f0; -ets_efuse_secure_boot_enabled = 0x400007f4; -ets_efuse_secure_boot_aggressive_revoke_enabled = 0x400007f8; -ets_efuse_cache_encryption_enabled = 0x400007fc; -ets_efuse_download_modes_disabled = 0x40000800; -ets_efuse_find_purpose = 0x40000804; -ets_efuse_force_send_resume = 0x40000808; -ets_efuse_get_flash_delay_us = 0x4000080c; -ets_efuse_get_mac = 0x40000810; -ets_efuse_get_uart_print_control = 0x40000814; -ets_efuse_direct_boot_mode_disabled = 0x40000818; -ets_efuse_security_download_modes_enabled = 0x4000081c; -ets_efuse_jtag_disabled = 0x40000820; -ets_efuse_usb_print_is_disabled = 0x40000824; -ets_efuse_usb_download_mode_disabled = 0x40000828; -ets_efuse_usb_device_disabled = 0x4000082c; -ets_efuse_secure_boot_fast_wake_enabled = 0x40000830; - - -/*************************************** - Group secureboot - ***************************************/ - -/* Functions */ -ets_emsa_pss_verify = 0x40000834; -ets_rsa_pss_verify = 0x40000838; -ets_ecdsa_verify = 0x4000083c; -ets_secure_boot_verify_bootloader_with_keys = 0x40000840; -ets_secure_boot_verify_signature = 0x40000844; -ets_secure_boot_read_key_digests = 0x40000848; -ets_secure_boot_revoke_public_key_digest = 0x4000084c; - - -/*************************************** - Group usb_device_uart - ***************************************/ - -/* Functions */ -usb_serial_device_rx_one_char = 0x400009c0; -usb_serial_device_rx_one_char_block = 0x400009c4; -usb_serial_device_tx_flush = 0x400009c8; -usb_serial_device_tx_one_char = 0x400009cc; diff --git a/flasher_stub/ld/rom_32h2_beta_1.ld b/flasher_stub/ld/rom_32h2_beta_1.ld deleted file mode 100644 index f05eed212..000000000 --- a/flasher_stub/ld/rom_32h2_beta_1.ld +++ /dev/null @@ -1,731 +0,0 @@ -/* ROM function interface esp32h2.rom.ld for esp32h2 - * - * - * Generated from ./interface-esp32b1z.yml md5sum a8cce65aa1422e5781ad0d729ef0a0a6 - * - * Compatible with ROM where ECO version equal or greater to 0. - * - * THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT. - */ - - -PROVIDE ( SPIWrite = esp_rom_spiflash_write); -PROVIDE ( SPI_read_status_high = esp_rom_spiflash_read_statushigh); -PROVIDE ( SPI_write_status = esp_rom_spiflash_write_status); -PROVIDE ( SPIRead = esp_rom_spiflash_read); -PROVIDE ( SPIParamCfg = esp_rom_spiflash_config_param); -PROVIDE ( SPIEraseChip = esp_rom_spiflash_erase_chip); -PROVIDE ( SPIEraseSector = esp_rom_spiflash_erase_sector); -PROVIDE ( SPIEraseBlock = esp_rom_spiflash_erase_block); -PROVIDE ( SPI_Write_Encrypt_Enable = esp_rom_spiflash_write_encrypted_enable); -PROVIDE ( SPI_Write_Encrypt_Disable = esp_rom_spiflash_write_encrypted_disable); -PROVIDE ( SPI_Encrypt_Write = esp_rom_spiflash_write_encrypted); - - -/*************************************** - Group common - ***************************************/ - -/* Functions */ -rtc_get_reset_reason = 0x40000018; -analog_super_wdt_reset_happened = 0x4000001c; -jtag_cpu_reset_happened = 0x40000020; -rtc_get_wakeup_cause = 0x40000024; -rtc_select_apb_bridge = 0x40000028; -rtc_unhold_all_pads = 0x4000002c; -ets_is_print_boot = 0x40000030; -ets_printf = 0x40000034; -ets_install_putc1 = 0x40000038; -ets_install_uart_printf = 0x4000003c; -ets_install_putc2 = 0x40000040; -PROVIDE( ets_delay_us = 0x40000044 ); -ets_get_stack_info = 0x40000048; -ets_install_lock = 0x4000004c; -ets_backup_dma_copy = 0x40000050; -ets_apb_backup_init_lock_func = 0x40000054; -UartRxString = 0x40000058; -uart_tx_one_char = 0x4000005c; -uart_tx_one_char2 = 0x40000060; -uart_rx_one_char = 0x40000064; -uart_rx_one_char_block = 0x40000068; -uart_rx_readbuff = 0x4000006c; -uartAttach = 0x40000070; -uart_tx_flush = 0x40000074; -uart_tx_wait_idle = 0x40000078; -uart_div_modify = 0x4000007c; -multofup = 0x40000080; -software_reset = 0x40000084; -software_reset_cpu = 0x40000088; -assist_debug_clock_enable = 0x4000008c; -assist_debug_record_enable = 0x40000090; -clear_super_wdt_reset_flag = 0x40000094; -disable_default_watchdog = 0x40000098; -esp_rom_set_rtc_wake_addr = 0x4000009c; -esp_rom_get_rtc_wake_addr = 0x400000a0; -send_packet = 0x400000a4; -recv_packet = 0x400000a8; -GetUartDevice = 0x400000ac; -GetSecurityInfoProc = 0x400120b2; -UartDwnLdProc = 0x400000b0; -Uart_Init = 0x400000b4; -ets_set_user_start = 0x400000b8; -/* Data (.data, .bss, .rodata) */ -ets_rom_layout_p = 0x3ff1fffc; -ets_ops_table_ptr = 0x3fcdfffc; - - -/*************************************** - Group miniz - ***************************************/ - -/* Functions */ -mz_adler32 = 0x400000bc; -mz_crc32 = 0x400000c0; -mz_free = 0x400000c4; -tdefl_compress = 0x400000c8; -tdefl_compress_buffer = 0x400000cc; -tdefl_compress_mem_to_heap = 0x400000d0; -tdefl_compress_mem_to_mem = 0x400000d4; -tdefl_compress_mem_to_output = 0x400000d8; -tdefl_get_adler32 = 0x400000dc; -tdefl_get_prev_return_status = 0x400000e0; -tdefl_init = 0x400000e4; -tdefl_write_image_to_png_file_in_memory = 0x400000e8; -tdefl_write_image_to_png_file_in_memory_ex = 0x400000ec; -tinfl_decompress = 0x400000f0; -tinfl_decompress_mem_to_callback = 0x400000f4; -tinfl_decompress_mem_to_heap = 0x400000f8; -tinfl_decompress_mem_to_mem = 0x400000fc; - - -/*************************************** - Group tjpgd - ***************************************/ - -/* Functions */ -jd_prepare = 0x40000100; -jd_decomp = 0x40000104; - - -/*************************************** - Group esp-dsp - ***************************************/ - -/* Data (.data, .bss, .rodata) */ -dsps_fft2r_w_table_fc32_1024 = 0x3fcdfff8; - - -/*************************************** - Group spiflash_legacy - ***************************************/ - -/* Functions */ -PROVIDE( esp_rom_spiflash_wait_idle = 0x40000108 ); -PROVIDE( esp_rom_spiflash_write_encrypted = 0x4000010c ); -PROVIDE( esp_rom_spiflash_write_encrypted_dest = 0x40000110 ); -PROVIDE( esp_rom_spiflash_write_encrypted_enable = 0x40000114 ); -PROVIDE( esp_rom_spiflash_write_encrypted_disable = 0x40000118 ); -PROVIDE( esp_rom_spiflash_erase_chip = 0x4000011c ); -PROVIDE( esp_rom_spiflash_erase_block = 0x40000120 ); -PROVIDE( esp_rom_spiflash_erase_sector = 0x40000124 ); -PROVIDE( esp_rom_spiflash_write = 0x40000128 ); -PROVIDE( esp_rom_spiflash_read = 0x4000012c ); -PROVIDE( esp_rom_spiflash_config_param = 0x40000130 ); -PROVIDE( esp_rom_spiflash_read_user_cmd = 0x40000134 ); -PROVIDE( esp_rom_spiflash_select_qio_pins = 0x40000138 ); -PROVIDE( esp_rom_spiflash_unlock = 0x4000013c ); -PROVIDE( esp_rom_spi_flash_auto_sus_res = 0x40000140 ); -PROVIDE( esp_rom_spi_flash_send_resume = 0x40000144 ); -PROVIDE( esp_rom_spi_flash_update_id = 0x40000148 ); -PROVIDE( esp_rom_spiflash_config_clk = 0x4000014c ); -PROVIDE( esp_rom_spiflash_config_readmode = 0x40000150 ); -PROVIDE( esp_rom_spiflash_read_status = 0x40000154 ); -PROVIDE( esp_rom_spiflash_read_statushigh = 0x40000158 ); -PROVIDE( esp_rom_spiflash_write_status = 0x4000015c ); -PROVIDE( spi_flash_attach = 0x40000160 ); -PROVIDE( spi_flash_get_chip_size = 0x40000164 ); -PROVIDE( spi_flash_guard_set = 0x40000168 ); -PROVIDE( spi_flash_guard_get = 0x4000016c ); -PROVIDE( spi_flash_write_config_set = 0x40000170 ); -PROVIDE( spi_flash_write_config_get = 0x40000174 ); -PROVIDE( spi_flash_safe_write_address_func_set = 0x40000178 ); -PROVIDE( spi_flash_unlock = 0x4000017c ); -PROVIDE( spi_flash_erase_range = 0x40000180 ); -PROVIDE( spi_flash_erase_sector = 0x40000184 ); -PROVIDE( spi_flash_write = 0x40000188 ); -PROVIDE( spi_flash_read = 0x4000018c ); -PROVIDE( spi_flash_write_encrypted = 0x40000190 ); -PROVIDE( spi_flash_read_encrypted = 0x40000194 ); -PROVIDE( spi_flash_mmap_os_func_set = 0x40000198 ); -PROVIDE( spi_flash_mmap_page_num_init = 0x4000019c ); -PROVIDE( spi_flash_mmap = 0x400001a0 ); -PROVIDE( spi_flash_mmap_pages = 0x400001a4 ); -PROVIDE( spi_flash_munmap = 0x400001a8 ); -PROVIDE( spi_flash_mmap_dump = 0x400001ac ); -PROVIDE( spi_flash_check_and_flush_cache = 0x400001b0 ); -PROVIDE( spi_flash_mmap_get_free_pages = 0x400001b4 ); -PROVIDE( spi_flash_cache2phys = 0x400001b8 ); -PROVIDE( spi_flash_phys2cache = 0x400001bc ); -PROVIDE( spi_flash_disable_cache = 0x400001c0 ); -PROVIDE( spi_flash_restore_cache = 0x400001c4 ); -PROVIDE( spi_flash_cache_enabled = 0x400001c8 ); -PROVIDE( spi_flash_enable_cache = 0x400001cc ); -PROVIDE( spi_cache_mode_switch = 0x400001d0 ); -PROVIDE( spi_common_set_dummy_output = 0x400001d4 ); -PROVIDE( spi_common_set_flash_cs_timing = 0x400001d8 ); -PROVIDE( esp_enable_cache_flash_wrap = 0x400001dc ); -PROVIDE( SPIEraseArea = 0x400001e0 ); -PROVIDE( SPILock = 0x400001e4 ); -PROVIDE( SPIMasterReadModeCnfig = 0x400001e8 ); -PROVIDE( SPI_Common_Command = 0x400001ec ); -PROVIDE( SPI_WakeUp = 0x400001f0 ); -PROVIDE( SPI_block_erase = 0x400001f4 ); -PROVIDE( SPI_chip_erase = 0x400001f8 ); -PROVIDE( SPI_init = 0x400001fc ); -PROVIDE( SPI_page_program = 0x40000200 ); -PROVIDE( SPI_read_data = 0x40000204 ); -PROVIDE( SPI_sector_erase = 0x40000208 ); -PROVIDE( SPI_write_enable = 0x4000020c ); -PROVIDE( SelectSpiFunction = 0x40000210 ); -PROVIDE( SetSpiDrvs = 0x40000214 ); -PROVIDE( Wait_SPI_Idle = 0x40000218 ); -PROVIDE( spi_dummy_len_fix = 0x4000021c ); -PROVIDE( Disable_QMode = 0x40000220 ); -PROVIDE( Enable_QMode = 0x40000224 ); -/* Data (.data, .bss, .rodata) */ -PROVIDE( rom_spiflash_legacy_funcs = 0x3fcdfff0 ); -PROVIDE( rom_spiflash_legacy_data = 0x3fcdffec ); -PROVIDE( g_flash_guard_ops = 0x3fcdfff4 ); - - -/*************************************** - Group hal_soc - ***************************************/ - -/* Functions */ -PROVIDE( spi_flash_hal_poll_cmd_done = 0x40000228 ); -PROVIDE( spi_flash_hal_device_config = 0x4000022c ); -PROVIDE( spi_flash_hal_configure_host_io_mode = 0x40000230 ); -PROVIDE( spi_flash_hal_common_command = 0x40000234 ); -PROVIDE( spi_flash_hal_read = 0x40000238 ); -PROVIDE( spi_flash_hal_erase_chip = 0x4000023c ); -PROVIDE( spi_flash_hal_erase_sector = 0x40000240 ); -PROVIDE( spi_flash_hal_erase_block = 0x40000244 ); -PROVIDE( spi_flash_hal_program_page = 0x40000248 ); -PROVIDE( spi_flash_hal_set_write_protect = 0x4000024c ); -PROVIDE( spi_flash_hal_host_idle = 0x40000250 ); - - -/*************************************** - Group spi_flash_chips - ***************************************/ - -/* Functions */ -PROVIDE( spi_flash_chip_generic_probe = 0x40000254 ); -PROVIDE( spi_flash_chip_generic_detect_size = 0x40000258 ); -PROVIDE( spi_flash_chip_generic_write = 0x4000025c ); -PROVIDE( spi_flash_chip_generic_write_encrypted = 0x40000260 ); -PROVIDE( spi_flash_chip_generic_set_write_protect = 0x40000264 ); -PROVIDE( spi_flash_common_write_status_16b_wrsr = 0x40000268 ); -PROVIDE( spi_flash_chip_generic_reset = 0x4000026c ); -PROVIDE( spi_flash_chip_generic_erase_chip = 0x40000270 ); -PROVIDE( spi_flash_chip_generic_erase_sector = 0x40000274 ); -PROVIDE( spi_flash_chip_generic_erase_block = 0x40000278 ); -PROVIDE( spi_flash_chip_generic_page_program = 0x4000027c ); -PROVIDE( spi_flash_chip_generic_get_write_protect = 0x40000280 ); -PROVIDE( spi_flash_common_read_status_16b_rdsr_rdsr2 = 0x40000284 ); -PROVIDE( spi_flash_chip_generic_read_reg = 0x40000288 ); -PROVIDE( spi_flash_chip_generic_yield = 0x4000028c ); -PROVIDE( spi_flash_generic_wait_host_idle = 0x40000290 ); -PROVIDE( spi_flash_chip_generic_wait_idle = 0x40000294 ); -PROVIDE( spi_flash_chip_generic_config_host_io_mode = 0x40000298 ); -PROVIDE( spi_flash_chip_generic_read = 0x4000029c ); -PROVIDE( spi_flash_common_read_status_8b_rdsr2 = 0x400002a0 ); -PROVIDE( spi_flash_chip_generic_get_io_mode = 0x400002a4 ); -PROVIDE( spi_flash_common_read_status_8b_rdsr = 0x400002a8 ); -PROVIDE( spi_flash_common_write_status_8b_wrsr = 0x400002ac ); -PROVIDE( spi_flash_common_write_status_8b_wrsr2 = 0x400002b0 ); -PROVIDE( spi_flash_common_set_io_mode = 0x400002b4 ); -PROVIDE( spi_flash_chip_generic_set_io_mode = 0x400002b8 ); -PROVIDE( spi_flash_chip_gd_get_io_mode = 0x400002bc ); -PROVIDE( spi_flash_chip_gd_probe = 0x400002c0 ); -PROVIDE( spi_flash_chip_gd_set_io_mode = 0x400002c4 ); -/* Data (.data, .bss, .rodata) */ -PROVIDE( spi_flash_chip_generic_config_data = 0x3fcdffe8 ); - - -/*************************************** - Group memspi_host - ***************************************/ - -/* Functions */ -PROVIDE( memspi_host_read_id_hs = 0x400002c8 ); -PROVIDE( memspi_host_read_status_hs = 0x400002cc ); -PROVIDE( memspi_host_flush_cache = 0x400002d0 ); -PROVIDE( memspi_host_erase_chip = 0x400002d4 ); -PROVIDE( memspi_host_erase_sector = 0x400002d8 ); -PROVIDE( memspi_host_erase_block = 0x400002dc ); -PROVIDE( memspi_host_program_page = 0x400002e0 ); -PROVIDE( memspi_host_read = 0x400002e4 ); -PROVIDE( memspi_host_set_write_protect = 0x400002e8 ); -PROVIDE( memspi_host_set_max_read_len = 0x400002ec ); -PROVIDE( memspi_host_read_data_slicer = 0x400002f0 ); -PROVIDE( memspi_host_write_data_slicer = 0x400002f4 ); - - -/*************************************** - Group esp_flash - ***************************************/ - -/* Functions */ -PROVIDE( esp_flash_chip_driver_initialized = 0x400002f8 ); -PROVIDE( esp_flash_read_id = 0x400002fc ); -PROVIDE( esp_flash_get_size = 0x40000300 ); -PROVIDE( esp_flash_erase_chip = 0x40000304 ); -PROVIDE( esp_flash_erase_region = 0x40000308 ); -PROVIDE( esp_flash_get_chip_write_protect = 0x4000030c ); -PROVIDE( esp_flash_set_chip_write_protect = 0x40000310 ); -PROVIDE( esp_flash_get_protectable_regions = 0x40000314 ); -PROVIDE( esp_flash_get_protected_region = 0x40000318 ); -PROVIDE( esp_flash_set_protected_region = 0x4000031c ); -PROVIDE( esp_flash_read = 0x40000320 ); -PROVIDE( esp_flash_write = 0x40000324 ); -PROVIDE( esp_flash_write_encrypted = 0x40000328 ); -PROVIDE( esp_flash_read_encrypted = 0x4000032c ); -PROVIDE( esp_flash_get_io_mode = 0x40000330 ); -PROVIDE( esp_flash_set_io_mode = 0x40000334 ); -PROVIDE( spi_flash_boot_attach = 0x40000338 ); -PROVIDE( spi_flash_dump_counters = 0x4000033c ); -PROVIDE( spi_flash_get_counters = 0x40000340 ); -PROVIDE( spi_flash_op_counters_config = 0x40000344 ); -PROVIDE( spi_flash_reset_counters = 0x40000348 ); -PROVIDE( esp_flash_read_chip_id = 0x4000034c ); -PROVIDE( detect_spi_flash_chip = 0x40000350 ); -PROVIDE( esp_rom_spiflash_write_disable = 0x40000354 ); -/* Data (.data, .bss, .rodata) */ -PROVIDE( esp_flash_default_chip = 0x3fcdffe4 ); -PROVIDE( esp_flash_api_funcs = 0x3fcdffe0 ); - - -/*************************************** - Group cache - ***************************************/ - -/* Functions */ -PROVIDE( Cache_Get_ICache_Line_Size = 0x400004b8 ); -PROVIDE( Cache_Get_Mode = 0x400004bc ); -PROVIDE( Cache_Address_Through_IBus = 0x400004c0 ); -PROVIDE( Cache_Address_Through_DBus = 0x400004c4 ); -PROVIDE( Cache_Set_Default_Mode = 0x400004c8 ); -PROVIDE( Cache_Enable_Defalut_ICache_Mode = 0x400004cc ); -PROVIDE( ROM_Boot_Cache_Init = 0x400004d0 ); -PROVIDE( Cache_Invalidate_ICache_Items = 0x400004d4 ); -PROVIDE( Cache_Op_Addr = 0x400004d8 ); -PROVIDE( Cache_Invalidate_Addr = 0x400004dc ); -PROVIDE( Cache_Invalidate_ICache_All = 0x400004e0 ); -PROVIDE( Cache_Mask_All = 0x400004e4 ); -PROVIDE( Cache_UnMask_Dram0 = 0x400004e8 ); -PROVIDE( Cache_Suspend_ICache_Autoload = 0x400004ec ); -PROVIDE( Cache_Resume_ICache_Autoload = 0x400004f0 ); -PROVIDE( Cache_Start_ICache_Preload = 0x400004f4 ); -PROVIDE( Cache_ICache_Preload_Done = 0x400004f8 ); -PROVIDE( Cache_End_ICache_Preload = 0x400004fc ); -PROVIDE( Cache_Config_ICache_Autoload = 0x40000500 ); -PROVIDE( Cache_Enable_ICache_Autoload = 0x40000504 ); -PROVIDE( Cache_Disable_ICache_Autoload = 0x40000508 ); -PROVIDE( Cache_Enable_ICache_PreLock = 0x4000050c ); -PROVIDE( Cache_Disable_ICache_PreLock = 0x40000510 ); -PROVIDE( Cache_Lock_ICache_Items = 0x40000514 ); -PROVIDE( Cache_Unlock_ICache_Items = 0x40000518 ); -PROVIDE( Cache_Lock_Addr = 0x4000051c ); -PROVIDE( Cache_Unlock_Addr = 0x40000520 ); -PROVIDE( Cache_Disable_ICache = 0x40000524 ); -PROVIDE( Cache_Enable_ICache = 0x40000528 ); -PROVIDE( Cache_Suspend_ICache = 0x4000052c ); -PROVIDE( Cache_Resume_ICache = 0x40000530 ); -PROVIDE( Cache_Freeze_ICache_Enable = 0x40000534 ); -PROVIDE( Cache_Freeze_ICache_Disable = 0x40000538 ); -PROVIDE( Cache_Pms_Lock = 0x4000053c ); -PROVIDE( Cache_Ibus_Pms_Set_Addr = 0x40000540 ); -PROVIDE( Cache_Ibus_Pms_Set_Attr = 0x40000544 ); -PROVIDE( Cache_Dbus_Pms_Set_Addr = 0x40000548 ); -PROVIDE( Cache_Dbus_Pms_Set_Attr = 0x4000054c ); -PROVIDE( Cache_Set_IDROM_MMU_Size = 0x40000550 ); -PROVIDE( Cache_Get_IROM_MMU_End = 0x40000554 ); -PROVIDE( Cache_Get_DROM_MMU_End = 0x40000558 ); -PROVIDE( Cache_Owner_Init = 0x4000055c ); -PROVIDE( Cache_Occupy_ICache_MEMORY = 0x40000560 ); -PROVIDE( Cache_MMU_Init = 0x40000564 ); -PROVIDE( Cache_Ibus_MMU_Set = 0x40000568 ); -PROVIDE( Cache_Dbus_MMU_Set = 0x4000056c ); -PROVIDE( Cache_Count_Flash_Pages = 0x40000570 ); -PROVIDE( Cache_Travel_Tag_Memory = 0x40000574 ); -PROVIDE( Cache_Get_Virtual_Addr = 0x40000578 ); -PROVIDE( Cache_Get_Memory_BaseAddr = 0x4000057c ); -PROVIDE( Cache_Get_Memory_Addr = 0x40000580 ); -PROVIDE( Cache_Get_Memory_value = 0x40000584 ); -/* Data (.data, .bss, .rodata) */ -PROVIDE( rom_cache_op_cb = 0x3fcdffd4 ); -PROVIDE( rom_cache_internal_table_ptr = 0x3fcdffd0 ); - - -/*************************************** - Group clock - ***************************************/ - -/* Functions */ -ets_get_apb_freq = 0x40000588; -ets_get_cpu_frequency = 0x4000058c; -ets_update_cpu_frequency = 0x40000590; -ets_get_printf_channel = 0x40000594; -ets_get_xtal_div = 0x40000598; -ets_set_xtal_div = 0x4000059c; -ets_get_xtal_freq = 0x400005a0; - - -/*************************************** - Group gpio - ***************************************/ - -/* Functions */ -gpio_input_get = 0x400005a4; -gpio_matrix_in = 0x400005a8; -gpio_matrix_out = 0x400005ac; -gpio_output_disable = 0x400005b0; -gpio_output_enable = 0x400005b4; -gpio_output_set = 0x400005b8; -gpio_pad_hold = 0x400005bc; -gpio_pad_input_disable = 0x400005c0; -gpio_pad_input_enable = 0x400005c4; -gpio_pad_pulldown = 0x400005c8; -gpio_pad_pullup = 0x400005cc; -gpio_pad_select_gpio = 0x400005d0; -gpio_pad_set_drv = 0x400005d4; -gpio_pad_unhold = 0x400005d8; -gpio_pin_wakeup_disable = 0x400005dc; -gpio_pin_wakeup_enable = 0x400005e0; -gpio_bypass_matrix_in = 0x400005e4; - - -/*************************************** - Group interrupts - ***************************************/ - -/* Functions */ -esprv_intc_int_set_priority = 0x400005e8; -esprv_intc_int_set_threshold = 0x400005ec; -esprv_intc_int_enable = 0x400005f0; -esprv_intc_int_disable = 0x400005f4; -esprv_intc_int_set_type = 0x400005f8; -intr_matrix_set = 0x400005fc; -ets_intr_lock = 0x40000600; -ets_intr_unlock = 0x40000604; -PROVIDE( intr_handler_set = 0x40000608 ); -ets_isr_attach = 0x4000060c; -ets_isr_mask = 0x40000610; -ets_isr_unmask = 0x40000614; - - -/*************************************** - Group crypto - ***************************************/ - -/* Functions */ -md5_vector = 0x40000618; -MD5Init = 0x4000061c; -MD5Update = 0x40000620; -MD5Final = 0x40000624; -hmac_md5_vector = 0x40000628; -hmac_md5 = 0x4000062c; -crc32_le = 0x40000630; -crc32_be = 0x40000634; -crc16_le = 0x40000638; -crc16_be = 0x4000063c; -crc8_le = 0x40000640; -crc8_be = 0x40000644; -esp_crc8 = 0x40000648; -ets_sha_enable = 0x4000064c; -ets_sha_disable = 0x40000650; -ets_sha_get_state = 0x40000654; -ets_sha_init = 0x40000658; -ets_sha_process = 0x4000065c; -ets_sha_starts = 0x40000660; -ets_sha_update = 0x40000664; -ets_sha_finish = 0x40000668; -ets_sha_clone = 0x4000066c; -ets_hmac_enable = 0x40000670; -ets_hmac_disable = 0x40000674; -ets_hmac_calculate_message = 0x40000678; -ets_hmac_calculate_downstream = 0x4000067c; -ets_hmac_invalidate_downstream = 0x40000680; -ets_jtag_enable_temporarily = 0x40000684; -ets_aes_enable = 0x40000688; -ets_aes_disable = 0x4000068c; -ets_aes_setkey = 0x40000690; -ets_aes_block = 0x40000694; -ets_bigint_enable = 0x40000698; -ets_bigint_disable = 0x4000069c; -ets_bigint_multiply = 0x400006a0; -ets_bigint_modmult = 0x400006a4; -ets_bigint_modexp = 0x400006a8; -ets_bigint_wait_finish = 0x400006ac; -ets_bigint_getz = 0x400006b0; -ets_ds_enable = 0x400006b4; -ets_ds_disable = 0x400006b8; -ets_ds_start_sign = 0x400006bc; -ets_ds_is_busy = 0x400006c0; -ets_ds_finish_sign = 0x400006c4; -ets_ds_encrypt_params = 0x400006c8; -ets_aes_setkey_dec = 0x400006cc; -ets_aes_setkey_enc = 0x400006d0; -ets_mgf1_sha256 = 0x400006d4; - - -/*************************************** - Group efuse - ***************************************/ - -/* Functions */ -ets_efuse_read = 0x400006d8; -ets_efuse_program = 0x400006dc; -ets_efuse_clear_program_registers = 0x400006e0; -ets_efuse_write_key = 0x400006e4; -ets_efuse_get_read_register_address = 0x400006e8; -ets_efuse_get_key_purpose = 0x400006ec; -ets_efuse_key_block_unused = 0x400006f0; -ets_efuse_find_unused_key_block = 0x400006f4; -ets_efuse_rs_calculate = 0x400006f8; -ets_efuse_count_unused_key_blocks = 0x400006fc; -ets_efuse_secure_boot_enabled = 0x40000700; -ets_efuse_secure_boot_aggressive_revoke_enabled = 0x40000704; -ets_efuse_cache_encryption_enabled = 0x40000708; -ets_efuse_download_modes_disabled = 0x4000070c; -ets_efuse_find_purpose = 0x40000710; -ets_efuse_flash_opi_5pads_power_sel_vddspi = 0x40000714; -ets_efuse_force_send_resume = 0x40000718; -ets_efuse_get_flash_delay_us = 0x4000071c; -ets_efuse_get_mac = 0x40000720; -ets_efuse_get_spiconfig = 0x40000724; -ets_efuse_usb_print_is_disabled = 0x40000728; -ets_efuse_get_uart_print_channel = 0x4000072c; -ets_efuse_get_uart_print_control = 0x40000730; -ets_efuse_get_wp_pad = 0x40000734; -ets_efuse_direct_boot_mode_disabled = 0x40000738; -ets_efuse_security_download_modes_enabled = 0x4000073c; -ets_efuse_set_timing = 0x40000740; -ets_efuse_jtag_disabled = 0x40000744; -ets_efuse_usb_download_mode_disabled = 0x40000748; -ets_efuse_usb_module_disabled = 0x4000074c; -ets_efuse_usb_device_disabled = 0x40000750; -ets_efuse_secure_boot_fast_wake_enabled = 0x40000754; - - -/*************************************** - Group secureboot - ***************************************/ - -/* Functions */ -ets_emsa_pss_verify = 0x40000758; -ets_rsa_pss_verify = 0x4000075c; -ets_secure_boot_verify_bootloader_with_keys = 0x40000760; -ets_secure_boot_verify_signature = 0x40000764; -ets_secure_boot_read_key_digests = 0x40000768; -ets_secure_boot_revoke_public_key_digest = 0x4000076c; - - -/*************************************** - Group usb_uart - ***************************************/ - -/* Functions */ -PROVIDE( usb_uart_device_rx_one_char = 0x400008d8 ); -PROVIDE( usb_uart_device_rx_one_char_block = 0x400008dc ); -PROVIDE( usb_uart_device_tx_flush = 0x400008e0 ); -PROVIDE( usb_uart_device_tx_one_char = 0x400008e4 ); -/* Data (.data, .bss, .rodata) */ -PROVIDE( g_uart_print = 0x3fcdffcd ); -PROVIDE( g_usb_print = 0x3fcdffcc ); - - -/*************************************** - Group rom_phy - ***************************************/ - -/* Functions */ -phy_get_romfuncs = 0x400008e8; -rom_abs_temp = 0x400008ec; -rom_bb_bss_cbw40_dig = 0x400008f0; -rom_bb_wdg_test_en = 0x400008f4; -rom_bb_wdt_get_status = 0x400008f8; -rom_bb_wdt_int_enable = 0x400008fc; -rom_bb_wdt_rst_enable = 0x40000900; -rom_bb_wdt_timeout_clear = 0x40000904; -rom_cbw2040_cfg = 0x40000908; -rom_check_noise_floor = 0x4000090c; -rom_chip_i2c_readReg = 0x40000910; -rom_chip_i2c_writeReg = 0x40000914; -rom_correct_rf_ana_gain = 0x40000918; -rom_dc_iq_est = 0x4000091c; -rom_disable_agc = 0x40000920; -rom_en_pwdet = 0x40000924; -rom_enable_agc = 0x40000928; -rom_get_bbgain_db = 0x4000092c; -rom_get_data_sat = 0x40000930; -rom_get_i2c_read_mask = 0x40000934; -rom_get_pwctrl_correct = 0x40000938; -rom_get_rf_gain_qdb = 0x4000093c; -rom_i2c_readReg = 0x40000940; -rom_i2c_readReg_Mask = 0x40000944; -rom_i2c_writeReg = 0x40000948; -rom_i2c_writeReg_Mask = 0x4000094c; -rom_index_to_txbbgain = 0x40000950; -rom_iq_est_disable = 0x40000954; -rom_iq_est_enable = 0x40000958; -rom_linear_to_db = 0x4000095c; -rom_loopback_mode_en = 0x40000960; -rom_mhz2ieee = 0x40000964; -rom_noise_floor_auto_set = 0x40000968; -rom_pbus_debugmode = 0x4000096c; -rom_pbus_force_mode = 0x40000970; -rom_pbus_force_test = 0x40000974; -rom_pbus_rd = 0x40000978; -rom_pbus_rd_addr = 0x4000097c; -rom_pbus_rd_shift = 0x40000980; -rom_pbus_set_dco = 0x40000984; -rom_pbus_set_rxgain = 0x40000988; -rom_pbus_workmode = 0x4000098c; -rom_pbus_xpd_rx_off = 0x40000990; -rom_pbus_xpd_rx_on = 0x40000994; -rom_pbus_xpd_tx_off = 0x40000998; -rom_pbus_xpd_tx_on = 0x4000099c; -rom_phy_byte_to_word = 0x400009a0; -rom_phy_disable_cca = 0x400009a4; -rom_phy_enable_cca = 0x400009a8; -rom_phy_get_noisefloor = 0x400009ac; -rom_phy_get_rx_freq = 0x400009b0; -rom_phy_set_bbfreq_init = 0x400009b4; -rom_pow_usr = 0x400009b8; -rom_pwdet_sar2_init = 0x400009bc; -rom_read_hw_noisefloor = 0x400009c0; -rom_read_sar_dout = 0x400009c4; -rom_set_cal_rxdc = 0x400009c8; -rom_set_chan_cal_interp = 0x400009cc; -rom_set_loopback_gain = 0x400009d0; -rom_set_noise_floor = 0x400009d4; -rom_set_rxclk_en = 0x400009d8; -rom_set_tx_dig_gain = 0x400009dc; -rom_set_txcap_reg = 0x400009e0; -rom_set_txclk_en = 0x400009e4; -rom_spur_cal = 0x400009e8; -rom_spur_reg_write_one_tone = 0x400009ec; -rom_target_power_add_backoff = 0x400009f0; -rom_tx_pwctrl_bg_init = 0x400009f4; -rom_txbbgain_to_index = 0x400009f8; -rom_wifi_11g_rate_chg = 0x400009fc; -rom_write_gain_mem = 0x40000a00; -chip726_phyrom_version = 0x40000a04; -rom_disable_wifi_agc = 0x40000a08; -rom_enable_wifi_agc = 0x40000a0c; -rom_set_tx_gain_table = 0x40000a10; -rom_bt_index_to_bb = 0x40000a14; -rom_bt_bb_to_index = 0x40000a18; -rom_wr_bt_tx_atten = 0x40000a1c; -rom_wr_bt_tx_gain_mem = 0x40000a20; -rom_spur_coef_cfg = 0x40000a24; -rom_bb_bss_cbw40 = 0x40000a28; -rom_set_cca = 0x40000a2c; -rom_tx_paon_set = 0x40000a30; -rom_i2cmst_reg_init = 0x40000a34; -rom_iq_corr_enable = 0x40000a38; -rom_fe_reg_init = 0x40000a3c; -rom_agc_reg_init = 0x40000a40; -rom_bb_reg_init = 0x40000a44; -rom_mac_enable_bb = 0x40000a48; -rom_bb_wdg_cfg = 0x40000a4c; -rom_force_txon = 0x40000a50; -rom_fe_txrx_reset = 0x40000a54; -rom_set_rx_comp = 0x40000a58; -rom_set_pbus_reg = 0x40000a5c; -rom_write_chan_freq = 0x40000a60; -rom_phy_xpd_rf = 0x40000a64; -rom_set_xpd_sar = 0x40000a68; -rom_write_dac_gain2 = 0x40000a6c; -rom_rtc_sar2_init = 0x40000a70; -rom_get_target_power_offset = 0x40000a74; -rom_write_txrate_power_offset = 0x40000a78; -rom_get_rate_fcc_index = 0x40000a7c; -rom_get_rate_target_power = 0x40000a80; -rom_write_wifi_dig_gain = 0x40000a84; -rom_bt_correct_rf_ana_gain = 0x40000a88; -rom_pkdet_vol_start = 0x40000a8c; -rom_read_sar2_code = 0x40000a90; -rom_get_sar2_vol = 0x40000a94; -rom_get_pll_vol = 0x40000a98; -rom_get_phy_target_power = 0x40000a9c; -rom_temp_to_power = 0x40000aa0; -rom_phy_track_pll_cap = 0x40000aa4; -rom_phy_pwdet_always_en = 0x40000aa8; -rom_phy_pwdet_onetime_en = 0x40000aac; -rom_get_i2c_mst0_mask = 0x40000ab0; -rom_get_i2c_hostid = 0x40000ab4; -rom_enter_critical_phy = 0x40000ab8; -rom_exit_critical_phy = 0x40000abc; -rom_chip_i2c_readReg_org = 0x40000ac0; -rom_i2c_paral_set_mst0 = 0x40000ac4; -rom_i2c_paral_set_read = 0x40000ac8; -rom_i2c_paral_read = 0x40000acc; -rom_i2c_paral_write = 0x40000ad0; -rom_i2c_paral_write_num = 0x40000ad4; -rom_i2c_paral_write_mask = 0x40000ad8; -rom_bb_bss_cbw40_ana = 0x40000adc; -rom_chan_to_freq = 0x40000ae0; -rom_open_i2c_xpd = 0x40000ae4; -rom_dac_rate_set = 0x40000ae8; -rom_tsens_read_init = 0x40000aec; -rom_tsens_code_read = 0x40000af0; -rom_tsens_index_to_dac = 0x40000af4; -rom_tsens_index_to_offset = 0x40000af8; -rom_tsens_dac_cal = 0x40000afc; -rom_code_to_temp = 0x40000b00; -rom_write_pll_cap_mem = 0x40000b04; -rom_pll_correct_dcap = 0x40000b08; -rom_phy_en_hw_set_freq = 0x40000b0c; -rom_phy_dis_hw_set_freq = 0x40000b10; -rom_pll_vol_cal = 0x40000b14; -rom_wrtie_pll_cap = 0x40000b18; -rom_set_tx_gain_mem = 0x40000b1c; -rom_bt_tx_dig_gain = 0x40000b20; -rom_bt_get_tx_gain = 0x40000b24; -rom_get_chan_target_power = 0x40000b28; -rom_get_tx_gain_value = 0x40000b2c; -rom_wifi_tx_dig_gain = 0x40000b30; -rom_wifi_get_tx_gain = 0x40000b34; -rom_fe_i2c_reg_renew = 0x40000b38; -rom_wifi_agc_sat_gain = 0x40000b3c; -rom_i2c_master_reset = 0x40000b40; -rom_bt_filter_reg = 0x40000b44; -rom_phy_bbpll_cal = 0x40000b48; -rom_i2c_sar2_init_code = 0x40000b4c; -rom_phy_param_addr = 0x40000b50; -rom_phy_reg_init = 0x40000b54; -rom_set_chan_reg = 0x40000b58; -rom_phy_wakeup_init = 0x40000b5c; -rom_phy_i2c_init1 = 0x40000b60; -rom_tsens_temp_read = 0x40000b64; -rom_bt_track_pll_cap = 0x40000b68; -rom_wifi_track_pll_cap = 0x40000b6c; -rom_wifi_set_tx_gain = 0x40000b70; -rom_txpwr_cal_track = 0x40000b74; -rom_tx_pwctrl_background = 0x40000b78; -rom_bt_set_tx_gain = 0x40000b7c; -rom_noise_check_loop = 0x40000b80; -rom_phy_close_rf = 0x40000b84; -rom_phy_xpd_tsens = 0x40000b88; -rom_phy_freq_mem_backup = 0x40000b8c; -rom_phy_ant_init = 0x40000b90; -rom_bt_track_tx_power = 0x40000b94; -rom_wifi_track_tx_power = 0x40000b98; -rom_phy_dig_reg_backup = 0x40000b9c; -chip726_phyrom_version_num = 0x40000ba0; -/* Data (.data, .bss, .rodata) */ -phy_param_rom = 0x3fcdffc8; diff --git a/flasher_stub/ld/rom_32h2_beta_2.ld b/flasher_stub/ld/rom_32h2_beta_2.ld deleted file mode 100644 index 81d8df7a1..000000000 --- a/flasher_stub/ld/rom_32h2_beta_2.ld +++ /dev/null @@ -1,1714 +0,0 @@ -/* ROM function interface esp32h2.rom.ld for esp32h2 - * - * - * Generated from ./target/esp32h2/interface-esp32h2.yml md5sum da4c474a48c097d4ac9acad67f70fda6 - * - * Compatible with ROM where ECO version equal or greater to 0. - * - * THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT. - */ - - -PROVIDE ( SPIWrite = esp_rom_spiflash_write); -PROVIDE ( SPI_read_status_high = esp_rom_spiflash_read_statushigh); -PROVIDE ( SPI_write_status = esp_rom_spiflash_write_status); -PROVIDE ( SPIRead = esp_rom_spiflash_read); -PROVIDE ( SPIParamCfg = esp_rom_spiflash_config_param); -PROVIDE ( SPIEraseChip = esp_rom_spiflash_erase_chip); -PROVIDE ( SPIEraseSector = esp_rom_spiflash_erase_sector); -PROVIDE ( SPIEraseBlock = esp_rom_spiflash_erase_block); -PROVIDE ( SPI_Write_Encrypt_Enable = esp_rom_spiflash_write_encrypted_enable); -PROVIDE ( SPI_Write_Encrypt_Disable = esp_rom_spiflash_write_encrypted_disable); -PROVIDE ( SPI_Encrypt_Write = esp_rom_spiflash_write_encrypted); - - - -/*************************************** - Group common - ***************************************/ - -/* Functions */ -rtc_get_reset_reason = 0x40000018; -analog_super_wdt_reset_happened = 0x4000001c; -rtc_get_wakeup_cause = 0x40000020; -rtc_select_apb_bridge = 0x40000024; -rtc_unhold_all_pads = 0x40000028; -ets_is_print_boot = 0x4000002c; -ets_printf = 0x40000030; -ets_install_putc1 = 0x40000034; -ets_install_uart_printf = 0x40000038; -ets_install_putc2 = 0x4000003c; -PROVIDE( ets_delay_us = 0x40000040 ); -ets_install_lock = 0x40000044; -ets_backup_dma_copy = 0x40000048; -ets_apb_backup_init_lock_func = 0x4000004c; -UartRxString = 0x40000050; -UartGetCmdLn = 0x40000054; -uart_tx_one_char = 0x40000058; -uart_tx_one_char2 = 0x4000005c; -uart_rx_one_char = 0x40000060; -uart_rx_one_char_block = 0x40000064; -uart_rx_readbuff = 0x40000068; -uartAttach = 0x4000006c; -uart_tx_flush = 0x40000070; -uart_tx_wait_idle = 0x40000074; -uart_div_modify = 0x40000078; -ets_write_char_uart = 0x4000007c; -uart_tx_switch = 0x40000080; -multofup = 0x40000084; -software_reset = 0x40000088; -software_reset_cpu = 0x4000008c; -assist_debug_clock_enable = 0x40000090; -assist_debug_record_enable = 0x40000094; -clear_super_wdt_reset_flag = 0x40000098; -disable_default_watchdog = 0x4000009c; -esp_rom_set_rtc_wake_addr = 0x400000a0; -esp_rom_get_rtc_wake_addr = 0x400000a4; -send_packet = 0x400000a8; -recv_packet = 0x400000ac; -GetUartDevice = 0x400000b0; -UartDwnLdProc = 0x400000b4; -GetSecurityInfoProc = 0x400000b8; -Uart_Init = 0x400000bc; -ets_set_user_start = 0x400000c0; -/* Data (.data, .bss, .rodata) */ -ets_rom_layout_p = 0x3ff1fffc; -ets_ops_table_ptr = 0x3fcdfff8; -g_uart_print = 0x3fcdfffd; -g_usb_print = 0x3fcdfffc; - - -/*************************************** - Group miniz - ***************************************/ - -/* Functions */ -mz_adler32 = 0x400000c4; -mz_free = 0x400000c8; -tdefl_compress = 0x400000cc; -tdefl_compress_buffer = 0x400000d0; -tdefl_compress_mem_to_heap = 0x400000d4; -tdefl_compress_mem_to_mem = 0x400000d8; -tdefl_compress_mem_to_output = 0x400000dc; -tdefl_get_adler32 = 0x400000e0; -tdefl_get_prev_return_status = 0x400000e4; -tdefl_init = 0x400000e8; -tdefl_write_image_to_png_file_in_memory = 0x400000ec; -tdefl_write_image_to_png_file_in_memory_ex = 0x400000f0; -tinfl_decompress = 0x400000f4; -tinfl_decompress_mem_to_callback = 0x400000f8; -tinfl_decompress_mem_to_heap = 0x400000fc; -tinfl_decompress_mem_to_mem = 0x40000100; - - -/*************************************** - Group tjpgd - ***************************************/ - -/* Functions */ -jd_prepare = 0x40000104; -jd_decomp = 0x40000108; - - -/*************************************** - Group spiflash_legacy - ***************************************/ - -/* Functions */ -PROVIDE( esp_rom_spiflash_wait_idle = 0x4000010c ); -PROVIDE( esp_rom_spiflash_write_encrypted = 0x40000110 ); -PROVIDE( esp_rom_spiflash_write_encrypted_dest = 0x40000114 ); -PROVIDE( esp_rom_spiflash_write_encrypted_enable = 0x40000118 ); -PROVIDE( esp_rom_spiflash_write_encrypted_disable = 0x4000011c ); -PROVIDE( esp_rom_spiflash_erase_chip = 0x40000120 ); -PROVIDE( _esp_rom_spiflash_erase_sector = 0x40000124 ); -PROVIDE( _esp_rom_spiflash_erase_block = 0x40000128 ); -PROVIDE( _esp_rom_spiflash_write = 0x4000012c ); -PROVIDE( _esp_rom_spiflash_read = 0x40000130 ); -PROVIDE( _esp_rom_spiflash_unlock = 0x40000134 ); -PROVIDE( _SPIEraseArea = 0x40000138 ); -PROVIDE( _SPI_write_enable = 0x4000013c ); -PROVIDE( esp_rom_spiflash_erase_sector = 0x40000140 ); -PROVIDE( esp_rom_spiflash_erase_block = 0x40000144 ); -PROVIDE( esp_rom_spiflash_write = 0x40000148 ); -PROVIDE( esp_rom_spiflash_read = 0x4000014c ); -PROVIDE( esp_rom_spiflash_unlock = 0x40000150 ); -PROVIDE( SPIEraseArea = 0x40000154 ); -PROVIDE( SPI_write_enable = 0x40000158 ); -PROVIDE( esp_rom_spiflash_config_param = 0x4000015c ); -PROVIDE( esp_rom_spiflash_read_user_cmd = 0x40000160 ); -PROVIDE( esp_rom_spiflash_select_qio_pins = 0x40000164 ); -PROVIDE( esp_rom_spi_flash_auto_sus_res = 0x40000168 ); -PROVIDE( esp_rom_spi_flash_send_resume = 0x4000016c ); -PROVIDE( esp_rom_spi_flash_update_id = 0x40000170 ); -PROVIDE( esp_rom_spiflash_config_clk = 0x40000174 ); -PROVIDE( esp_rom_spiflash_config_readmode = 0x40000178 ); -PROVIDE( esp_rom_spiflash_read_status = 0x4000017c ); -PROVIDE( esp_rom_spiflash_read_statushigh = 0x40000180 ); -PROVIDE( esp_rom_spiflash_write_status = 0x40000184 ); -PROVIDE( spi_flash_attach = 0x40000188 ); -PROVIDE( spi_flash_get_chip_size = 0x4000018c ); -PROVIDE( spi_flash_guard_set = 0x40000190 ); -PROVIDE( spi_flash_guard_get = 0x40000194 ); -PROVIDE( spi_flash_read_encrypted = 0x40000198 ); -PROVIDE( spi_flash_mmap_os_func_set = 0x4000019c ); -PROVIDE( spi_flash_mmap_page_num_init = 0x400001a0 ); -PROVIDE( spi_flash_mmap = 0x400001a4 ); -PROVIDE( spi_flash_mmap_pages = 0x400001a8 ); -PROVIDE( spi_flash_munmap = 0x400001ac ); -PROVIDE( spi_flash_mmap_dump = 0x400001b0 ); -PROVIDE( spi_flash_check_and_flush_cache = 0x400001b4 ); -PROVIDE( spi_flash_mmap_get_free_pages = 0x400001b8 ); -PROVIDE( spi_flash_cache2phys = 0x400001bc ); -PROVIDE( spi_flash_phys2cache = 0x400001c0 ); -PROVIDE( spi_flash_disable_cache = 0x400001c4 ); -PROVIDE( spi_flash_restore_cache = 0x400001c8 ); -PROVIDE( spi_flash_cache_enabled = 0x400001cc ); -PROVIDE( spi_flash_enable_cache = 0x400001d0 ); -PROVIDE( spi_cache_mode_switch = 0x400001d4 ); -PROVIDE( spi_common_set_dummy_output = 0x400001d8 ); -PROVIDE( spi_common_set_flash_cs_timing = 0x400001dc ); -PROVIDE( esp_rom_spi_set_address_bit_len = 0x400001e0 ); -PROVIDE( esp_enable_cache_flash_wrap = 0x400001e4 ); -PROVIDE( SPILock = 0x400001e8 ); -PROVIDE( SPIMasterReadModeCnfig = 0x400001ec ); -PROVIDE( SPI_Common_Command = 0x400001f0 ); -PROVIDE( SPI_WakeUp = 0x400001f4 ); -PROVIDE( SPI_block_erase = 0x400001f8 ); -PROVIDE( SPI_chip_erase = 0x400001fc ); -PROVIDE( SPI_init = 0x40000200 ); -PROVIDE( SPI_page_program = 0x40000204 ); -PROVIDE( SPI_read_data = 0x40000208 ); -PROVIDE( SPI_sector_erase = 0x4000020c ); -PROVIDE( SelectSpiFunction = 0x40000210 ); -PROVIDE( SetSpiDrvs = 0x40000214 ); -PROVIDE( Wait_SPI_Idle = 0x40000218 ); -PROVIDE( spi_dummy_len_fix = 0x4000021c ); -PROVIDE( Disable_QMode = 0x40000220 ); -PROVIDE( Enable_QMode = 0x40000224 ); -/* Data (.data, .bss, .rodata) */ -PROVIDE( rom_spiflash_legacy_funcs = 0x3fcdfff0 ); -PROVIDE( rom_spiflash_legacy_data = 0x3fcdffec ); -PROVIDE( g_flash_guard_ops = 0x3fcdfff4 ); - - -/*************************************** - Group hal_soc - ***************************************/ - -/* Functions */ -PROVIDE( spi_flash_hal_poll_cmd_done = 0x40000228 ); -PROVIDE( spi_flash_hal_device_config = 0x4000022c ); -PROVIDE( spi_flash_hal_configure_host_io_mode = 0x40000230 ); -PROVIDE( spi_flash_hal_common_command = 0x40000234 ); -PROVIDE( spi_flash_hal_read = 0x40000238 ); -PROVIDE( spi_flash_hal_erase_chip = 0x4000023c ); -PROVIDE( spi_flash_hal_erase_sector = 0x40000240 ); -PROVIDE( spi_flash_hal_erase_block = 0x40000244 ); -PROVIDE( spi_flash_hal_program_page = 0x40000248 ); -PROVIDE( spi_flash_hal_set_write_protect = 0x4000024c ); -PROVIDE( spi_flash_hal_host_idle = 0x40000250 ); -PROVIDE( spi_flash_hal_check_status = 0x40000254 ); -PROVIDE( spi_flash_hal_setup_read_suspend = 0x40000258 ); -PROVIDE( spi_flash_hal_setup_auto_suspend_mode = 0x4000025c ); -PROVIDE( spi_flash_hal_setup_auto_resume_mode = 0x40000260 ); -PROVIDE( spi_flash_hal_disable_auto_suspend_mode = 0x40000264 ); -PROVIDE( spi_flash_hal_disable_auto_resume_mode = 0x40000268 ); -PROVIDE( spi_flash_hal_resume = 0x4000026c ); -PROVIDE( spi_flash_hal_suspend = 0x40000270 ); -PROVIDE( spi_flash_encryption_hal_enable = 0x40000274 ); -PROVIDE( spi_flash_encryption_hal_disable = 0x40000278 ); -PROVIDE( spi_flash_encryption_hal_prepare = 0x4000027c ); -PROVIDE( spi_flash_encryption_hal_done = 0x40000280 ); -PROVIDE( spi_flash_encryption_hal_destroy = 0x40000284 ); -PROVIDE( spi_flash_encryption_hal_check = 0x40000288 ); -PROVIDE( wdt_hal_init = 0x4000028c ); -PROVIDE( wdt_hal_deinit = 0x40000290 ); -PROVIDE( wdt_hal_config_stage = 0x40000294 ); -PROVIDE( wdt_hal_write_protect_disable = 0x40000298 ); -PROVIDE( wdt_hal_write_protect_enable = 0x4000029c ); -PROVIDE( wdt_hal_enable = 0x400002a0 ); -PROVIDE( wdt_hal_disable = 0x400002a4 ); -PROVIDE( wdt_hal_handle_intr = 0x400002a8 ); -PROVIDE( wdt_hal_feed = 0x400002ac ); -PROVIDE( wdt_hal_set_flashboot_en = 0x400002b0 ); -PROVIDE( wdt_hal_is_enabled = 0x400002b4 ); -PROVIDE( systimer_hal_init = 0x400002b8 ); -PROVIDE( systimer_hal_get_counter_value = 0x400002bc ); -PROVIDE( systimer_hal_get_time = 0x400002c0 ); -PROVIDE( systimer_hal_set_alarm_target = 0x400002c4 ); -PROVIDE( systimer_hal_set_alarm_period = 0x400002c8 ); -PROVIDE( systimer_hal_get_alarm_value = 0x400002cc ); -PROVIDE( systimer_hal_enable_alarm_int = 0x400002d0 ); -PROVIDE( systimer_hal_on_apb_freq_update = 0x400002d4 ); -PROVIDE( systimer_hal_counter_value_advance = 0x400002d8 ); -PROVIDE( systimer_hal_enable_counter = 0x400002dc ); -PROVIDE( systimer_hal_select_alarm_mode = 0x400002e0 ); -PROVIDE( systimer_hal_connect_alarm_counter = 0x400002e4 ); -PROVIDE( systimer_hal_counter_can_stall_by_cpu = 0x400002e8 ); - - -/*************************************** - Group heap - ***************************************/ - -/* Functions */ -PROVIDE( tlsf_create = 0x400002ec ); -PROVIDE( tlsf_create_with_pool = 0x400002f0 ); -PROVIDE( tlsf_get_pool = 0x400002f4 ); -PROVIDE( tlsf_add_pool = 0x400002f8 ); -PROVIDE( tlsf_remove_pool = 0x400002fc ); -PROVIDE( tlsf_malloc = 0x40000300 ); -PROVIDE( tlsf_memalign = 0x40000304 ); -PROVIDE( tlsf_memalign_offs = 0x40000308 ); -PROVIDE( tlsf_realloc = 0x4000030c ); -PROVIDE( tlsf_free = 0x40000310 ); -PROVIDE( tlsf_block_size = 0x40000314 ); -PROVIDE( tlsf_size = 0x40000318 ); -PROVIDE( tlsf_align_size = 0x4000031c ); -PROVIDE( tlsf_block_size_min = 0x40000320 ); -PROVIDE( tlsf_block_size_max = 0x40000324 ); -PROVIDE( tlsf_pool_overhead = 0x40000328 ); -PROVIDE( tlsf_alloc_overhead = 0x4000032c ); -PROVIDE( tlsf_walk_pool = 0x40000330 ); -PROVIDE( tlsf_check = 0x40000334 ); -PROVIDE( tlsf_check_pool = 0x40000338 ); -PROVIDE( tlsf_poison_fill_pfunc_set = 0x4000033c ); -PROVIDE( multi_heap_get_block_address_impl = 0x40000340 ); -PROVIDE( multi_heap_get_allocated_size_impl = 0x40000344 ); -PROVIDE( multi_heap_register_impl = 0x40000348 ); -PROVIDE( multi_heap_set_lock = 0x4000034c ); -PROVIDE( multi_heap_mutex_init = 0x40000350 ); -PROVIDE( multi_heap_internal_lock = 0x40000354 ); -PROVIDE( multi_heap_internal_unlock = 0x40000358 ); -PROVIDE( multi_heap_get_first_block = 0x4000035c ); -PROVIDE( multi_heap_get_next_block = 0x40000360 ); -PROVIDE( multi_heap_is_free = 0x40000364 ); -PROVIDE( multi_heap_malloc_impl = 0x40000368 ); -PROVIDE( multi_heap_free_impl = 0x4000036c ); -PROVIDE( multi_heap_realloc_impl = 0x40000370 ); -PROVIDE( multi_heap_aligned_alloc_impl_offs = 0x40000374 ); -PROVIDE( multi_heap_aligned_alloc_impl = 0x40000378 ); -PROVIDE( multi_heap_check = 0x4000037c ); -PROVIDE( multi_heap_dump = 0x40000380 ); -PROVIDE( multi_heap_free_size_impl = 0x40000384 ); -PROVIDE( multi_heap_minimum_free_size_impl = 0x40000388 ); -PROVIDE( multi_heap_get_info_impl = 0x4000038c ); -/* Data (.data, .bss, .rodata) */ -PROVIDE( heap_tlsf_table_ptr = 0x3fcdffe8 ); - - -/*************************************** - Group spi_flash_chips - ***************************************/ - -/* Functions */ -PROVIDE( spi_flash_chip_generic_probe = 0x40000390 ); -PROVIDE( spi_flash_chip_generic_detect_size = 0x40000394 ); -PROVIDE( spi_flash_chip_generic_write = 0x40000398 ); -PROVIDE( spi_flash_chip_generic_write_encrypted = 0x4000039c ); -PROVIDE( spi_flash_chip_generic_set_write_protect = 0x400003a0 ); -PROVIDE( spi_flash_common_write_status_16b_wrsr = 0x400003a4 ); -PROVIDE( spi_flash_chip_generic_reset = 0x400003a8 ); -PROVIDE( spi_flash_chip_generic_erase_chip = 0x400003ac ); -PROVIDE( spi_flash_chip_generic_erase_sector = 0x400003b0 ); -PROVIDE( spi_flash_chip_generic_erase_block = 0x400003b4 ); -PROVIDE( spi_flash_chip_generic_page_program = 0x400003b8 ); -PROVIDE( spi_flash_chip_generic_get_write_protect = 0x400003bc ); -PROVIDE( spi_flash_common_read_status_16b_rdsr_rdsr2 = 0x400003c0 ); -PROVIDE( spi_flash_chip_generic_read_reg = 0x400003c4 ); -PROVIDE( spi_flash_chip_generic_yield = 0x400003c8 ); -PROVIDE( spi_flash_generic_wait_host_idle = 0x400003cc ); -PROVIDE( spi_flash_chip_generic_wait_idle = 0x400003d0 ); -PROVIDE( spi_flash_chip_generic_config_host_io_mode = 0x400003d4 ); -PROVIDE( spi_flash_chip_generic_read = 0x400003d8 ); -PROVIDE( spi_flash_common_read_status_8b_rdsr2 = 0x400003dc ); -PROVIDE( spi_flash_chip_generic_get_io_mode = 0x400003e0 ); -PROVIDE( spi_flash_common_read_status_8b_rdsr = 0x400003e4 ); -PROVIDE( spi_flash_common_write_status_8b_wrsr = 0x400003e8 ); -PROVIDE( spi_flash_common_write_status_8b_wrsr2 = 0x400003ec ); -PROVIDE( spi_flash_common_set_io_mode = 0x400003f0 ); -PROVIDE( spi_flash_chip_generic_set_io_mode = 0x400003f4 ); -PROVIDE( spi_flash_chip_generic_read_unique_id = 0x400003f8 ); -PROVIDE( spi_flash_chip_generic_get_caps = 0x400003fc ); -PROVIDE( spi_flash_chip_generic_suspend_cmd_conf = 0x40000400 ); -PROVIDE( spi_flash_chip_gd_get_io_mode = 0x40000404 ); -PROVIDE( spi_flash_chip_gd_probe = 0x40000408 ); -PROVIDE( spi_flash_chip_gd_set_io_mode = 0x4000040c ); -/* Data (.data, .bss, .rodata) */ -PROVIDE( spi_flash_chip_generic_config_data = 0x3fcdffe4 ); -PROVIDE( spi_flash_encryption = 0x3fcdffe0 ); - - -/*************************************** - Group memspi_host - ***************************************/ - -/* Functions */ -PROVIDE( memspi_host_read_id_hs = 0x40000410 ); -PROVIDE( memspi_host_read_status_hs = 0x40000414 ); -PROVIDE( memspi_host_flush_cache = 0x40000418 ); -PROVIDE( memspi_host_erase_chip = 0x4000041c ); -PROVIDE( memspi_host_erase_sector = 0x40000420 ); -PROVIDE( memspi_host_erase_block = 0x40000424 ); -PROVIDE( memspi_host_program_page = 0x40000428 ); -PROVIDE( memspi_host_read = 0x4000042c ); -PROVIDE( memspi_host_set_write_protect = 0x40000430 ); -PROVIDE( memspi_host_set_max_read_len = 0x40000434 ); -PROVIDE( memspi_host_read_data_slicer = 0x40000438 ); -PROVIDE( memspi_host_write_data_slicer = 0x4000043c ); - - -/*************************************** - Group esp_flash - ***************************************/ - -/* Functions */ -PROVIDE( esp_flash_chip_driver_initialized = 0x40000440 ); -PROVIDE( esp_flash_read_id = 0x40000444 ); -PROVIDE( esp_flash_get_size = 0x40000448 ); -PROVIDE( esp_flash_erase_chip = 0x4000044c ); -PROVIDE( esp_flash_erase_region = 0x40000450 ); -PROVIDE( esp_flash_get_chip_write_protect = 0x40000454 ); -PROVIDE( esp_flash_set_chip_write_protect = 0x40000458 ); -PROVIDE( esp_flash_get_protectable_regions = 0x4000045c ); -PROVIDE( esp_flash_get_protected_region = 0x40000460 ); -PROVIDE( esp_flash_set_protected_region = 0x40000464 ); -PROVIDE( esp_flash_read = 0x40000468 ); -PROVIDE( esp_flash_write = 0x4000046c ); -PROVIDE( esp_flash_write_encrypted = 0x40000470 ); -PROVIDE( esp_flash_read_encrypted = 0x40000474 ); -PROVIDE( esp_flash_get_io_mode = 0x40000478 ); -PROVIDE( esp_flash_set_io_mode = 0x4000047c ); -PROVIDE( spi_flash_boot_attach = 0x40000480 ); -PROVIDE( esp_flash_read_chip_id = 0x40000484 ); -PROVIDE( detect_spi_flash_chip = 0x40000488 ); -PROVIDE( esp_rom_spiflash_write_disable = 0x4000048c ); -PROVIDE( esp_flash_suspend_cmd_init = 0x40000490 ); -/* Data (.data, .bss, .rodata) */ -PROVIDE( esp_flash_default_chip = 0x3fcdffdc ); -PROVIDE( esp_flash_api_funcs = 0x3fcdffd8 ); - - -/*************************************** - Group cache - ***************************************/ - -/* Functions */ -PROVIDE( Cache_Get_ICache_Line_Size = 0x400006f0 ); -PROVIDE( Cache_Get_Mode = 0x400006f4 ); -PROVIDE( Cache_Address_Through_IBus = 0x400006f8 ); -PROVIDE( Cache_Address_Through_DBus = 0x400006fc ); -PROVIDE( Cache_Set_Default_Mode = 0x40000700 ); -PROVIDE( Cache_Enable_Defalut_ICache_Mode = 0x40000704 ); -PROVIDE( ROM_Boot_Cache_Init = 0x40000708 ); -PROVIDE( Cache_Invalidate_ICache_Items = 0x4000070c ); -PROVIDE( Cache_Op_Addr = 0x40000710 ); -PROVIDE( Cache_Invalidate_Addr = 0x40000714 ); -PROVIDE( Cache_Invalidate_ICache_All = 0x40000718 ); -PROVIDE( Cache_Mask_All = 0x4000071c ); -PROVIDE( Cache_UnMask_Dram0 = 0x40000720 ); -PROVIDE( Cache_Suspend_ICache_Autoload = 0x40000724 ); -PROVIDE( Cache_Resume_ICache_Autoload = 0x40000728 ); -PROVIDE( Cache_Start_ICache_Preload = 0x4000072c ); -PROVIDE( Cache_ICache_Preload_Done = 0x40000730 ); -PROVIDE( Cache_End_ICache_Preload = 0x40000734 ); -PROVIDE( Cache_Config_ICache_Autoload = 0x40000738 ); -PROVIDE( Cache_Enable_ICache_Autoload = 0x4000073c ); -PROVIDE( Cache_Disable_ICache_Autoload = 0x40000740 ); -PROVIDE( Cache_Enable_ICache_PreLock = 0x40000744 ); -PROVIDE( Cache_Disable_ICache_PreLock = 0x40000748 ); -PROVIDE( Cache_Lock_ICache_Items = 0x4000074c ); -PROVIDE( Cache_Unlock_ICache_Items = 0x40000750 ); -PROVIDE( Cache_Lock_Addr = 0x40000754 ); -PROVIDE( Cache_Unlock_Addr = 0x40000758 ); -PROVIDE( Cache_Disable_ICache = 0x4000075c ); -PROVIDE( Cache_Enable_ICache = 0x40000760 ); -PROVIDE( Cache_Suspend_ICache = 0x40000764 ); -PROVIDE( Cache_Resume_ICache = 0x40000768 ); -PROVIDE( Cache_Freeze_ICache_Enable = 0x4000076c ); -PROVIDE( Cache_Freeze_ICache_Disable = 0x40000770 ); -PROVIDE( Cache_Pms_Lock = 0x40000774 ); -PROVIDE( Cache_Ibus_Pms_Set_Addr = 0x40000778 ); -PROVIDE( Cache_Ibus_Pms_Set_Attr = 0x4000077c ); -PROVIDE( Cache_Dbus_Pms_Set_Addr = 0x40000780 ); -PROVIDE( Cache_Dbus_Pms_Set_Attr = 0x40000784 ); -PROVIDE( Cache_Set_IDROM_MMU_Size = 0x40000788 ); -PROVIDE( Cache_Get_IROM_MMU_End = 0x4000078c ); -PROVIDE( Cache_Get_DROM_MMU_End = 0x40000790 ); -PROVIDE( Cache_Owner_Init = 0x40000794 ); -PROVIDE( Cache_Occupy_ICache_MEMORY = 0x40000798 ); -PROVIDE( Cache_MMU_Init = 0x4000079c ); -PROVIDE( Cache_Ibus_MMU_Set = 0x400007a0 ); -PROVIDE( Cache_Dbus_MMU_Set = 0x400007a4 ); -PROVIDE( Cache_Count_Flash_Pages = 0x400007a8 ); -PROVIDE( Cache_Travel_Tag_Memory = 0x400007ac ); -PROVIDE( Cache_Get_Virtual_Addr = 0x400007b0 ); -PROVIDE( Cache_Get_Memory_BaseAddr = 0x400007b4 ); -PROVIDE( Cache_Get_Memory_Addr = 0x400007b8 ); -PROVIDE( Cache_Get_Memory_value = 0x400007bc ); -/* Data (.data, .bss, .rodata) */ -PROVIDE( rom_cache_op_cb = 0x3fcdffcc ); -PROVIDE( rom_cache_internal_table_ptr = 0x3fcdffc8 ); - - -/*************************************** - Group clock - ***************************************/ - -/* Functions */ -ets_get_apb_freq = 0x400007c0; -ets_get_cpu_frequency = 0x400007c4; -ets_update_cpu_frequency = 0x400007c8; -ets_get_printf_channel = 0x400007cc; -ets_get_xtal_div = 0x400007d0; -ets_set_xtal_div = 0x400007d4; -ets_get_xtal_freq = 0x400007d8; - - -/*************************************** - Group gpio - ***************************************/ - -/* Functions */ -gpio_input_get = 0x400007dc; -gpio_matrix_in = 0x400007e0; -gpio_matrix_out = 0x400007e4; -gpio_output_disable = 0x400007e8; -gpio_output_enable = 0x400007ec; -gpio_output_set = 0x400007f0; -gpio_pad_hold = 0x400007f4; -gpio_pad_input_disable = 0x400007f8; -gpio_pad_input_enable = 0x400007fc; -gpio_pad_pulldown = 0x40000800; -gpio_pad_pullup = 0x40000804; -gpio_pad_select_gpio = 0x40000808; -gpio_pad_set_drv = 0x4000080c; -gpio_pad_unhold = 0x40000810; -gpio_pin_wakeup_disable = 0x40000814; -gpio_pin_wakeup_enable = 0x40000818; -gpio_bypass_matrix_in = 0x4000081c; - - -/*************************************** - Group interrupts - ***************************************/ - -/* Functions */ -esprv_intc_int_set_priority = 0x40000820; -esprv_intc_int_set_threshold = 0x40000824; -esprv_intc_int_enable = 0x40000828; -esprv_intc_int_disable = 0x4000082c; -esprv_intc_int_set_type = 0x40000830; -PROVIDE( intr_handler_set = 0x40000834 ); -intr_matrix_set = 0x40000838; -ets_intr_lock = 0x4000083c; -ets_intr_unlock = 0x40000840; -ets_isr_attach = 0x40000844; -ets_isr_mask = 0x40000848; -ets_isr_unmask = 0x4000084c; - - -/*************************************** - Group crypto - ***************************************/ - -/* Functions */ -md5_vector = 0x40000850; -MD5Init = 0x40000854; -MD5Update = 0x40000858; -MD5Final = 0x4000085c; -crc32_le = 0x40000860; -crc16_le = 0x40000864; -crc8_le = 0x40000868; -crc32_be = 0x4000086c; -crc16_be = 0x40000870; -crc8_be = 0x40000874; -esp_crc8 = 0x40000878; -ets_sha_enable = 0x4000087c; -ets_sha_disable = 0x40000880; -ets_sha_get_state = 0x40000884; -ets_sha_init = 0x40000888; -ets_sha_process = 0x4000088c; -ets_sha_starts = 0x40000890; -ets_sha_update = 0x40000894; -ets_sha_finish = 0x40000898; -ets_sha_clone = 0x4000089c; -ets_hmac_enable = 0x400008a0; -ets_hmac_disable = 0x400008a4; -ets_hmac_calculate_message = 0x400008a8; -ets_hmac_calculate_downstream = 0x400008ac; -ets_hmac_invalidate_downstream = 0x400008b0; -ets_jtag_enable_temporarily = 0x400008b4; -ets_aes_enable = 0x400008b8; -ets_aes_disable = 0x400008bc; -ets_aes_setkey = 0x400008c0; -ets_aes_block = 0x400008c4; -ets_aes_setkey_dec = 0x400008c8; -ets_aes_setkey_enc = 0x400008cc; -ets_bigint_enable = 0x400008d0; -ets_bigint_disable = 0x400008d4; -ets_bigint_multiply = 0x400008d8; -ets_bigint_modmult = 0x400008dc; -ets_bigint_modexp = 0x400008e0; -ets_bigint_wait_finish = 0x400008e4; -ets_bigint_getz = 0x400008e8; -ets_ds_enable = 0x400008ec; -ets_ds_disable = 0x400008f0; -ets_ds_start_sign = 0x400008f4; -ets_ds_is_busy = 0x400008f8; -ets_ds_finish_sign = 0x400008fc; -ets_ds_encrypt_params = 0x40000900; -ets_mgf1_sha256 = 0x40000904; -/* Data (.data, .bss, .rodata) */ -crc32_le_table_ptr = 0x3ff1fff8; -crc16_le_table_ptr = 0x3ff1fff4; -crc8_le_table_ptr = 0x3ff1fff0; -crc32_be_table_ptr = 0x3ff1ffec; -crc16_be_table_ptr = 0x3ff1ffe8; -crc8_be_table_ptr = 0x3ff1ffe4; - - -/*************************************** - Group efuse - ***************************************/ - -/* Functions */ -ets_efuse_read = 0x40000908; -ets_efuse_program = 0x4000090c; -ets_efuse_clear_program_registers = 0x40000910; -ets_efuse_write_key = 0x40000914; -ets_efuse_get_read_register_address = 0x40000918; -ets_efuse_get_key_purpose = 0x4000091c; -ets_efuse_key_block_unused = 0x40000920; -ets_efuse_find_unused_key_block = 0x40000924; -ets_efuse_rs_calculate = 0x40000928; -ets_efuse_count_unused_key_blocks = 0x4000092c; -ets_efuse_secure_boot_enabled = 0x40000930; -ets_efuse_secure_boot_aggressive_revoke_enabled = 0x40000934; -ets_efuse_cache_encryption_enabled = 0x40000938; -ets_efuse_download_modes_disabled = 0x4000093c; -ets_efuse_find_purpose = 0x40000940; -ets_efuse_force_send_resume = 0x40000944; -ets_efuse_get_flash_delay_us = 0x40000948; -ets_efuse_get_mac = 0x4000094c; -ets_efuse_get_uart_print_control = 0x40000950; -ets_efuse_direct_boot_mode_disabled = 0x40000954; -ets_efuse_security_download_modes_enabled = 0x40000958; -ets_efuse_set_timing = 0x4000095c; -ets_efuse_jtag_disabled = 0x40000960; -ets_efuse_get_spiconfig = 0x40000964; -ets_efuse_get_wp_pad = 0x40000968; -ets_efuse_usb_print_is_disabled = 0x4000096c; -ets_efuse_usb_download_mode_disabled = 0x40000970; -ets_efuse_usb_module_disabled = 0x40000974; -ets_efuse_usb_device_disabled = 0x40000978; -ets_efuse_secure_boot_fast_wake_enabled = 0x4000097c; - - -/*************************************** - Group secureboot - ***************************************/ - -/* Functions */ -ets_emsa_pss_verify = 0x40000980; -ets_rsa_pss_verify = 0x40000984; -ets_secure_boot_verify_bootloader_with_keys = 0x40000988; -ets_secure_boot_verify_signature = 0x4000098c; -ets_secure_boot_read_key_digests = 0x40000990; -ets_secure_boot_revoke_public_key_digest = 0x40000994; - - -/*************************************** - Group btdm - ***************************************/ - -/* Functions */ -ble_controller_rom_data_init = 0x40000b08; -ble_osi_coex_funcs_register = 0x40000b0c; -bt_rf_coex_cfg_get_default = 0x40000b10; -bt_rf_coex_dft_pti_get_default = 0x40000b14; -bt_rf_coex_hooks_p_set = 0x40000b18; -r__os_mbuf_copypkthdr = 0x40000b1c; -r__os_msys_find_pool = 0x40000b20; -r_ble_controller_get_rom_compile_version = 0x40000b24; -r_ble_hci_ram_hs_acl_tx = 0x40000b28; -r_ble_hci_ram_hs_cmd_tx = 0x40000b2c; -r_ble_hci_ram_ll_acl_tx = 0x40000b30; -r_ble_hci_ram_ll_evt_tx = 0x40000b34; -r_ble_hci_ram_reset = 0x40000b38; -r_ble_hci_ram_set_acl_free_cb = 0x40000b3c; -r_ble_hci_trans_acl_buf_alloc = 0x40000b40; -r_ble_hci_trans_buf_alloc = 0x40000b44; -r_ble_hci_trans_buf_free = 0x40000b48; -r_ble_hci_trans_cfg_hs = 0x40000b4c; -r_ble_hci_trans_cfg_ll = 0x40000b50; -r_ble_hci_trans_deinit = 0x40000b54; -r_ble_hci_trans_env_init = 0x40000b58; -r_ble_hci_trans_init = 0x40000b5c; -r_ble_hci_uart_acl_tx = 0x40000b60; -r_ble_hci_uart_cmdevt_tx = 0x40000b64; -r_ble_hci_uart_config = 0x40000b68; -r_ble_hci_uart_free_pkt = 0x40000b6c; -r_ble_hci_uart_hs_acl_tx = 0x40000b70; -r_ble_hci_uart_hs_cmd_tx = 0x40000b74; -r_ble_hci_uart_ll_acl_tx = 0x40000b78; -r_ble_hci_uart_ll_evt_tx = 0x40000b7c; -r_ble_hci_uart_rx_acl = 0x40000b80; -r_ble_hci_uart_rx_char = 0x40000b84; -r_ble_hci_uart_rx_cmd = 0x40000b88; -r_ble_hci_uart_rx_evt = 0x40000b8c; -r_ble_hci_uart_rx_evt_cb = 0x40000b90; -r_ble_hci_uart_rx_le_evt = 0x40000b94; -r_ble_hci_uart_rx_pkt_type = 0x40000b98; -r_ble_hci_uart_rx_skip_acl = 0x40000b9c; -r_ble_hci_uart_rx_skip_cmd = 0x40000ba0; -r_ble_hci_uart_rx_skip_evt = 0x40000ba4; -r_ble_hci_uart_rx_sync_loss = 0x40000ba8; -r_ble_hci_uart_set_acl_free_cb = 0x40000bac; -r_ble_hci_uart_sync_lost = 0x40000bb0; -r_ble_hci_uart_trans_reset = 0x40000bb4; -r_ble_hci_uart_tx_char = 0x40000bb8; -r_ble_hci_uart_tx_pkt_type = 0x40000bbc; -r_ble_hw_driver_deinit = 0x40000bc0; -r_ble_hw_driver_env_init = 0x40000bc4; -r_ble_hw_encrypt_block = 0x40000bc8; -r_ble_hw_get_public_addr = 0x40000bcc; -r_ble_hw_get_static_addr = 0x40000bd0; -r_ble_hw_periodiclist_add = 0x40000bd4; -r_ble_hw_periodiclist_clear = 0x40000bd8; -r_ble_hw_periodiclist_rmv = 0x40000bdc; -r_ble_hw_resolv_list_cur_entry = 0x40000be0; -r_ble_hw_resolv_list_match = 0x40000be4; -r_ble_hw_resolv_list_set = 0x40000be8; -r_ble_hw_rng_init = 0x40000bec; -r_ble_hw_rng_start = 0x40000bf0; -r_ble_hw_rng_stop = 0x40000bf4; -r_ble_hw_rx_local_is_rpa = 0x40000bf8; -r_ble_hw_whitelist_add = 0x40000bfc; -r_ble_hw_whitelist_clear = 0x40000c00; -r_ble_hw_whitelist_dev_num = 0x40000c04; -r_ble_hw_whitelist_get_base = 0x40000c08; -r_ble_hw_whitelist_rmv = 0x40000c0c; -r_ble_hw_whitelist_search = 0x40000c10; -r_ble_hw_whitelist_sort = 0x40000c14; -r_ble_ll_acl_data_in = 0x40000c18; -r_ble_ll_addr_is_id = 0x40000c1c; -r_ble_ll_addr_subtype = 0x40000c20; -r_ble_ll_adv_active_chanset_clear = 0x40000c24; -r_ble_ll_adv_active_chanset_is_pri = 0x40000c28; -r_ble_ll_adv_active_chanset_is_sec = 0x40000c2c; -r_ble_ll_adv_active_chanset_set_pri = 0x40000c30; -r_ble_ll_adv_active_chanset_set_sec = 0x40000c34; -r_ble_ll_adv_aux_calculate = 0x40000c38; -r_ble_ll_adv_aux_conn_rsp_pdu_make = 0x40000c3c; -r_ble_ll_adv_aux_pdu_make = 0x40000c40; -r_ble_ll_adv_aux_scannable_pdu_make = 0x40000c44; -r_ble_ll_adv_aux_scannable_pdu_payload_len = 0x40000c48; -r_ble_ll_adv_aux_schedule = 0x40000c4c; -r_ble_ll_adv_aux_schedule_first = 0x40000c50; -r_ble_ll_adv_aux_schedule_next = 0x40000c54; -r_ble_ll_adv_aux_scheduled = 0x40000c58; -r_ble_ll_adv_aux_set_start_time = 0x40000c5c; -r_ble_ll_adv_aux_txed = 0x40000c60; -r_ble_ll_adv_can_chg_whitelist = 0x40000c64; -r_ble_ll_adv_chk_rpa_timeout = 0x40000c68; -r_ble_ll_adv_clear_all = 0x40000c6c; -r_ble_ll_adv_coex_dpc_calc_pti_update_itvl = 0x40000c70; -r_ble_ll_adv_coex_dpc_process_pri = 0x40000c74; -r_ble_ll_adv_coex_dpc_process_sec = 0x40000c78; -r_ble_ll_adv_coex_dpc_pti_get = 0x40000c7c; -r_ble_ll_adv_coex_dpc_update = 0x40000c80; -r_ble_ll_adv_coex_dpc_update_on_adv_start = 0x40000c84; -r_ble_ll_adv_coex_dpc_update_on_aux_scheduled = 0x40000c88; -r_ble_ll_adv_coex_dpc_update_on_data_updated = 0x40000c8c; -r_ble_ll_adv_coex_dpc_update_on_event_end = 0x40000c90; -r_ble_ll_adv_coex_dpc_update_on_event_scheduled = 0x40000c94; -r_ble_ll_adv_conn_req_rxd = 0x40000c98; -r_ble_ll_adv_deinit = 0x40000c9c; -r_ble_ll_adv_done = 0x40000ca0; -r_ble_ll_adv_drop_event = 0x40000ca4; -r_ble_ll_adv_enabled = 0x40000ca8; -r_ble_ll_adv_env_init = 0x40000cac; -r_ble_ll_adv_event_done = 0x40000cb0; -r_ble_ll_adv_event_rmvd_from_sched = 0x40000cb4; -r_ble_ll_adv_ext_estimate_data_itvl = 0x40000cb8; -r_ble_ll_adv_ext_set_adv_data = 0x40000cbc; -r_ble_ll_adv_ext_set_enable = 0x40000cc0; -r_ble_ll_adv_ext_set_param = 0x40000cc4; -r_ble_ll_adv_ext_set_scan_rsp = 0x40000cc8; -r_ble_ll_adv_final_chan = 0x40000ccc; -r_ble_ll_adv_first_chan = 0x40000cd0; -r_ble_ll_adv_flags_clear = 0x40000cd4; -r_ble_ll_adv_flags_set = 0x40000cd8; -r_ble_ll_adv_get_local_rpa = 0x40000cdc; -r_ble_ll_adv_get_peer_rpa = 0x40000ce0; -r_ble_ll_adv_get_sec_pdu_len = 0x40000ce4; -r_ble_ll_adv_halt = 0x40000ce8; -r_ble_ll_adv_hci_set_random_addr = 0x40000cec; -r_ble_ll_adv_init = 0x40000cf0; -r_ble_ll_adv_legacy_pdu_make = 0x40000cf4; -r_ble_ll_adv_make_done = 0x40000cf8; -r_ble_ll_adv_pdu_make = 0x40000cfc; -r_ble_ll_adv_periodic_check_data_itvl = 0x40000d00; -r_ble_ll_adv_periodic_done = 0x40000d04; -r_ble_ll_adv_periodic_enable = 0x40000d08; -r_ble_ll_adv_periodic_estimate_data_itvl = 0x40000d0c; -r_ble_ll_adv_periodic_event_done = 0x40000d10; -r_ble_ll_adv_periodic_rmvd_from_sched = 0x40000d14; -r_ble_ll_adv_periodic_schedule_first = 0x40000d18; -r_ble_ll_adv_periodic_schedule_next = 0x40000d1c; -r_ble_ll_adv_periodic_send_sync_ind = 0x40000d20; -r_ble_ll_adv_periodic_set_data = 0x40000d24; -r_ble_ll_adv_periodic_set_info_transfer = 0x40000d28; -r_ble_ll_adv_periodic_set_param = 0x40000d2c; -r_ble_ll_adv_put_aux_ptr = 0x40000d30; -r_ble_ll_adv_put_syncinfo = 0x40000d34; -r_ble_ll_adv_rd_max_adv_data_len = 0x40000d38; -r_ble_ll_adv_rd_sup_adv_sets = 0x40000d3c; -r_ble_ll_adv_read_txpwr = 0x40000d40; -r_ble_ll_adv_remove = 0x40000d44; -r_ble_ll_adv_reschedule_event = 0x40000d48; -r_ble_ll_adv_reschedule_periodic_event = 0x40000d4c; -r_ble_ll_adv_reset = 0x40000d50; -r_ble_ll_adv_rpa_timeout = 0x40000d54; -r_ble_ll_adv_rpa_update = 0x40000d58; -r_ble_ll_adv_rx_isr_end = 0x40000d5c; -r_ble_ll_adv_rx_isr_start = 0x40000d60; -r_ble_ll_adv_rx_pkt_in = 0x40000d64; -r_ble_ll_adv_rx_req = 0x40000d68; -r_ble_ll_adv_scan_rsp_legacy_pdu_make = 0x40000d6c; -r_ble_ll_adv_scan_rsp_pdu_make = 0x40000d70; -r_ble_ll_adv_scheduled = 0x40000d74; -r_ble_ll_adv_sec_done = 0x40000d78; -r_ble_ll_adv_sec_event_done = 0x40000d7c; -r_ble_ll_adv_secondary_tx_start_cb = 0x40000d80; -r_ble_ll_adv_send_conn_comp_ev = 0x40000d84; -r_ble_ll_adv_set_adv_data = 0x40000d88; -r_ble_ll_adv_set_adv_params = 0x40000d8c; -r_ble_ll_adv_set_enable = 0x40000d90; -r_ble_ll_adv_set_random_addr = 0x40000d94; -r_ble_ll_adv_set_scan_rsp_data = 0x40000d98; -r_ble_ll_adv_set_sched = 0x40000d9c; -r_ble_ll_adv_sm_deinit = 0x40000da0; -r_ble_ll_adv_sm_event_init = 0x40000da4; -r_ble_ll_adv_sm_event_restore = 0x40000da8; -r_ble_ll_adv_sm_event_store = 0x40000dac; -r_ble_ll_adv_sm_find_configured = 0x40000db0; -r_ble_ll_adv_sm_get = 0x40000db4; -r_ble_ll_adv_sm_init = 0x40000db8; -r_ble_ll_adv_sm_reset = 0x40000dbc; -r_ble_ll_adv_sm_start = 0x40000dc0; -r_ble_ll_adv_sm_start_periodic = 0x40000dc4; -r_ble_ll_adv_sm_stop = 0x40000dc8; -r_ble_ll_adv_sm_stop_limit_reached = 0x40000dcc; -r_ble_ll_adv_sm_stop_periodic = 0x40000dd0; -r_ble_ll_adv_sm_stop_timeout = 0x40000dd4; -r_ble_ll_adv_sync_calculate = 0x40000dd8; -r_ble_ll_adv_sync_get_pdu_len = 0x40000ddc; -r_ble_ll_adv_sync_next_scheduled = 0x40000de0; -r_ble_ll_adv_sync_pdu_make = 0x40000de4; -r_ble_ll_adv_sync_schedule = 0x40000de8; -r_ble_ll_adv_sync_tx_done = 0x40000dec; -r_ble_ll_adv_sync_tx_end = 0x40000df0; -r_ble_ll_adv_sync_tx_start_cb = 0x40000df4; -r_ble_ll_adv_tx_done = 0x40000df8; -r_ble_ll_adv_tx_start_cb = 0x40000dfc; -r_ble_ll_adv_update_adv_scan_rsp_data = 0x40000e00; -r_ble_ll_adv_update_data_mbuf = 0x40000e04; -r_ble_ll_adv_update_did = 0x40000e08; -r_ble_ll_adv_update_periodic_data = 0x40000e0c; -r_ble_ll_adv_update_rsp_offset = 0x40000e10; -r_ble_ll_adv_wfr_timer_exp = 0x40000e14; -r_ble_ll_arr_pool_init = 0x40000e18; -r_ble_ll_auth_pyld_tmo_event_send = 0x40000e1c; -r_ble_ll_aux_scan_cb = 0x40000e20; -r_ble_ll_aux_scan_drop = 0x40000e24; -r_ble_ll_aux_scan_drop_event_cb = 0x40000e28; -r_ble_ll_calc_offset_ticks_us_for_rampup = 0x40000e2c; -r_ble_ll_calc_session_key = 0x40000e30; -r_ble_ll_calc_ticks_per_slot = 0x40000e34; -r_ble_ll_calc_us_convert_tick_unit = 0x40000e38; -r_ble_ll_check_scan_params = 0x40000e3c; -r_ble_ll_chk_txrx_octets = 0x40000e40; -r_ble_ll_chk_txrx_time = 0x40000e44; -r_ble_ll_conn_adjust_pyld_len = 0x40000e48; -r_ble_ll_conn_auth_pyld_timer_cb = 0x40000e4c; -r_ble_ll_conn_auth_pyld_timer_start = 0x40000e50; -r_ble_ll_conn_calc_dci = 0x40000e54; -r_ble_ll_conn_calc_dci_csa1 = 0x40000e58; -r_ble_ll_conn_calc_itvl_ticks = 0x40000e5c; -r_ble_ll_conn_can_send_next_pdu = 0x40000e60; -r_ble_ll_conn_chk_csm_flags = 0x40000e64; -r_ble_ll_conn_chk_phy_upd_start = 0x40000e68; -r_ble_ll_conn_coex_dpc_process = 0x40000e6c; -r_ble_ll_conn_coex_dpc_pti_get = 0x40000e70; -r_ble_ll_conn_coex_dpc_update = 0x40000e74; -r_ble_ll_conn_coex_dpc_update_on_event_scheduled = 0x40000e78; -r_ble_ll_conn_comp_event_send = 0x40000e7c; -r_ble_ll_conn_connect_ind_pdu_make = 0x40000e80; -r_ble_ll_conn_create = 0x40000e84; -r_ble_ll_conn_create_cancel = 0x40000e88; -r_ble_ll_conn_created = 0x40000e8c; -r_ble_ll_conn_cth_flow_alloc_credit = 0x40000e90; -r_ble_ll_conn_cth_flow_enable = 0x40000e94; -r_ble_ll_conn_cth_flow_error_fn = 0x40000e98; -r_ble_ll_conn_cth_flow_free_credit = 0x40000e9c; -r_ble_ll_conn_cth_flow_have_credit = 0x40000ea0; -r_ble_ll_conn_cth_flow_is_enabled = 0x40000ea4; -r_ble_ll_conn_cth_flow_process_cmd = 0x40000ea8; -r_ble_ll_conn_cth_flow_set_buffers = 0x40000eac; -r_ble_ll_conn_cur_pducb = 0x40000eb0; -r_ble_ll_conn_current_sm_over = 0x40000eb4; -r_ble_ll_conn_end = 0x40000eb8; -r_ble_ll_conn_enqueue_pkt = 0x40000ebc; -r_ble_ll_conn_env_init = 0x40000ec0; -r_ble_ll_conn_event_end = 0x40000ec4; -r_ble_ll_conn_event_end_timer_cb = 0x40000ec8; -r_ble_ll_conn_event_halt = 0x40000ecc; -r_ble_ll_conn_event_is_over = 0x40000ed0; -r_ble_ll_conn_event_start_cb = 0x40000ed4; -r_ble_ll_conn_ext_master_init = 0x40000ed8; -r_ble_ll_conn_ext_set_params = 0x40000edc; -r_ble_ll_conn_find_active_conn = 0x40000ee0; -r_ble_ll_conn_get_anchor = 0x40000ee4; -r_ble_ll_conn_get_ce_end_time = 0x40000ee8; -r_ble_ll_conn_get_new_pdu = 0x40000eec; -r_ble_ll_conn_get_next_sched_time = 0x40000ef0; -r_ble_ll_conn_halt = 0x40000ef4; -r_ble_ll_conn_hcc_params_set_fallback = 0x40000ef8; -r_ble_ll_conn_hci_cancel_conn_complete_event = 0x40000efc; -r_ble_ll_conn_hci_chk_conn_params = 0x40000f00; -r_ble_ll_conn_hci_chk_scan_params = 0x40000f04; -r_ble_ll_conn_hci_disconnect_cmd = 0x40000f08; -r_ble_ll_conn_hci_le_ltk_neg_reply = 0x40000f0c; -r_ble_ll_conn_hci_le_ltk_reply = 0x40000f10; -r_ble_ll_conn_hci_le_rd_phy = 0x40000f14; -r_ble_ll_conn_hci_le_set_phy = 0x40000f18; -r_ble_ll_conn_hci_le_start_encrypt = 0x40000f1c; -r_ble_ll_conn_hci_param_nrr = 0x40000f20; -r_ble_ll_conn_hci_param_rr = 0x40000f24; -r_ble_ll_conn_hci_rd_auth_pyld_tmo = 0x40000f28; -r_ble_ll_conn_hci_rd_chan_map = 0x40000f2c; -r_ble_ll_conn_hci_rd_rem_ver_cmd = 0x40000f30; -r_ble_ll_conn_hci_rd_rssi = 0x40000f34; -r_ble_ll_conn_hci_read_rem_features = 0x40000f38; -r_ble_ll_conn_hci_set_chan_class = 0x40000f3c; -r_ble_ll_conn_hci_set_data_len = 0x40000f40; -r_ble_ll_conn_hci_update = 0x40000f44; -r_ble_ll_conn_hci_wr_auth_pyld_tmo = 0x40000f48; -r_ble_ll_conn_init_pending_aux_conn_rsp = 0x40000f4c; -r_ble_ll_conn_init_phy = 0x40000f50; -r_ble_ll_conn_init_wfr_timer_exp = 0x40000f54; -r_ble_ll_conn_is_empty_pdu = 0x40000f58; -r_ble_ll_conn_is_lru = 0x40000f5c; -r_ble_ll_conn_master_common_init = 0x40000f60; -r_ble_ll_conn_master_init = 0x40000f64; -r_ble_ll_conn_module_deinit = 0x40000f68; -r_ble_ll_conn_module_init = 0x40000f6c; -r_ble_ll_conn_module_reset = 0x40000f70; -r_ble_ll_conn_new_pducb = 0x40000f74; -r_ble_ll_conn_next_event = 0x40000f78; -r_ble_ll_conn_num_comp_pkts_event_send = 0x40000f7c; -r_ble_ll_conn_process_conn_params = 0x40000f80; -r_ble_ll_conn_recv_ack = 0x40000f84; -r_ble_ll_conn_reset_pending_aux_conn_rsp = 0x40000f88; -r_ble_ll_conn_rx_data_pdu = 0x40000f8c; -r_ble_ll_conn_rx_isr_end = 0x40000f90; -r_ble_ll_conn_rx_isr_start = 0x40000f94; -r_ble_ll_conn_rxend_unencrypt = 0x40000f98; -r_ble_ll_conn_set_csa = 0x40000f9c; -r_ble_ll_conn_set_global_chanmap = 0x40000fa0; -r_ble_ll_conn_set_md_flag = 0x40000fa4; -r_ble_ll_conn_set_phy = 0x40000fa8; -r_ble_ll_conn_set_slave_flow_control = 0x40000fac; -r_ble_ll_conn_set_txpwr_by_handle = 0x40000fb0; -r_ble_ll_conn_set_unknown_rx_octets = 0x40000fb4; -r_ble_ll_conn_slave_start = 0x40000fb8; -r_ble_ll_conn_sm_get = 0x40000fbc; -r_ble_ll_conn_sm_new = 0x40000fc0; -r_ble_ll_conn_sm_npl_deinit = 0x40000fc4; -r_ble_ll_conn_sm_npl_init = 0x40000fc8; -r_ble_ll_conn_start_rx_encrypt = 0x40000fcc; -r_ble_ll_conn_start_rx_unencrypt = 0x40000fd0; -r_ble_ll_conn_timeout = 0x40000fd4; -r_ble_ll_conn_tx_pdu = 0x40000fd8; -r_ble_ll_conn_tx_pkt_in = 0x40000fdc; -r_ble_ll_conn_txend_encrypt = 0x40000fe0; -r_ble_ll_conn_update_conn_params = 0x40000fe4; -r_ble_ll_conn_update_eff_data_len = 0x40000fe8; -r_ble_ll_conn_update_new_pdu_len = 0x40000fec; -r_ble_ll_conn_wait_txend = 0x40000ff0; -r_ble_ll_conn_wfr_timer_exp = 0x40000ff4; -r_ble_ll_copy_data = 0x40000ff8; -r_ble_ll_ctrl_chanmap_req_make = 0x40000ffc; -r_ble_ll_ctrl_chk_proc_start = 0x40001000; -r_ble_ll_ctrl_conn_param_pdu_make = 0x40001004; -r_ble_ll_ctrl_conn_param_pdu_proc = 0x40001008; -r_ble_ll_ctrl_conn_param_reply = 0x4000100c; -r_ble_ll_ctrl_conn_upd_make = 0x40001010; -r_ble_ll_ctrl_datalen_upd_make = 0x40001014; -r_ble_ll_ctrl_enc_allowed_pdu = 0x40001018; -r_ble_ll_ctrl_enc_allowed_pdu_rx = 0x4000101c; -r_ble_ll_ctrl_enc_allowed_pdu_tx = 0x40001020; -r_ble_ll_ctrl_enc_req_make = 0x40001024; -r_ble_ll_ctrl_find_new_phy = 0x40001028; -r_ble_ll_ctrl_initiate_dle = 0x4000102c; -r_ble_ll_ctrl_is_start_enc_rsp = 0x40001030; -r_ble_ll_ctrl_is_terminate_ind = 0x40001034; -r_ble_ll_ctrl_len_proc = 0x40001038; -r_ble_ll_ctrl_phy_from_phy_mask = 0x4000103c; -r_ble_ll_ctrl_phy_req_rsp_make = 0x40001040; -r_ble_ll_ctrl_phy_tx_transition_get = 0x40001044; -r_ble_ll_ctrl_phy_update_cancel = 0x40001048; -r_ble_ll_ctrl_phy_update_ind_make = 0x4000104c; -r_ble_ll_ctrl_phy_update_proc_complete = 0x40001050; -r_ble_ll_ctrl_proc_init = 0x40001054; -r_ble_ll_ctrl_proc_rsp_timer_cb = 0x40001058; -r_ble_ll_ctrl_proc_start = 0x4000105c; -r_ble_ll_ctrl_proc_stop = 0x40001060; -r_ble_ll_ctrl_proc_unk_rsp = 0x40001064; -r_ble_ll_ctrl_proc_with_instant_initiated = 0x40001068; -r_ble_ll_ctrl_rej_ext_ind_make = 0x4000106c; -r_ble_ll_ctrl_reject_ind_send = 0x40001070; -r_ble_ll_ctrl_rx_chanmap_req = 0x40001074; -r_ble_ll_ctrl_rx_conn_param_req = 0x40001078; -r_ble_ll_ctrl_rx_conn_param_rsp = 0x4000107c; -r_ble_ll_ctrl_rx_conn_update = 0x40001080; -r_ble_ll_ctrl_rx_enc_req = 0x40001084; -r_ble_ll_ctrl_rx_enc_rsp = 0x40001088; -r_ble_ll_ctrl_rx_feature_req = 0x4000108c; -r_ble_ll_ctrl_rx_feature_rsp = 0x40001090; -r_ble_ll_ctrl_rx_pause_enc_req = 0x40001094; -r_ble_ll_ctrl_rx_pause_enc_rsp = 0x40001098; -r_ble_ll_ctrl_rx_pdu = 0x4000109c; -r_ble_ll_ctrl_rx_periodic_sync_ind = 0x400010a0; -r_ble_ll_ctrl_rx_phy_req = 0x400010a4; -r_ble_ll_ctrl_rx_phy_rsp = 0x400010a8; -r_ble_ll_ctrl_rx_phy_update_ind = 0x400010ac; -r_ble_ll_ctrl_rx_ping_rsp = 0x400010b0; -r_ble_ll_ctrl_rx_reject_ind = 0x400010b4; -r_ble_ll_ctrl_rx_start_enc_req = 0x400010b8; -r_ble_ll_ctrl_rx_start_enc_rsp = 0x400010bc; -r_ble_ll_ctrl_rx_version_ind = 0x400010c0; -r_ble_ll_ctrl_start_enc_send = 0x400010c4; -r_ble_ll_ctrl_start_rsp_timer = 0x400010c8; -r_ble_ll_ctrl_terminate_start = 0x400010cc; -r_ble_ll_ctrl_tx_done = 0x400010d0; -r_ble_ll_ctrl_update_features = 0x400010d4; -r_ble_ll_ctrl_version_ind_make = 0x400010d8; -r_ble_ll_data_buffer_overflow = 0x400010dc; -r_ble_ll_deinit = 0x400010e0; -r_ble_ll_disconn_comp_event_send = 0x400010e4; -r_ble_ll_dtm_calculate_itvl = 0x400010e8; -r_ble_ll_dtm_ctx_free = 0x400010ec; -r_ble_ll_dtm_deinit = 0x400010f0; -r_ble_ll_dtm_end_test = 0x400010f4; -r_ble_ll_dtm_ev_rx_restart_cb = 0x400010f8; -r_ble_ll_dtm_ev_tx_resched_cb = 0x400010fc; -r_ble_ll_dtm_init = 0x40001100; -r_ble_ll_dtm_reset = 0x40001104; -r_ble_ll_dtm_rx_create_ctx = 0x40001108; -r_ble_ll_dtm_rx_isr_end = 0x4000110c; -r_ble_ll_dtm_rx_isr_start = 0x40001110; -r_ble_ll_dtm_rx_pkt_in = 0x40001114; -r_ble_ll_dtm_rx_sched_cb = 0x40001118; -r_ble_ll_dtm_rx_start = 0x4000111c; -r_ble_ll_dtm_rx_test = 0x40001120; -r_ble_ll_dtm_set_next = 0x40001124; -r_ble_ll_dtm_tx_create_ctx = 0x40001128; -r_ble_ll_dtm_tx_done = 0x4000112c; -r_ble_ll_dtm_tx_sched_cb = 0x40001130; -r_ble_ll_dtm_tx_test = 0x40001134; -r_ble_ll_dtm_wfr_timer_exp = 0x40001138; -r_ble_ll_env_init = 0x4000113c; -r_ble_ll_event_comp_pkts = 0x40001140; -r_ble_ll_event_dbuf_overflow = 0x40001144; -r_ble_ll_event_rx_pkt = 0x40001148; -r_ble_ll_event_send = 0x4000114c; -r_ble_ll_event_tx_pkt = 0x40001150; -r_ble_ll_ext_adv_phy_mode_to_local_phy = 0x40001154; -r_ble_ll_ext_conn_create = 0x40001158; -r_ble_ll_ext_scan_coex_dpc_process = 0x4000115c; -r_ble_ll_ext_scan_coex_dpc_pti_get = 0x40001160; -r_ble_ll_ext_scan_coex_dpc_update = 0x40001164; -r_ble_ll_ext_scan_coex_dpc_update_on_start = 0x40001168; -r_ble_ll_ext_scan_parse_adv_info = 0x4000116c; -r_ble_ll_ext_scan_parse_aux_ptr = 0x40001170; -r_ble_ll_flush_pkt_queue = 0x40001174; -r_ble_ll_generic_data_init = 0x40001178; -r_ble_ll_get_addr_type = 0x4000117c; -r_ble_ll_get_chan_to_scan = 0x40001180; -r_ble_ll_get_our_devaddr = 0x40001184; -r_ble_ll_get_tx_pwr_compensation = 0x40001188; -r_ble_ll_hci_acl_rx = 0x4000118c; -r_ble_ll_hci_adv_mode_ext = 0x40001190; -r_ble_ll_hci_adv_set_enable = 0x40001194; -r_ble_ll_hci_cb_host_buf_size = 0x40001198; -r_ble_ll_hci_cb_set_ctrlr_to_host_fc = 0x4000119c; -r_ble_ll_hci_cb_set_event_mask = 0x400011a0; -r_ble_ll_hci_cb_set_event_mask2 = 0x400011a4; -r_ble_ll_hci_chk_phy_masks = 0x400011a8; -r_ble_ll_hci_cmd_proc = 0x400011ac; -r_ble_ll_hci_cmd_rx = 0x400011b0; -r_ble_ll_hci_ctlr_bb_cmd_proc = 0x400011b4; -r_ble_ll_hci_deinit = 0x400011b8; -r_ble_ll_hci_disconnect = 0x400011bc; -r_ble_ll_hci_dtm_rx_test = 0x400011c0; -r_ble_ll_hci_dtm_rx_test_v2 = 0x400011c4; -r_ble_ll_hci_dtm_tx_test = 0x400011c8; -r_ble_ll_hci_dtm_tx_test_ext = 0x400011cc; -r_ble_ll_hci_dtm_tx_test_v2 = 0x400011d0; -r_ble_ll_hci_dtm_tx_test_v2_ext = 0x400011d4; -r_ble_ll_hci_env_init = 0x400011d8; -r_ble_ll_hci_ev_conn_update = 0x400011dc; -r_ble_ll_hci_ev_databuf_overflow = 0x400011e0; -r_ble_ll_hci_ev_datalen_chg = 0x400011e4; -r_ble_ll_hci_ev_encrypt_chg = 0x400011e8; -r_ble_ll_hci_ev_hw_err = 0x400011ec; -r_ble_ll_hci_ev_le_csa = 0x400011f0; -r_ble_ll_hci_ev_ltk_req = 0x400011f4; -r_ble_ll_hci_ev_phy_update = 0x400011f8; -r_ble_ll_hci_ev_rd_rem_used_feat = 0x400011fc; -r_ble_ll_hci_ev_rd_rem_ver = 0x40001200; -r_ble_ll_hci_ev_rem_conn_parm_req = 0x40001204; -r_ble_ll_hci_ev_send_adv_set_terminated = 0x40001208; -r_ble_ll_hci_ev_send_scan_req_recv = 0x4000120c; -r_ble_ll_hci_ev_send_scan_timeout = 0x40001210; -r_ble_ll_hci_ev_send_vendor_err = 0x40001214; -r_ble_ll_hci_event_send = 0x40001218; -r_ble_ll_hci_ext_scan_set_enable = 0x4000121c; -r_ble_ll_hci_get_num_cmd_pkts = 0x40001220; -r_ble_ll_hci_info_params_cmd_proc = 0x40001224; -r_ble_ll_hci_init = 0x40001228; -r_ble_ll_hci_is_event_enabled = 0x4000122c; -r_ble_ll_hci_is_le_event_enabled = 0x40001230; -r_ble_ll_hci_le_cmd_proc = 0x40001234; -r_ble_ll_hci_le_cmd_send_cmd_status = 0x40001238; -r_ble_ll_hci_le_encrypt = 0x4000123c; -r_ble_ll_hci_le_rand = 0x40001240; -r_ble_ll_hci_le_rd_max_data_len = 0x40001244; -r_ble_ll_hci_le_rd_sugg_data_len = 0x40001248; -r_ble_ll_hci_le_read_bufsize = 0x4000124c; -r_ble_ll_hci_le_read_local_features = 0x40001250; -r_ble_ll_hci_le_read_supp_states = 0x40001254; -r_ble_ll_hci_le_set_def_phy = 0x40001258; -r_ble_ll_hci_le_wr_sugg_data_len = 0x4000125c; -r_ble_ll_hci_link_ctrl_cmd_proc = 0x40001260; -r_ble_ll_hci_npl_init = 0x40001264; -r_ble_ll_hci_rd_bd_addr = 0x40001268; -r_ble_ll_hci_rd_local_supp_cmd = 0x4000126c; -r_ble_ll_hci_rd_local_supp_feat = 0x40001270; -r_ble_ll_hci_rd_local_version = 0x40001274; -r_ble_ll_hci_scan_set_enable = 0x40001278; -r_ble_ll_hci_send_adv_report = 0x4000127c; -r_ble_ll_hci_send_dir_adv_report = 0x40001280; -r_ble_ll_hci_send_ext_adv_report = 0x40001284; -r_ble_ll_hci_send_legacy_ext_adv_report = 0x40001288; -r_ble_ll_hci_send_noop = 0x4000128c; -r_ble_ll_hci_set_adv_data = 0x40001290; -r_ble_ll_hci_set_le_event_mask = 0x40001294; -r_ble_ll_hci_set_scan_rsp_data = 0x40001298; -r_ble_ll_hci_status_params_cmd_proc = 0x4000129c; -r_ble_ll_hci_vs_cmd_proc = 0x400012a0; -r_ble_ll_hci_vs_rd_static_addr = 0x400012a4; -r_ble_ll_hw_err_timer_cb = 0x400012a8; -r_ble_ll_hw_error = 0x400012ac; -r_ble_ll_init = 0x400012b0; -r_ble_ll_init_alloc_conn_comp_ev = 0x400012b4; -r_ble_ll_init_get_conn_comp_ev = 0x400012b8; -r_ble_ll_init_rx_isr_end = 0x400012bc; -r_ble_ll_init_rx_isr_start = 0x400012c0; -r_ble_ll_init_rx_pkt_in = 0x400012c4; -r_ble_ll_is_addr_empty = 0x400012c8; -r_ble_ll_is_controller_busy = 0x400012cc; -r_ble_ll_is_on_resolv_list = 0x400012d0; -r_ble_ll_is_our_devaddr = 0x400012d4; -r_ble_ll_is_rpa = 0x400012d8; -r_ble_ll_is_valid_adv_mode = 0x400012dc; -r_ble_ll_is_valid_own_addr_type = 0x400012e0; -r_ble_ll_is_valid_public_addr = 0x400012e4; -r_ble_ll_is_valid_random_addr = 0x400012e8; -r_ble_ll_mbuf_init = 0x400012ec; -r_ble_ll_misc_options_set = 0x400012f0; -r_ble_ll_pdu_max_tx_octets_get = 0x400012f4; -r_ble_ll_pdu_tx_time_get = 0x400012f8; -r_ble_ll_per_adv_coex_dpc_calc_pti_update_itvl = 0x400012fc; -r_ble_ll_per_adv_coex_dpc_process = 0x40001300; -r_ble_ll_per_adv_coex_dpc_pti_get = 0x40001304; -r_ble_ll_per_adv_coex_dpc_update = 0x40001308; -r_ble_ll_per_adv_coex_dpc_update_on_data_updated = 0x4000130c; -r_ble_ll_per_adv_coex_dpc_update_on_scheduled = 0x40001310; -r_ble_ll_per_adv_coex_dpc_update_on_start = 0x40001314; -r_ble_ll_phy_to_phy_mode = 0x40001318; -r_ble_ll_process_rx_data = 0x4000131c; -r_ble_ll_qa_enable = 0x40001320; -r_ble_ll_rand = 0x40001324; -r_ble_ll_rand_data_get = 0x40001328; -r_ble_ll_rand_deinit = 0x4000132c; -r_ble_ll_rand_env_init = 0x40001330; -r_ble_ll_rand_init = 0x40001334; -r_ble_ll_rand_prand_get = 0x40001338; -r_ble_ll_rand_sample = 0x4000133c; -r_ble_ll_rand_start = 0x40001340; -r_ble_ll_read_rf_path_compensation = 0x40001344; -r_ble_ll_read_supp_features = 0x40001348; -r_ble_ll_read_supp_states = 0x4000134c; -r_ble_ll_read_tx_power = 0x40001350; -r_ble_ll_reset = 0x40001354; -r_ble_ll_resolv_clear_all_pl_bit = 0x40001358; -r_ble_ll_resolv_clear_all_wl_bit = 0x4000135c; -r_ble_ll_resolv_deinit = 0x40001360; -r_ble_ll_resolv_enable_cmd = 0x40001364; -r_ble_ll_resolv_enabled = 0x40001368; -r_ble_ll_resolv_env_init = 0x4000136c; -r_ble_ll_resolv_gen_priv_addr = 0x40001370; -r_ble_ll_resolv_gen_rpa = 0x40001374; -r_ble_ll_resolv_get_addr_pointer = 0x40001378; -r_ble_ll_resolv_get_entry = 0x4000137c; -r_ble_ll_resolv_get_index = 0x40001380; -r_ble_ll_resolv_get_irk_pointer = 0x40001384; -r_ble_ll_resolv_get_list = 0x40001388; -r_ble_ll_resolv_get_priv_addr = 0x4000138c; -r_ble_ll_resolv_get_rpa_tmo = 0x40001390; -r_ble_ll_resolv_init = 0x40001394; -r_ble_ll_resolv_irk_nonzero = 0x40001398; -r_ble_ll_resolv_list_add = 0x4000139c; -r_ble_ll_resolv_list_chg_allowed = 0x400013a0; -r_ble_ll_resolv_list_clr = 0x400013a4; -r_ble_ll_resolv_list_find = 0x400013a8; -r_ble_ll_resolv_list_read_size = 0x400013ac; -r_ble_ll_resolv_list_reset = 0x400013b0; -r_ble_ll_resolv_list_rmv = 0x400013b4; -r_ble_ll_resolv_local_addr_rd = 0x400013b8; -r_ble_ll_resolv_peer_addr_rd = 0x400013bc; -r_ble_ll_resolv_peer_rpa_any = 0x400013c0; -r_ble_ll_resolv_reset = 0x400013c4; -r_ble_ll_resolv_rpa = 0x400013c8; -r_ble_ll_resolv_rpa_timer_cb = 0x400013cc; -r_ble_ll_resolv_set_local_rpa = 0x400013d0; -r_ble_ll_resolv_set_peer_rpa = 0x400013d4; -r_ble_ll_resolv_set_rpa_tmo = 0x400013d8; -r_ble_ll_resolve_set_priv_mode = 0x400013dc; -r_ble_ll_rfmgmt_controller_sleep_en = 0x400013e0; -r_ble_ll_rfmgmt_deinit = 0x400013e4; -r_ble_ll_rfmgmt_disable = 0x400013e8; -r_ble_ll_rfmgmt_enable = 0x400013ec; -r_ble_ll_rfmgmt_enable_now = 0x400013f0; -r_ble_ll_rfmgmt_init = 0x400013f4; -r_ble_ll_rfmgmt_is_enabled = 0x400013f8; -r_ble_ll_rfmgmt_release = 0x400013fc; -r_ble_ll_rfmgmt_release_ev = 0x40001400; -r_ble_ll_rfmgmt_reset = 0x40001404; -r_ble_ll_rfmgmt_scan_changed = 0x40001408; -r_ble_ll_rfmgmt_sched_changed = 0x4000140c; -r_ble_ll_rfmgmt_set_sleep_cb = 0x40001410; -r_ble_ll_rfmgmt_ticks_to_enabled = 0x40001414; -r_ble_ll_rfmgmt_timer_exp = 0x40001418; -r_ble_ll_rfmgmt_timer_reschedule = 0x4000141c; -r_ble_ll_rx_end = 0x40001420; -r_ble_ll_rx_pdu_in = 0x40001424; -r_ble_ll_rx_pkt_in = 0x40001428; -r_ble_ll_rx_start = 0x4000142c; -r_ble_ll_rxpdu_alloc = 0x40001430; -r_ble_ll_scan_add_scan_rsp_adv = 0x40001434; -r_ble_ll_scan_adv_decode_addr = 0x40001438; -r_ble_ll_scan_aux_data_free = 0x4000143c; -r_ble_ll_scan_aux_data_ref = 0x40001440; -r_ble_ll_scan_aux_data_unref = 0x40001444; -r_ble_ll_scan_can_chg_whitelist = 0x40001448; -r_ble_ll_scan_check_periodic_sync = 0x4000144c; -r_ble_ll_scan_chk_resume = 0x40001450; -r_ble_ll_scan_clean_cur_aux_data = 0x40001454; -r_ble_ll_scan_common_init = 0x40001458; -r_ble_ll_scan_continue_en = 0x4000145c; -r_ble_ll_scan_deinit = 0x40001460; -r_ble_ll_scan_dup_check_ext = 0x40001464; -r_ble_ll_scan_dup_check_legacy = 0x40001468; -r_ble_ll_scan_dup_move_to_head = 0x4000146c; -r_ble_ll_scan_dup_new = 0x40001470; -r_ble_ll_scan_dup_update_ext = 0x40001474; -r_ble_ll_scan_dup_update_legacy = 0x40001478; -r_ble_ll_scan_duration_period_timers_restart = 0x4000147c; -r_ble_ll_scan_duration_timer_cb = 0x40001480; -r_ble_ll_scan_enabled = 0x40001484; -r_ble_ll_scan_end_adv_evt = 0x40001488; -r_ble_ll_scan_env_init = 0x4000148c; -r_ble_ll_scan_event_proc = 0x40001490; -r_ble_ll_scan_ext_adv_init = 0x40001494; -r_ble_ll_scan_ext_initiator_start = 0x40001498; -r_ble_ll_scan_get_addr_data_from_legacy = 0x4000149c; -r_ble_ll_scan_get_addr_from_ext_adv = 0x400014a0; -r_ble_ll_scan_get_cur_sm = 0x400014a4; -r_ble_ll_scan_get_ext_adv_report = 0x400014a8; -r_ble_ll_scan_get_local_rpa = 0x400014ac; -r_ble_ll_scan_get_next_adv_prim_chan = 0x400014b0; -r_ble_ll_scan_get_pdu_data = 0x400014b4; -r_ble_ll_scan_get_peer_rpa = 0x400014b8; -r_ble_ll_scan_halt = 0x400014bc; -r_ble_ll_scan_has_sent_scan_req = 0x400014c0; -r_ble_ll_scan_have_rxd_scan_rsp = 0x400014c4; -r_ble_ll_scan_init = 0x400014c8; -r_ble_ll_scan_initiator_start = 0x400014cc; -r_ble_ll_scan_interrupted = 0x400014d0; -r_ble_ll_scan_interrupted_event_cb = 0x400014d4; -r_ble_ll_scan_is_inside_window = 0x400014d8; -r_ble_ll_scan_move_window_to = 0x400014dc; -r_ble_ll_scan_npl_init = 0x400014e0; -r_ble_ll_scan_npl_reset = 0x400014e4; -r_ble_ll_scan_npl_restore = 0x400014e8; -r_ble_ll_scan_npl_store = 0x400014ec; -r_ble_ll_scan_parse_ext_hdr = 0x400014f0; -r_ble_ll_scan_period_timer_cb = 0x400014f4; -r_ble_ll_scan_record_new_adv = 0x400014f8; -r_ble_ll_scan_refresh_nrpa = 0x400014fc; -r_ble_ll_scan_req_backoff = 0x40001500; -r_ble_ll_scan_reset = 0x40001504; -r_ble_ll_scan_rx_filter = 0x40001508; -r_ble_ll_scan_rx_isr_end = 0x4000150c; -r_ble_ll_scan_rx_isr_on_aux = 0x40001510; -r_ble_ll_scan_rx_isr_on_legacy = 0x40001514; -r_ble_ll_scan_rx_isr_start = 0x40001518; -r_ble_ll_scan_rx_pkt_in = 0x4000151c; -r_ble_ll_scan_rx_pkt_in_on_aux = 0x40001520; -r_ble_ll_scan_rx_pkt_in_on_legacy = 0x40001524; -r_ble_ll_scan_rx_pkt_in_restore_addr_data = 0x40001528; -r_ble_ll_scan_rxed = 0x4000152c; -r_ble_ll_scan_sched_remove = 0x40001530; -r_ble_ll_scan_send_adv_report = 0x40001534; -r_ble_ll_scan_send_truncated = 0x40001538; -r_ble_ll_scan_set_enable = 0x4000153c; -r_ble_ll_scan_set_peer_rpa = 0x40001540; -r_ble_ll_scan_set_scan_params = 0x40001544; -r_ble_ll_scan_sm_start = 0x40001548; -r_ble_ll_scan_sm_stop = 0x4000154c; -r_ble_ll_scan_start = 0x40001550; -r_ble_ll_scan_time_hci_to_ticks = 0x40001554; -r_ble_ll_scan_timer_cb = 0x40001558; -r_ble_ll_scan_update_aux_data = 0x4000155c; -r_ble_ll_scan_wfr_timer_exp = 0x40001560; -r_ble_ll_scan_whitelist_enabled = 0x40001564; -r_ble_ll_sched_adv_new = 0x40001568; -r_ble_ll_sched_adv_resched_pdu = 0x4000156c; -r_ble_ll_sched_adv_reschedule = 0x40001570; -r_ble_ll_sched_aux_scan = 0x40001574; -r_ble_ll_sched_conn_overlap = 0x40001578; -r_ble_ll_sched_conn_reschedule = 0x4000157c; -r_ble_ll_sched_deinit = 0x40001580; -r_ble_ll_sched_dtm = 0x40001584; -r_ble_ll_sched_env_init = 0x40001588; -r_ble_ll_sched_execute_item = 0x4000158c; -r_ble_ll_sched_init = 0x40001590; -r_ble_ll_sched_insert_if_empty = 0x40001594; -r_ble_ll_sched_is_overlap = 0x40001598; -r_ble_ll_sched_master_new = 0x4000159c; -r_ble_ll_sched_next_time = 0x400015a0; -r_ble_ll_sched_overlaps_current = 0x400015a4; -r_ble_ll_sched_periodic_adv = 0x400015a8; -r_ble_ll_sched_rmv_elem = 0x400015ac; -r_ble_ll_sched_rmv_elem_type = 0x400015b0; -r_ble_ll_sched_run = 0x400015b4; -r_ble_ll_sched_scan_req_over_aux_ptr = 0x400015b8; -r_ble_ll_sched_slave_new = 0x400015bc; -r_ble_ll_sched_stop = 0x400015c0; -r_ble_ll_sched_sync = 0x400015c4; -r_ble_ll_sched_sync_overlaps_current = 0x400015c8; -r_ble_ll_sched_sync_reschedule = 0x400015cc; -r_ble_ll_set_default_privacy_mode = 0x400015d0; -r_ble_ll_set_default_sync_transfer_params = 0x400015d4; -r_ble_ll_set_ext_scan_params = 0x400015d8; -r_ble_ll_set_host_feat = 0x400015dc; -r_ble_ll_set_public_addr = 0x400015e0; -r_ble_ll_set_random_addr = 0x400015e4; -r_ble_ll_set_sync_transfer_params = 0x400015e8; -r_ble_ll_slave_rx_isr_end = 0x400015ec; -r_ble_ll_state_get = 0x400015f0; -r_ble_ll_state_set = 0x400015f4; -r_ble_ll_sync_adjust_ext_hdr = 0x400015f8; -r_ble_ll_sync_cancel = 0x400015fc; -r_ble_ll_sync_cancel_complete_event = 0x40001600; -r_ble_ll_sync_chain_start_cb = 0x40001604; -r_ble_ll_sync_check_acad = 0x40001608; -r_ble_ll_sync_check_failed = 0x4000160c; -r_ble_ll_sync_coex_dpc_process = 0x40001610; -r_ble_ll_sync_coex_dpc_pti_get = 0x40001614; -r_ble_ll_sync_coex_dpc_update = 0x40001618; -r_ble_ll_sync_create = 0x4000161c; -r_ble_ll_sync_current_sm_over = 0x40001620; -r_ble_ll_sync_deinit = 0x40001624; -r_ble_ll_sync_enabled = 0x40001628; -r_ble_ll_sync_env_init = 0x4000162c; -r_ble_ll_sync_est_event_failed = 0x40001630; -r_ble_ll_sync_est_event_success = 0x40001634; -r_ble_ll_sync_established = 0x40001638; -r_ble_ll_sync_event_end = 0x4000163c; -r_ble_ll_sync_event_start_cb = 0x40001640; -r_ble_ll_sync_filter_enabled = 0x40001644; -r_ble_ll_sync_find = 0x40001648; -r_ble_ll_sync_get_cur_sm = 0x4000164c; -r_ble_ll_sync_get_event_end_time = 0x40001650; -r_ble_ll_sync_get_handle = 0x40001654; -r_ble_ll_sync_halt = 0x40001658; -r_ble_ll_sync_has_been_reported = 0x4000165c; -r_ble_ll_sync_info_event = 0x40001660; -r_ble_ll_sync_init = 0x40001664; -r_ble_ll_sync_list_add = 0x40001668; -r_ble_ll_sync_list_clear = 0x4000166c; -r_ble_ll_sync_list_empty = 0x40001670; -r_ble_ll_sync_list_get_free = 0x40001674; -r_ble_ll_sync_list_remove = 0x40001678; -r_ble_ll_sync_list_search = 0x4000167c; -r_ble_ll_sync_list_size = 0x40001680; -r_ble_ll_sync_lost_event = 0x40001684; -r_ble_ll_sync_next_event = 0x40001688; -r_ble_ll_sync_on_list = 0x4000168c; -r_ble_ll_sync_parse_aux_ptr = 0x40001690; -r_ble_ll_sync_parse_ext_hdr = 0x40001694; -r_ble_ll_sync_periodic_ind = 0x40001698; -r_ble_ll_sync_phy_mode_to_aux_phy = 0x4000169c; -r_ble_ll_sync_phy_mode_to_hci = 0x400016a0; -r_ble_ll_sync_put_syncinfo = 0x400016a4; -r_ble_ll_sync_reserve = 0x400016a8; -r_ble_ll_sync_reset = 0x400016ac; -r_ble_ll_sync_reset_sm = 0x400016b0; -r_ble_ll_sync_rmvd_from_sched = 0x400016b4; -r_ble_ll_sync_rx_isr_end = 0x400016b8; -r_ble_ll_sync_rx_isr_start = 0x400016bc; -r_ble_ll_sync_rx_pkt_in = 0x400016c0; -r_ble_ll_sync_schedule_chain = 0x400016c4; -r_ble_ll_sync_send_per_adv_rpt = 0x400016c8; -r_ble_ll_sync_send_sync_ind = 0x400016cc; -r_ble_ll_sync_send_truncated_per_adv_rpt = 0x400016d0; -r_ble_ll_sync_sm_clear = 0x400016d4; -r_ble_ll_sync_terminate = 0x400016d8; -r_ble_ll_sync_transfer = 0x400016dc; -r_ble_ll_sync_transfer_get = 0x400016e0; -r_ble_ll_sync_transfer_received = 0x400016e4; -r_ble_ll_sync_wfr_timer_exp = 0x400016e8; -r_ble_ll_task = 0x400016ec; -r_ble_ll_trace_set_func = 0x400016f0; -r_ble_ll_trace_u32 = 0x400016f4; -r_ble_ll_trace_u32x2 = 0x400016f8; -r_ble_ll_trace_u32x3 = 0x400016fc; -r_ble_ll_tx_flat_mbuf_pducb = 0x40001700; -r_ble_ll_tx_mbuf_pducb = 0x40001704; -r_ble_ll_tx_pkt_in = 0x40001708; -r_ble_ll_update_max_tx_octets_phy_mode = 0x4000170c; -r_ble_ll_usecs_to_ticks_round_up = 0x40001710; -r_ble_ll_utils_calc_access_addr = 0x40001714; -r_ble_ll_utils_calc_dci_csa2 = 0x40001718; -r_ble_ll_utils_calc_num_used_chans = 0x4000171c; -r_ble_ll_utils_calc_window_widening = 0x40001720; -r_ble_ll_utils_csa2_perm = 0x40001724; -r_ble_ll_utils_csa2_prng = 0x40001728; -r_ble_ll_utils_remapped_channel = 0x4000172c; -r_ble_ll_wfr_timer_exp = 0x40001730; -r_ble_ll_whitelist_add = 0x40001734; -r_ble_ll_whitelist_chg_allowed = 0x40001738; -r_ble_ll_whitelist_clear = 0x4000173c; -r_ble_ll_whitelist_read_size = 0x40001740; -r_ble_ll_whitelist_rmv = 0x40001744; -r_ble_ll_whitelist_search = 0x40001748; -r_ble_ll_write_rf_path_compensation = 0x4000174c; -r_ble_phy_access_addr_get = 0x40001750; -r_ble_phy_bb_bug_is_triggered = 0x40001754; -r_ble_phy_calculate_rxtx_ifs = 0x40001758; -r_ble_phy_calculate_rxwindow = 0x4000175c; -r_ble_phy_calculate_txrx_ifs = 0x40001760; -r_ble_phy_config_access_addr = 0x40001764; -r_ble_phy_data_make = 0x40001768; -r_ble_phy_disable = 0x4000176c; -r_ble_phy_disable_irq = 0x40001770; -r_ble_phy_disable_whitening = 0x40001774; -r_ble_phy_enable_scan_seq_immediately = 0x40001778; -r_ble_phy_enable_whitening = 0x4000177c; -r_ble_phy_encrypt_disable = 0x40001780; -r_ble_phy_env_init = 0x40001784; -r_ble_phy_get_current_phy = 0x40001788; -r_ble_phy_get_packet_counter = 0x4000178c; -r_ble_phy_get_packet_status = 0x40001790; -r_ble_phy_get_pyld_time_offset = 0x40001794; -r_ble_phy_get_rx_phy_mode = 0x40001798; -r_ble_phy_init = 0x4000179c; -r_ble_phy_isr = 0x400017a0; -r_ble_phy_max_data_pdu_pyld = 0x400017a4; -r_ble_phy_mode_config = 0x400017a8; -r_ble_phy_mode_convert = 0x400017ac; -r_ble_phy_mode_write = 0x400017b0; -r_ble_phy_module_deinit = 0x400017b4; -r_ble_phy_module_init = 0x400017b8; -r_ble_phy_monitor_bb_sync = 0x400017bc; -r_ble_phy_need_to_report = 0x400017c0; -r_ble_phy_pkt_received = 0x400017c4; -r_ble_phy_reset_bb_monitor = 0x400017c8; -r_ble_phy_resolv_list_disable = 0x400017cc; -r_ble_phy_resolv_list_enable = 0x400017d0; -r_ble_phy_restart_sequence = 0x400017d4; -r_ble_phy_rfclk_disable = 0x400017d8; -r_ble_phy_rfclk_enable = 0x400017dc; -r_ble_phy_rx_is_expected = 0x400017e0; -r_ble_phy_rxpdu_copy = 0x400017e4; -r_ble_phy_scan_set_start_time = 0x400017e8; -r_ble_phy_seq_encrypt_enable = 0x400017ec; -r_ble_phy_seq_encrypt_set_pkt_cntr = 0x400017f0; -r_ble_phy_sequence_adv_end = 0x400017f4; -r_ble_phy_sequence_copy_rx_flags = 0x400017f8; -r_ble_phy_sequence_end_isr = 0x400017fc; -r_ble_phy_sequence_get_mode = 0x40001800; -r_ble_phy_sequence_get_state = 0x40001804; -r_ble_phy_sequence_init_end = 0x40001808; -r_ble_phy_sequence_is_running = 0x4000180c; -r_ble_phy_sequence_is_waiting_rsp = 0x40001810; -r_ble_phy_sequence_isr_copy_data = 0x40001814; -r_ble_phy_sequence_master_end = 0x40001818; -r_ble_phy_sequence_rx_end_isr = 0x4000181c; -r_ble_phy_sequence_scan_end = 0x40001820; -r_ble_phy_sequence_single_end = 0x40001824; -r_ble_phy_sequence_slave_end = 0x40001828; -r_ble_phy_sequence_tx_end_invoke = 0x4000182c; -r_ble_phy_sequence_update_conn_params = 0x40001830; -r_ble_phy_set_adv_sequence = 0x40001834; -r_ble_phy_set_coex_pti = 0x40001838; -r_ble_phy_set_dev_address = 0x4000183c; -r_ble_phy_set_master_sequence = 0x40001840; -r_ble_phy_set_rx_pwr_compensation = 0x40001844; -r_ble_phy_set_rxhdr_flags = 0x40001848; -r_ble_phy_set_rxhdr_info = 0x4000184c; -r_ble_phy_set_scan_sequence = 0x40001850; -r_ble_phy_set_single_packet_rx_sequence = 0x40001854; -r_ble_phy_set_single_packet_tx_sequence = 0x40001858; -r_ble_phy_set_slave_sequence = 0x4000185c; -r_ble_phy_set_txend_cb = 0x40001860; -r_ble_phy_setchan = 0x40001864; -r_ble_phy_slave_set_start_time = 0x40001868; -r_ble_phy_state_get = 0x4000186c; -r_ble_phy_timer_config_start_time = 0x40001870; -r_ble_phy_timer_start_now = 0x40001874; -r_ble_phy_timer_stop = 0x40001878; -r_ble_phy_tx_set_start_time = 0x4000187c; -r_ble_phy_txpower_round = 0x40001880; -r_ble_phy_txpwr_set = 0x40001884; -r_ble_phy_wfr_enable = 0x40001888; -r_ble_phy_xcvr_state_get = 0x4000188c; -r_ble_plf_set_log_level = 0x40001890; -r_ble_vendor_hci_register = 0x40001894; -r_bleonly_os_tick_init = 0x40001898; -r_bt_rf_coex_cfg_set = 0x4000189c; -r_bt_rf_coex_coded_txrx_time_upper_lim = 0x400018a0; -r_bt_rf_coex_dft_pti_set = 0x400018a4; -r_bt_rf_coex_hook_deinit = 0x400018a8; -r_bt_rf_coex_hook_init = 0x400018ac; -r_bt_rf_coex_hook_st_set = 0x400018b0; -r_bt_rf_coex_hooks_p_set_default = 0x400018b4; -r_btdm_disable_adv_delay = 0x400018b8; -r_btdm_switch_phy_coded = 0x400018bc; -r_esp_wait_disabled = 0x400018c0; -r_get_be16 = 0x400018c4; -r_get_be24 = 0x400018c8; -r_get_be32 = 0x400018cc; -r_get_be64 = 0x400018d0; -r_get_le16 = 0x400018d4; -r_get_le24 = 0x400018d8; -r_get_le32 = 0x400018dc; -r_get_le64 = 0x400018e0; -r_get_local_irk_offset = 0x400018e4; -r_get_local_rpa_offset = 0x400018e8; -r_get_max_skip = 0x400018ec; -r_get_peer_id_offset = 0x400018f0; -r_get_peer_irk_offset = 0x400018f4; -r_get_peer_rpa_offset = 0x400018f8; -r_hal_os_tick_read_tick = 0x400018fc; -r_hal_os_tick_set_exp_tick = 0x40001900; -r_hal_rtc_intr_init = 0x40001904; -r_hal_rtc_irq_handler = 0x40001908; -r_hal_timer_deinit = 0x4000190c; -r_hal_timer_disable_irq = 0x40001910; -r_hal_timer_env_init = 0x40001914; -r_hal_timer_init = 0x40001918; -r_hal_timer_process = 0x4000191c; -r_hal_timer_read = 0x40001920; -r_hal_timer_read_tick = 0x40001924; -r_hal_timer_set_cb = 0x40001928; -r_hal_timer_set_exp_tick = 0x4000192c; -r_hal_timer_start = 0x40001930; -r_hal_timer_start_at = 0x40001934; -r_hal_timer_stop = 0x40001938; -r_hal_timer_task_start = 0x4000193c; -r_ll_assert = 0x40001940; -r_mem_init_mbuf_pool = 0x40001944; -r_mem_malloc_mbuf_pool = 0x40001948; -r_mem_malloc_mbufpkt_pool = 0x4000194c; -r_mem_malloc_mempool = 0x40001950; -r_mem_malloc_mempool_ext = 0x40001954; -r_mem_malloc_mempool_gen = 0x40001958; -r_mem_pullup_obj = 0x4000195c; -r_mem_split_frag = 0x40001960; -r_os_cputime_delay_ticks = 0x40001964; -r_os_cputime_delay_usecs = 0x40001968; -r_os_cputime_get32 = 0x4000196c; -r_os_cputime_ticks_to_usecs = 0x40001970; -r_os_cputime_timer_init = 0x40001974; -r_os_cputime_timer_relative = 0x40001978; -r_os_cputime_timer_start = 0x4000197c; -r_os_cputime_timer_stop = 0x40001980; -r_os_cputime_usecs_to_ticks = 0x40001984; -r_os_mbuf_adj = 0x40001988; -r_os_mbuf_append = 0x4000198c; -r_os_mbuf_appendfrom = 0x40001990; -r_os_mbuf_cmpf = 0x40001994; -r_os_mbuf_cmpm = 0x40001998; -r_os_mbuf_concat = 0x4000199c; -r_os_mbuf_copydata = 0x400019a0; -r_os_mbuf_copyinto = 0x400019a4; -r_os_mbuf_dup = 0x400019a8; -r_os_mbuf_extend = 0x400019ac; -r_os_mbuf_free = 0x400019b0; -r_os_mbuf_free_chain = 0x400019b4; -r_os_mbuf_get = 0x400019b8; -r_os_mbuf_get_pkthdr = 0x400019bc; -r_os_mbuf_len = 0x400019c0; -r_os_mbuf_off = 0x400019c4; -r_os_mbuf_pack_chains = 0x400019c8; -r_os_mbuf_pool_init = 0x400019cc; -r_os_mbuf_prepend = 0x400019d0; -r_os_mbuf_prepend_pullup = 0x400019d4; -r_os_mbuf_pullup = 0x400019d8; -r_os_mbuf_trim_front = 0x400019dc; -r_os_mbuf_widen = 0x400019e0; -r_os_memblock_from = 0x400019e4; -r_os_memblock_get = 0x400019e8; -r_os_memblock_put = 0x400019ec; -r_os_memblock_put_from_cb = 0x400019f0; -r_os_mempool_clear = 0x400019f4; -r_os_mempool_ext_clear = 0x400019f8; -r_os_mempool_ext_init = 0x400019fc; -r_os_mempool_info_get_next = 0x40001a00; -r_os_mempool_init = 0x40001a04; -r_os_mempool_init_internal = 0x40001a08; -r_os_mempool_is_sane = 0x40001a0c; -r_os_mempool_module_init = 0x40001a10; -r_os_mempool_unregister = 0x40001a14; -r_os_mqueue_get = 0x40001a18; -r_os_mqueue_init = 0x40001a1c; -r_os_mqueue_put = 0x40001a20; -r_os_msys_count = 0x40001a24; -r_os_msys_get = 0x40001a28; -r_os_msys_get_pkthdr = 0x40001a2c; -r_os_msys_num_free = 0x40001a30; -r_os_msys_register = 0x40001a34; -r_os_msys_reset = 0x40001a38; -r_os_tick_idle = 0x40001a3c; -r_pri_phy_valid = 0x40001a40; -r_put_be16 = 0x40001a44; -r_put_be24 = 0x40001a48; -r_put_be32 = 0x40001a4c; -r_put_be64 = 0x40001a50; -r_put_le16 = 0x40001a54; -r_put_le24 = 0x40001a58; -r_put_le32 = 0x40001a5c; -r_put_le64 = 0x40001a60; -r_rtc0_timer_handler = 0x40001a64; -r_rtc1_timer_handler = 0x40001a68; -r_sdkconfig_get_opts = 0x40001a6c; -r_sdkconfig_set_opts = 0x40001a70; -r_sec_phy_valid = 0x40001a74; -r_sub24 = 0x40001a78; -r_swap_buf = 0x40001a7c; -r_swap_in_place = 0x40001a80; -/* Data (.data, .bss, .rodata) */ -ble_hci_uart_reset_cmd = 0x3ff1ffe0; -ble_hci_trans_env_p = 0x3fcdffc4; -ble_hci_trans_mode = 0x3fcdfebc; -ble_ll_adv_env_p = 0x3fcdffc0; -ble_ll_conn_env_p = 0x3fcdffbc; -g_ble_ll_conn_cth_flow = 0x3fcdffb4; -g_ble_ll_conn_cth_flow_error_ev = 0x3fcdffb0; -g_ble_ll_ctrl_pkt_lengths_ro = 0x3ff1ffbc; -ble_ll_dtm_module_env_p = 0x3fcdffac; -channel_rf_to_index = 0x3ff1ff94; -g_ble_ll_dtm_prbs15_data = 0x3ff1fe94; -g_ble_ll_dtm_prbs9_data = 0x3ff1fd94; -ble_ll_hci_env_p = 0x3fcdffa8; -ble_ll_rand_env_p = 0x3fcdffa4; -ble_ll_resolv_env_p = 0x3fcdffa0; -g_ble_ll_resolve_hdr = 0x3fcdff98; -g_device_mode_default = 0x3fcdfeba; -g_ble_ll_rfmgmt_data = 0x3fcdff50; -g_ble_sleep_enter_cb = 0x3fcdff4c; -g_ble_sleep_exit_cb = 0x3fcdff48; -g_rfclk_enabled = 0x3fcdff44; -ble_ll_scan_env_p = 0x3fcdff40; -ble_ll_sched_env_p = 0x3fcdff3c; -g_ble_ll_supp_cmds_ro = 0x3ff1fd64; -ble_ll_sync_env_p = 0x3fcdff38; -g_ble_sca_ppm_tbl_ro = 0x3ff1fd54; -ble_ll_env_p = 0x3fcdff34; -g_ble_ll_pdu_header_tx_time_ro = 0x3ff1fd4c; -priv_config_opts = 0x3fcdfea4; -ble_hci_trans_funcs_ptr = 0x3fcdff30; -r_ble_stub_funcs_ptr = 0x3fcdff2c; -r_ext_funcs_p = 0x3fcdff28; -r_npl_funcs = 0x3fcdff24; -ble_hw_env_p = 0x3fcdff20; -ble_phy_module_env_p = 0x3fcdff1c; -g_ble_phy_chan_freq_ro = 0x3ff1fd24; -g_ble_phy_mode_pkt_start_off_ro = 0x3ff1fd1c; -g_ble_phy_rxtx_ifs_compensation_ro = 0x3ff1fd0c; -g_ble_phy_t_rxaddrdelay_ro = 0x3ff1fd08; -g_ble_phy_t_rxenddelay_ro = 0x3ff1fd04; -g_ble_phy_t_txdelay_ro = 0x3ff1fd00; -g_ble_phy_t_txenddelay_ro = 0x3ff1fcfc; -g_ble_phy_txrx_ifs_compensation_ro = 0x3ff1fcec; -hal_timer_env_p = 0x3fcdff18; -g_hal_os_tick = 0x3fcdff0c; -r_osi_coex_funcs_p = 0x3fcdff08; -bt_rf_coex_hooks = 0x3fcdff00; -bt_rf_coex_hooks_p = 0x3fcdfefc; -coex_hook_st_group_tab = 0x3ff1fce0; -coex_hook_st_group_to_coex_schm_st_tab = 0x3ff1fcdc; -s_ble_act_count_by_group = 0x3fcdfef8; -s_ble_coex_st_map = 0x3fcdfee4; -bt_rf_coex_cfg_cb = 0x3fcdfec8; -bt_rf_coex_cfg_p = 0x3fcdfec4; -bt_rf_coex_cfg_rom = 0x3ff1fcc0; -bt_rf_coex_pti_dft_p = 0x3fcdfec0; -bt_rf_coex_pti_dft_rom = 0x3fcdfe64; -conn_dynamic_pti_param_rom = 0x3ff1fca8; -conn_phy_coded_max_data_time_param_rom = 0x3ff1fca4; -ext_adv_dynamic_pti_param_rom = 0x3ff1fc70; -ext_scan_dynamic_param_rom = 0x3ff1fc38; -legacy_adv_dynamic_pti_param_rom = 0x3ff1fc18; -per_adv_dynamic_pti_param_rom = 0x3ff1fbfc; -sync_dynamic_param_rom = 0x3ff1fbe4; -g_ble_plf_log_level = 0x3fcdfe60; -g_msys_pool_list = 0x3fcdfe58; -g_os_mempool_list = 0x3fcdfe50; - - -/*************************************** - Group rom_phy - ***************************************/ - -/* Functions */ -phy_param_addr = 0x40001a84; -phy_get_romfuncs = 0x40001a88; -chip729_phyrom_version = 0x40001a8c; -chip729_phyrom_version_num = 0x40001a90; -rom_get_i2c_read_mask = 0x40001c6c; -rom_get_i2c_mst0_mask = 0x40001c70; -rom_get_i2c_hostid = 0x40001c74; -rom_chip_i2c_readReg_org = 0x40001c78; -rom_chip_i2c_readReg = 0x40001c7c; -rom_i2c_paral_set_mst0 = 0x40001c80; -rom_i2c_paral_set_read = 0x40001c84; -rom_i2c_paral_read = 0x40001c88; -rom_i2c_paral_write = 0x40001c8c; -rom_i2c_paral_write_num = 0x40001c90; -rom_i2c_paral_write_mask = 0x40001c94; -rom_i2c_readReg = 0x40001c98; -rom_chip_i2c_writeReg = 0x40001c9c; -rom_i2c_writeReg = 0x40001ca0; -rom_i2c_readReg_Mask = 0x40001ca4; -rom_i2c_writeReg_Mask = 0x40001ca8; -/* Data (.data, .bss, .rodata) */ -phy_param_rom = 0x3fcdfe4c; diff --git a/flasher_stub/ld/rom_32p4.ld b/flasher_stub/ld/rom_32p4.ld deleted file mode 100644 index 51ac8cded..000000000 --- a/flasher_stub/ld/rom_32p4.ld +++ /dev/null @@ -1,619 +0,0 @@ -/* ROM function interface esp32p4.rom.ld for esp32p4 - * - * - * Generated from ./target/esp32p4/interface-esp32p4.yml md5sum f6516bd9708d890f63db87f8aed53ca7 - * - * Compatible with ROM where ECO version equal or greater to 0. - * - * THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT. - */ - -/*************************************** - Group common - ***************************************/ - -PROVIDE ( SPIWrite = esp_rom_spiflash_write); -PROVIDE ( SPI_read_status_high = esp_rom_spiflash_read_statushigh); -PROVIDE ( SPI_write_status = esp_rom_spiflash_write_status); -PROVIDE ( SPIRead = esp_rom_spiflash_read); -PROVIDE ( SPIParamCfg = esp_rom_spiflash_config_param); -PROVIDE ( SPIEraseChip = esp_rom_spiflash_erase_chip); -PROVIDE ( SPIEraseSector = esp_rom_spiflash_erase_sector); -PROVIDE ( SPIEraseBlock = esp_rom_spiflash_erase_block); -PROVIDE ( SPI_Write_Encrypt_Enable = esp_rom_spiflash_write_encrypted_enable); -PROVIDE ( SPI_Write_Encrypt_Disable = esp_rom_spiflash_write_encrypted_disable); -PROVIDE ( SPI_Encrypt_Write = esp_rom_spiflash_write_encrypted); - -/*************************************** - Group common - ***************************************/ - -/* Functions */ -rtc_get_reset_reason = 0x4fc00018; -rtc_get_wakeup_cause = 0x4fc0001c; -pmu_enable_unhold_pads = 0x4fc00020; -ets_printf = 0x4fc00024; -ets_install_putc1 = 0x4fc00028; -ets_install_putc2 = 0x4fc0002c; -ets_install_uart_printf = 0x4fc00030; -ets_install_usb_printf = 0x4fc00034; -ets_get_printf_channel = 0x4fc00038; -ets_delay_us = 0x4fc0003c; -ets_get_cpu_frequency = 0x4fc00040; -ets_update_cpu_frequency = 0x4fc00044; -ets_install_lock = 0x4fc00048; -UartRxString = 0x4fc0004c; -UartGetCmdLn = 0x4fc00050; -uart_tx_one_char = 0x4fc00054; -uart_tx_one_char2 = 0x4fc00058; -uart_tx_one_char3 = 0x4fc0005c; -uart_rx_one_char = 0x4fc00060; -uart_rx_one_char_block = 0x4fc00064; -uart_rx_intr_handler = 0x4fc00068; -uart_rx_readbuff = 0x4fc0006c; -uartAttach = 0x4fc00070; -uart_tx_flush = 0x4fc00074; -uart_tx_wait_idle = 0x4fc00078; -uart_div_modify = 0x4fc0007c; -ets_write_char_uart = 0x4fc00080; -uart_tx_switch = 0x4fc00084; -uart_buff_switch = 0x4fc00088; -roundup2 = 0x4fc0008c; -multofup = 0x4fc00090; -software_reset = 0x4fc00094; -software_reset_cpu = 0x4fc00098; -ets_clk_assist_debug_clock_enable = 0x4fc0009c; -clear_super_wdt_reset_flag = 0x4fc000a0; -disable_default_watchdog = 0x4fc000a4; -ets_set_appcpu_boot_addr = 0x4fc000a8; -send_packet = 0x4fc000ac; -recv_packet = 0x4fc000b0; -GetUartDevice = 0x4fc000b4; -UartDwnLdProc = 0x4fc000b8; -GetSecurityInfoProc = 0x4fc000bc; -Uart_Init = 0x4fc000c0; -ets_set_user_start = 0x4fc000c4; -/* Data (.data, .bss, .rodata) */ -ets_rom_layout_p = 0x4fc1fffc; -ets_ops_table_ptr = 0x4ff3fff4; -g_saved_pc = 0x4ff3fff8; - - -/*************************************** - Group miniz - ***************************************/ - -/* Functions */ -mz_adler32 = 0x4fc000c8; -mz_free = 0x4fc000cc; -tdefl_compress = 0x4fc000d0; -tdefl_compress_buffer = 0x4fc000d4; -tdefl_compress_mem_to_heap = 0x4fc000d8; -tdefl_compress_mem_to_mem = 0x4fc000dc; -tdefl_compress_mem_to_output = 0x4fc000e0; -tdefl_get_adler32 = 0x4fc000e4; -tdefl_get_prev_return_status = 0x4fc000e8; -tdefl_init = 0x4fc000ec; -tdefl_write_image_to_png_file_in_memory = 0x4fc000f0; -tdefl_write_image_to_png_file_in_memory_ex = 0x4fc000f4; -tinfl_decompress = 0x4fc000f8; -tinfl_decompress_mem_to_callback = 0x4fc000fc; -tinfl_decompress_mem_to_heap = 0x4fc00100; -tinfl_decompress_mem_to_mem = 0x4fc00104; - - -/*************************************** - Group spi_extmem_common - ***************************************/ - -/* Functions */ -esp_rom_spi_cmd_config = 0x4fc00108; -esp_rom_spi_cmd_start = 0x4fc0010c; -esp_rom_spi_set_op_mode = 0x4fc00110; -esp_rom_spi_set_dtr_swap_mode = 0x4fc00114; - - -/*************************************** - Group spiflash_legacy - ***************************************/ - -/* Functions */ -esp_rom_spiflash_wait_idle = 0x4fc00118; -esp_rom_spiflash_write_encrypted = 0x4fc0011c; -esp_rom_spiflash_write_encrypted_dest = 0x4fc00120; -esp_rom_spiflash_write_encrypted_enable = 0x4fc00124; -esp_rom_spiflash_write_encrypted_disable = 0x4fc00128; -esp_rom_spiflash_erase_chip = 0x4fc0012c; -_esp_rom_spiflash_erase_sector = 0x4fc00130; -_esp_rom_spiflash_erase_block = 0x4fc00134; -_esp_rom_spiflash_write = 0x4fc00138; -_esp_rom_spiflash_read = 0x4fc0013c; -_esp_rom_spiflash_unlock = 0x4fc00140; -_SPIEraseArea = 0x4fc00144; -_SPI_write_enable = 0x4fc00148; -esp_rom_spiflash_erase_sector = 0x4fc0014c; -esp_rom_spiflash_erase_block = 0x4fc00150; -esp_rom_spiflash_write = 0x4fc00154; -esp_rom_spiflash_read = 0x4fc00158; -esp_rom_spiflash_unlock = 0x4fc0015c; -SPIEraseArea = 0x4fc00160; -SPI_write_enable = 0x4fc00164; -esp_rom_spiflash_config_param = 0x4fc00168; -esp_rom_spiflash_read_user_cmd = 0x4fc0016c; -esp_rom_spiflash_select_qio_pins = 0x4fc00170; -esp_rom_spi_flash_auto_sus_res = 0x4fc00174; -esp_rom_spi_flash_send_resume = 0x4fc00178; -esp_rom_spi_flash_update_id = 0x4fc0017c; -esp_rom_spiflash_config_clk = 0x4fc00180; -esp_rom_spiflash_config_readmode = 0x4fc00184; -esp_rom_spiflash_read_status = 0x4fc00188; -esp_rom_spiflash_read_statushigh = 0x4fc0018c; -esp_rom_spiflash_write_status = 0x4fc00190; -esp_rom_spiflash_write_disable = 0x4fc00194; -spi_cache_mode_switch = 0x4fc00198; -spi_common_set_dummy_output = 0x4fc0019c; -spi_common_set_flash_cs_timing = 0x4fc001a0; -esp_rom_spi_set_address_bit_len = 0x4fc001a4; -SPILock = 0x4fc001a8; -SPIMasterReadModeCnfig = 0x4fc001ac; -SPI_Common_Command = 0x4fc001b0; -SPI_WakeUp = 0x4fc001b4; -SPI_block_erase = 0x4fc001b8; -SPI_chip_erase = 0x4fc001bc; -SPI_init = 0x4fc001c0; -SPI_page_program = 0x4fc001c4; -SPI_read_data = 0x4fc001c8; -SPI_sector_erase = 0x4fc001cc; -SelectSpiFunction = 0x4fc001d0; -SetSpiDrvs = 0x4fc001d4; -Wait_SPI_Idle = 0x4fc001d8; -spi_dummy_len_fix = 0x4fc001dc; -Disable_QMode = 0x4fc001e0; -Enable_QMode = 0x4fc001e4; -spi_flash_attach = 0x4fc001e8; -spi_flash_get_chip_size = 0x4fc001ec; -spi_flash_guard_set = 0x4fc001f0; -spi_flash_guard_get = 0x4fc001f4; -spi_flash_read_encrypted = 0x4fc001f8; -/* Data (.data, .bss, .rodata) */ -rom_spiflash_legacy_funcs = 0x4ff3ffec; -rom_spiflash_legacy_data = 0x4ff3ffe8; -g_flash_guard_ops = 0x4ff3fff0; - - -/*************************************** - Group hal_systimer - ***************************************/ - -/* Functions */ -systimer_hal_init = 0x4fc00228; -systimer_hal_deinit = 0x4fc0022c; -systimer_hal_set_tick_rate_ops = 0x4fc00230; -systimer_hal_get_counter_value = 0x4fc00234; -systimer_hal_get_time = 0x4fc00238; -systimer_hal_set_alarm_target = 0x4fc0023c; -systimer_hal_set_alarm_period = 0x4fc00240; -systimer_hal_get_alarm_value = 0x4fc00244; -systimer_hal_enable_alarm_int = 0x4fc00248; -systimer_hal_on_apb_freq_update = 0x4fc0024c; -systimer_hal_counter_value_advance = 0x4fc00250; -systimer_hal_enable_counter = 0x4fc00254; -systimer_hal_select_alarm_mode = 0x4fc00258; -systimer_hal_connect_alarm_counter = 0x4fc0025c; -systimer_hal_counter_can_stall_by_cpu = 0x4fc00260; - - -/*************************************** - Group cache - ***************************************/ - -/* Functions */ -Cache_Get_L1_ICache_Line_Size = 0x4fc003c4; -Cache_Get_L1_DCache_Line_Size = 0x4fc003c8; -Cache_Get_L2_Cache_Line_Size = 0x4fc003cc; -Cache_Get_Mode = 0x4fc003d0; -Cache_Set_L2_Cache_Mode = 0x4fc003d4; -Cache_Address_Through_Cache = 0x4fc003d8; -ROM_Boot_Cache_Init = 0x4fc003dc; -Cache_Sync_Addr = 0x4fc003e0; -Cache_Invalidate_Addr = 0x4fc003e4; -Cache_Invalidate_Addr_Gid = 0x4fc003e8; -Cache_Clean_Addr = 0x4fc003ec; -Cache_Clean_Addr_Gid = 0x4fc003f0; -Cache_WriteBack_Addr = 0x4fc003f4; -Cache_WriteBack_Addr_Gid = 0x4fc003f8; -Cache_WriteBack_Invalidate_Addr = 0x4fc003fc; -Cache_WriteBack_Invalidate_Addr_Gid = 0x4fc00400; -Cache_Invalidate_All = 0x4fc00404; -Cache_Invalidate_All_Gid = 0x4fc00408; -Cache_Clean_All = 0x4fc0040c; -Cache_Clean_All_Gid = 0x4fc00410; -Cache_WriteBack_All = 0x4fc00414; -Cache_WriteBack_All_Gid = 0x4fc00418; -Cache_WriteBack_Invalidate_All = 0x4fc0041c; -Cache_WriteBack_Invalidate_All_Gid = 0x4fc00420; -Cache_Mask_All = 0x4fc00424; -Cache_Suspend_L1_CORE0_ICache_Autoload = 0x4fc00428; -Cache_Resume_L1_CORE0_ICache_Autoload = 0x4fc0042c; -Cache_Suspend_L1_CORE1_ICache_Autoload = 0x4fc00430; -Cache_Resume_L1_CORE1_ICache_Autoload = 0x4fc00434; -Cache_Suspend_L1_DCache_Autoload = 0x4fc00438; -Cache_Resume_L1_DCache_Autoload = 0x4fc0043c; -Cache_Suspend_L2_Cache_Autoload = 0x4fc00440; -Cache_Resume_L2_Cache_Autoload = 0x4fc00444; -Cache_Start_L1_CORE0_ICache_Preload = 0x4fc00448; -Cache_L1_CORE0_ICache_Preload_Done = 0x4fc0044c; -Cache_End_L1_CORE0_ICache_Preload = 0x4fc00450; -Cache_Start_L1_CORE1_ICache_Preload = 0x4fc00454; -Cache_L1_CORE1_ICache_Preload_Done = 0x4fc00458; -Cache_End_L1_CORE1_ICache_Preload = 0x4fc0045c; -Cache_Start_L1_DCache_Preload = 0x4fc00460; -Cache_L1_DCache_Preload_Done = 0x4fc00464; -Cache_End_L1_DCache_Preload = 0x4fc00468; -Cache_Start_L2_Cache_Preload = 0x4fc0046c; -Cache_L2_Cache_Preload_Done = 0x4fc00470; -Cache_End_L2_Cache_Preload = 0x4fc00474; -Cache_Config_L1_CORE0_ICache_Autoload = 0x4fc00478; -Cache_Enable_L1_CORE0_ICache_Autoload = 0x4fc0047c; -Cache_Disable_L1_CORE0_ICache_Autoload = 0x4fc00480; -Cache_Config_L1_CORE1_ICache_Autoload = 0x4fc00484; -Cache_Enable_L1_CORE1_ICache_Autoload = 0x4fc00488; -Cache_Disable_L1_CORE1_ICache_Autoload = 0x4fc0048c; -Cache_Config_L1_DCache_Autoload = 0x4fc00490; -Cache_Enable_L1_DCache_Autoload = 0x4fc00494; -Cache_Disable_L1_DCache_Autoload = 0x4fc00498; -Cache_Config_L2_Cache_Autoload = 0x4fc0049c; -Cache_Enable_L2_Cache_Autoload = 0x4fc004a0; -Cache_Disable_L2_Cache_Autoload = 0x4fc004a4; -Cache_Enable_L1_CORE0_ICache_PreLock = 0x4fc004a8; -Cache_Disable_L1_CORE0_ICache_PreLock = 0x4fc004ac; -Cache_Enable_L1_CORE1_ICache_PreLock = 0x4fc004b0; -Cache_Disable_L1_CORE1_ICache_PreLock = 0x4fc004b4; -Cache_Enable_L1_DCache_PreLock = 0x4fc004b8; -Cache_Disable_L1_DCache_PreLock = 0x4fc004bc; -Cache_Enable_L2_Cache_PreLock = 0x4fc004c0; -Cache_Disable_L2_Cache_PreLock = 0x4fc004c4; -Cache_Lock_Addr = 0x4fc004c8; -Cache_Unlock_Addr = 0x4fc004cc; -Cache_Disable_L1_CORE0_ICache = 0x4fc004d0; -Cache_Enable_L1_CORE0_ICache = 0x4fc004d4; -Cache_Suspend_L1_CORE0_ICache = 0x4fc004d8; -Cache_Resume_L1_CORE0_ICache = 0x4fc004dc; -Cache_Disable_L1_CORE1_ICache = 0x4fc004e0; -Cache_Enable_L1_CORE1_ICache = 0x4fc004e4; -Cache_Suspend_L1_CORE1_ICache = 0x4fc004e8; -Cache_Resume_L1_CORE1_ICache = 0x4fc004ec; -Cache_Disable_L1_DCache = 0x4fc004f0; -Cache_Enable_L1_DCache = 0x4fc004f4; -Cache_Suspend_L1_DCache = 0x4fc004f8; -Cache_Resume_L1_DCache = 0x4fc004fc; -Cache_Disable_L2_Cache = 0x4fc00500; -Cache_Enable_L2_Cache = 0x4fc00504; -Cache_Suspend_L2_Cache = 0x4fc00508; -Cache_Resume_L2_Cache = 0x4fc0050c; -Cache_FLASH_MMU_Init = 0x4fc00510; -Cache_PSRAM_MMU_Init = 0x4fc00514; -Cache_FLASH_MMU_Set = 0x4fc00518; -Cache_FLASH_MMU_Set_Secure = 0x4fc0051c; -Cache_PSRAM_MMU_Set = 0x4fc00520; -Cache_PSRAM_MMU_Set_Secure = 0x4fc00524; -Cache_Count_Flash_Pages = 0x4fc00528; -Cache_Flash_To_SPIRAM_Copy = 0x4fc0052c; -Cache_Travel_Tag_Memory = 0x4fc00530; -Cache_Travel_Tag_Memory2 = 0x4fc00534; -Cache_Get_Virtual_Addr = 0x4fc00538; -Cache_Set_IDROM_MMU_Size = 0x4fc0053c; -flash2spiram_instruction_offset = 0x4fc00540; -flash2spiram_rodata_offset = 0x4fc00544; -flash_instr_rodata_start_page = 0x4fc00548; -flash_instr_rodata_end_page = 0x4fc0054c; -Cache_Set_IDROM_MMU_Info = 0x4fc00550; -Cache_Get_IROM_MMU_End = 0x4fc00554; -Cache_Get_DROM_MMU_End = 0x4fc00558; -/* Data (.data, .bss, .rodata) */ -rom_cache_op_cb = 0x4ff3ffdc; -rom_cache_internal_table_ptr = 0x4ff3ffd8; - - -/*************************************** - Group clock - ***************************************/ - -/* Functions */ -ets_clk_get_xtal_freq = 0x4fc0055c; -ets_clk_get_cpu_freq = 0x4fc00560; - - -/*************************************** - Group gpio - ***************************************/ - -/* Functions */ -gpio_set_output_level = 0x4fc00564; -gpio_get_input_level = 0x4fc00568; -gpio_matrix_in = 0x4fc0056c; -gpio_matrix_out = 0x4fc00570; -gpio_bypass_matrix_in = 0x4fc00574; -gpio_output_disable = 0x4fc00578; -gpio_output_enable = 0x4fc0057c; -gpio_pad_input_disable = 0x4fc00580; -gpio_pad_input_enable = 0x4fc00584; -gpio_pad_pulldown = 0x4fc00588; -gpio_pad_pullup = 0x4fc0058c; -gpio_pad_select_gpio = 0x4fc00590; -gpio_pad_set_drv = 0x4fc00594; -gpio_pad_unhold = 0x4fc00598; -gpio_pad_hold = 0x4fc0059c; -gpio_lppad_select_mux = 0x4fc005a0; -gpio_ded_pad_set_drv = 0x4fc005a4; -gpio_ded_pad_pullup = 0x4fc005a8; -gpio_ded_pad_pulldown = 0x4fc005ac; -gpio_ded_pad_hold = 0x4fc005b0; -gpio_ded_pad_unhold = 0x4fc005b4; - - -/*************************************** - Group interrupts - ***************************************/ - -/* Functions */ -esprv_intc_int_set_priority = 0x4fc005b8; -esprv_intc_int_set_threshold = 0x4fc005bc; -esprv_intc_int_enable = 0x4fc005c0; -esprv_intc_int_disable = 0x4fc005c4; -esprv_intc_int_set_type = 0x4fc005c8; -PROVIDE( intr_handler_set = 0x4fc005cc ); -intr_matrix_set = 0x4fc005d0; -ets_intr_lock = 0x4fc005d4; -ets_intr_unlock = 0x4fc005d8; -ets_isr_attach = 0x4fc005dc; -ets_isr_mask = 0x4fc005e0; -ets_isr_unmask = 0x4fc005e4; - - -/*************************************** - Group crypto - ***************************************/ - -/* Functions */ -md5_vector = 0x4fc005e8; -MD5Init = 0x4fc005ec; -MD5Update = 0x4fc005f0; -MD5Final = 0x4fc005f4; -crc32_le = 0x4fc005f8; -crc16_le = 0x4fc005fc; -crc8_le = 0x4fc00600; -crc32_be = 0x4fc00604; -crc16_be = 0x4fc00608; -crc8_be = 0x4fc0060c; -esp_crc8 = 0x4fc00610; -ets_sha_enable = 0x4fc00614; -ets_sha_disable = 0x4fc00618; -ets_sha_get_state = 0x4fc0061c; -ets_sha_init = 0x4fc00620; -ets_sha_process = 0x4fc00624; -ets_sha_starts = 0x4fc00628; -ets_sha_update = 0x4fc0062c; -ets_sha_finish = 0x4fc00630; -ets_sha_clone = 0x4fc00634; -ets_hmac_enable = 0x4fc00638; -ets_hmac_disable = 0x4fc0063c; -ets_hmac_calculate_message = 0x4fc00640; -ets_hmac_calculate_downstream = 0x4fc00644; -ets_hmac_invalidate_downstream = 0x4fc00648; -ets_jtag_enable_temporarily = 0x4fc0064c; -ets_aes_enable = 0x4fc00650; -ets_aes_disable = 0x4fc00654; -ets_aes_setkey = 0x4fc00658; -ets_aes_block = 0x4fc0065c; -ets_aes_setkey_dec = 0x4fc00660; -ets_aes_setkey_enc = 0x4fc00664; -ets_bigint_enable = 0x4fc00668; -ets_bigint_disable = 0x4fc0066c; -ets_bigint_multiply = 0x4fc00670; -ets_bigint_modmult = 0x4fc00674; -ets_bigint_modexp = 0x4fc00678; -ets_bigint_wait_finish = 0x4fc0067c; -ets_bigint_getz = 0x4fc00680; -ets_ds_enable = 0x4fc00684; -ets_ds_disable = 0x4fc00688; -ets_ds_start_sign = 0x4fc0068c; -ets_ds_is_busy = 0x4fc00690; -ets_ds_finish_sign = 0x4fc00694; -ets_ds_encrypt_params = 0x4fc00698; -ets_mgf1_sha256 = 0x4fc0069c; -/* Data (.data, .bss, .rodata) */ -crc32_le_table_ptr = 0x4fc1fff8; -crc16_le_table_ptr = 0x4fc1fff4; -crc8_le_table_ptr = 0x4fc1fff0; -crc32_be_table_ptr = 0x4fc1ffec; -crc16_be_table_ptr = 0x4fc1ffe8; -crc8_be_table_ptr = 0x4fc1ffe4; - - -/*************************************** - Group efuse - ***************************************/ - -/* Functions */ -ets_efuse_read = 0x4fc006a0; -ets_efuse_program = 0x4fc006a4; -ets_efuse_clear_program_registers = 0x4fc006a8; -ets_efuse_write_key = 0x4fc006ac; -ets_efuse_get_read_register_address = 0x4fc006b0; -ets_efuse_get_key_purpose = 0x4fc006b4; -ets_efuse_key_block_unused = 0x4fc006b8; -ets_efuse_find_unused_key_block = 0x4fc006bc; -ets_efuse_rs_calculate = 0x4fc006c0; -ets_efuse_count_unused_key_blocks = 0x4fc006c4; -ets_efuse_secure_boot_enabled = 0x4fc006c8; -ets_efuse_secure_boot_aggressive_revoke_enabled = 0x4fc006cc; -ets_efuse_cache_encryption_enabled = 0x4fc006d0; -ets_efuse_download_modes_disabled = 0x4fc006d4; -ets_efuse_find_purpose = 0x4fc006d8; -ets_efuse_force_send_resume = 0x4fc006dc; -ets_efuse_get_flash_delay_us = 0x4fc006e0; -ets_efuse_get_uart_print_control = 0x4fc006e4; -ets_efuse_direct_boot_mode_disabled = 0x4fc006e8; -ets_efuse_security_download_modes_enabled = 0x4fc006ec; -ets_efuse_jtag_disabled = 0x4fc006f0; -ets_efuse_usb_print_is_disabled = 0x4fc006f4; -ets_efuse_usb_download_mode_disabled = 0x4fc006f8; -ets_efuse_usb_device_disabled = 0x4fc006fc; -ets_efuse_get_km_huk_gen_state = 0x4fc00700; -ets_efuse_get_km_deploy_only_once = 0x4fc00704; -ets_efuse_get_force_use_km_key = 0x4fc00708; -ets_efuse_xts_key_length_256 = 0x4fc0070c; -ets_efuse_get_km_key_lock = 0x4fc00710; - - -/*************************************** - Group key_mgr - ***************************************/ - -/* Functions */ -esp_rom_check_recover_key = 0x4fc00714; -esp_rom_km_huk_conf = 0x4fc00718; -esp_rom_km_huk_risk = 0x4fc0071c; - - -/*************************************** - Group secureboot - ***************************************/ - -/* Functions */ -ets_emsa_pss_verify = 0x4fc00720; -ets_rsa_pss_verify = 0x4fc00724; -ets_ecdsa_verify = 0x4fc00728; -ets_secure_boot_verify_bootloader_with_keys = 0x4fc0072c; -ets_secure_boot_verify_signature = 0x4fc00730; -ets_secure_boot_read_key_digests = 0x4fc00734; -ets_secure_boot_revoke_public_key_digest = 0x4fc00738; - - -/*************************************** - Group usb_device_uart - ***************************************/ - -/* Functions */ -usb_serial_device_rx_one_char = 0x4fc008b0; -usb_serial_device_rx_one_char_block = 0x4fc008b4; -usb_serial_device_tx_flush = 0x4fc008b8; -usb_serial_device_tx_one_char = 0x4fc008bc; - - -/*************************************** - Group usb_dwcotg_uart - ***************************************/ - -/* Functions */ -Uart_Init_USB = 0x4fc008c0; -usb_serial_otg_rx_one_char = 0x4fc008c4; -usb_serial_otg_rx_one_char_block = 0x4fc008c8; -usb_serial_otg_tx_flush = 0x4fc008cc; -usb_serial_otg_tx_one_char = 0x4fc008d0; -/* Data (.data, .bss, .rodata) */ -uart_acm_dev = 0x4ff3ffd4; - - -/*************************************** - Group usb_dwcotg_module - ***************************************/ - -/* Functions */ -cdc_acm_class_handle_req = 0x4fc008d4; -cdc_acm_init = 0x4fc008d8; -cdc_acm_fifo_fill = 0x4fc008dc; -cdc_acm_rx_fifo_cnt = 0x4fc008e0; -cdc_acm_fifo_read = 0x4fc008e4; -cdc_acm_irq_tx_enable = 0x4fc008e8; -cdc_acm_irq_tx_disable = 0x4fc008ec; -cdc_acm_irq_state_enable = 0x4fc008f0; -cdc_acm_irq_state_disable = 0x4fc008f4; -cdc_acm_irq_tx_ready = 0x4fc008f8; -cdc_acm_irq_rx_enable = 0x4fc008fc; -cdc_acm_irq_rx_disable = 0x4fc00900; -cdc_acm_irq_rx_ready = 0x4fc00904; -cdc_acm_irq_is_pending = 0x4fc00908; -cdc_acm_irq_callback_set = 0x4fc0090c; -cdc_acm_line_ctrl_set = 0x4fc00910; -cdc_acm_line_ctrl_get = 0x4fc00914; -cdc_acm_poll_out = 0x4fc00918; -chip_usb_dw_did_persist = 0x4fc0091c; -chip_usb_dw_init = 0x4fc00920; -chip_usb_detach = 0x4fc00924; -chip_usb_dw_prepare_persist = 0x4fc00928; -chip_usb_get_persist_flags = 0x4fc0092c; -chip_usb_set_persist_flags = 0x4fc00930; -cpio_start = 0x4fc00934; -cpio_feed = 0x4fc00938; -cpio_done = 0x4fc0093c; -cpio_destroy = 0x4fc00940; -dfu_flash_init = 0x4fc00944; -dfu_flash_erase = 0x4fc00948; -dfu_flash_program = 0x4fc0094c; -dfu_flash_read = 0x4fc00950; -dfu_flash_attach = 0x4fc00954; -dfu_cpio_callback = 0x4fc00958; -dfu_updater_get_err = 0x4fc0095c; -dfu_updater_clear_err = 0x4fc00960; -dfu_updater_enable = 0x4fc00964; -dfu_updater_begin = 0x4fc00968; -dfu_updater_feed = 0x4fc0096c; -dfu_updater_end = 0x4fc00970; -dfu_updater_set_raw_addr = 0x4fc00974; -dfu_updater_flash_read = 0x4fc00978; -usb_dc_prepare_persist = 0x4fc0097c; -usb_dw_isr_handler = 0x4fc00980; -usb_dc_attach = 0x4fc00984; -usb_dc_detach = 0x4fc00988; -usb_dc_reset = 0x4fc0098c; -usb_dc_set_address = 0x4fc00990; -usb_dc_ep_check_cap = 0x4fc00994; -usb_dc_ep_configure = 0x4fc00998; -usb_dc_ep_set_stall = 0x4fc0099c; -usb_dc_ep_clear_stall = 0x4fc009a0; -usb_dc_ep_halt = 0x4fc009a4; -usb_dc_ep_is_stalled = 0x4fc009a8; -usb_dc_ep_enable = 0x4fc009ac; -usb_dc_ep_disable = 0x4fc009b0; -usb_dc_ep_flush = 0x4fc009b4; -usb_dc_ep_write_would_block = 0x4fc009b8; -usb_dc_ep_write = 0x4fc009bc; -usb_dc_ep_read_wait = 0x4fc009c0; -usb_dc_ep_read_continue = 0x4fc009c4; -usb_dc_ep_read = 0x4fc009c8; -usb_dc_ep_set_callback = 0x4fc009cc; -usb_dc_set_status_callback = 0x4fc009d0; -usb_dc_ep_mps = 0x4fc009d4; -usb_dc_check_poll_for_interrupts = 0x4fc009d8; -mac_addr_to_serial_str_desc = 0x4fc009dc; -usb_set_current_descriptor = 0x4fc009e0; -usb_get_descriptor = 0x4fc009e4; -usb_dev_resume = 0x4fc009e8; -usb_dev_get_configuration = 0x4fc009ec; -usb_set_config = 0x4fc009f0; -usb_deconfig = 0x4fc009f4; -usb_enable = 0x4fc009f8; -usb_disable = 0x4fc009fc; -usb_write_would_block = 0x4fc00a00; -usb_write = 0x4fc00a04; -usb_read = 0x4fc00a08; -usb_ep_set_stall = 0x4fc00a0c; -usb_ep_clear_stall = 0x4fc00a10; -usb_ep_read_wait = 0x4fc00a14; -usb_ep_read_continue = 0x4fc00a18; -usb_transfer_ep_callback = 0x4fc00a1c; -usb_transfer = 0x4fc00a20; -usb_cancel_transfer = 0x4fc00a24; -usb_transfer_sync = 0x4fc00a28; -usb_dfu_set_detach_cb = 0x4fc00a2c; -dfu_class_handle_req = 0x4fc00a30; -dfu_status_cb = 0x4fc00a34; -dfu_custom_handle_req = 0x4fc00a38; -usb_dfu_init = 0x4fc00a3c; -usb_dfu_force_detach = 0x4fc00a40; -usb_dev_deinit = 0x4fc00a44; -usb_dw_ctrl_deinit = 0x4fc00a48; -/* Data (.data, .bss, .rodata) */ -s_usb_osglue = 0x4ff3ffc8; diff --git a/flasher_stub/ld/rom_32s2.ld b/flasher_stub/ld/rom_32s2.ld deleted file mode 100755 index 399aa0f67..000000000 --- a/flasher_stub/ld/rom_32s2.ld +++ /dev/null @@ -1,1064 +0,0 @@ -/* -ESP32S2 ROM address table -Generated for ROM with MD5sum: -0a2c7ec5109c17884606d23b47045796 /home/jack/esp-rom/rom//.output/eagle/release/image/eagle.pro.rom.out -*/ -PROVIDE ( abort = 0x40019fb4 ); -PROVIDE ( abs = 0x40000618 ); -PROVIDE ( __absvdi2 = 0x40005ad8 ); -PROVIDE ( __absvsi2 = 0x40005ac4 ); -PROVIDE ( acm_config_descr = 0x3ffaef0f ); -PROVIDE ( acm_usb_descriptors = 0x3ffaee68 ); -PROVIDE ( __adddf3 = 0x40008660 ); -PROVIDE ( __addsf3 = 0x400081b8 ); -PROVIDE ( __addvdi3 = 0x40008d90 ); -PROVIDE ( __addvsi3 = 0x40008d6c ); -PROVIDE ( __ascii_mbtowc = 0x40007a04 ); -PROVIDE ( __ascii_wctomb = 0x400018d0 ); -PROVIDE ( __ashldi3 = 0x4001b000 ); -PROVIDE ( __ashrdi3 = 0x4001b018 ); -PROVIDE ( __assert = 0x4001a430 ); -PROVIDE ( __assert_func = 0x4001a408 ); -PROVIDE ( boot_prepare = 0x4000f348 ); -PROVIDE ( __bswapdi2 = 0x40006d34 ); -PROVIDE ( __bswapsi2 = 0x40006d0c ); -PROVIDE ( bzero = 0x400078c8 ); -PROVIDE ( Cache_Address_Through_DCache = 0x400180f0 ); -PROVIDE ( Cache_Address_Through_ICache = 0x400180bc ); -PROVIDE ( Cache_Allocate_SRAM = 0x40018d6c ); -PROVIDE ( Cache_Clean_Addr = 0x40018370 ); -PROVIDE ( Cache_Clean_All = 0x40018438 ); -PROVIDE ( Cache_Clean_Items = 0x40018250 ); -PROVIDE ( Cache_Config_DCache_Autoload = 0x40018794 ); -PROVIDE ( Cache_Config_ICache_Autoload = 0x40018664 ); -PROVIDE ( Cache_Count_Flash_Pages = 0x40018f70 ); -PROVIDE ( Cache_Dbus_MMU_Set = 0x40018eb0 ); -PROVIDE ( Cache_DCache_Preload_Done = 0x40018630 ); -PROVIDE ( Cache_Disable_DCache = 0x40018c68 ); -PROVIDE ( Cache_Disable_DCache_Autoload = 0x4001888c ); -PROVIDE ( Cache_Disable_DCache_PreLock = 0x40018a5c ); -PROVIDE ( Cache_Disable_ICache = 0x40018c2c ); -PROVIDE ( Cache_Disable_ICache_Autoload = 0x4001875c ); -PROVIDE ( Cache_Disable_ICache_PreLock = 0x4001892c ); -PROVIDE ( Cache_Enable_DCache = 0x40018d58 ); -PROVIDE ( Cache_Enable_DCache_Autoload = 0x40018874 ); -PROVIDE ( Cache_Enable_DCache_PreLock = 0x400189f0 ); -PROVIDE ( Cache_Enable_Defalut_DCache_Mode = 0x40018170 ); -PROVIDE ( Cache_Enable_ICache = 0x40018cf8 ); -PROVIDE ( Cache_Enable_ICache_Autoload = 0x40018744 ); -PROVIDE ( Cache_Enable_ICache_PreLock = 0x400188c0 ); -PROVIDE ( Cache_End_DCache_Preload = 0x40018644 ); -PROVIDE ( Cache_End_ICache_Preload = 0x400185b0 ); -PROVIDE ( Cache_Flash_To_SPIRAM_Copy = 0x40018fc4 ); -PROVIDE ( Cache_Get_DCache_Line_Size = 0x40017fd8 ); -PROVIDE ( Cache_Get_ICache_Line_Size = 0x40017fbc ); -PROVIDE ( Cache_Get_Memory_Addr = 0x4001929c ); -PROVIDE ( Cache_Get_Memory_BaseAddr = 0x40019244 ); -PROVIDE ( Cache_Get_Memory_value = 0x400192d8 ); -PROVIDE ( Cache_Get_Mode = 0x40017ff0 ); -PROVIDE ( Cache_Get_Virtual_Addr = 0x40019210 ); -PROVIDE ( Cache_Ibus_MMU_Set = 0x40018df4 ); -PROVIDE ( Cache_ICache_Preload_Done = 0x4001859c ); -PROVIDE ( Cache_Invalidate_Addr = 0x400182e4 ); -PROVIDE ( Cache_Invalidate_DCache_All = 0x4001842c ); -PROVIDE ( Cache_Invalidate_DCache_Items = 0x40018208 ); -PROVIDE ( Cache_Invalidate_ICache_All = 0x40018420 ); -PROVIDE ( Cache_Invalidate_ICache_Items = 0x400181b8 ); -PROVIDE ( Cache_Lock_Addr = 0x40018b10 ); -PROVIDE ( Cache_Lock_DCache_Items = 0x40018a80 ); -PROVIDE ( Cache_Lock_ICache_Items = 0x40018950 ); -PROVIDE ( Cache_Mask_All = 0x40018458 ); -PROVIDE ( cache_memory_baseaddrs = 0x3ffaf020 ); -PROVIDE ( Cache_MMU_Init = 0x40018dd8 ); -PROVIDE ( Cache_Resume_DCache = 0x40018d3c ); -PROVIDE ( Cache_Resume_DCache_Autoload = 0x4001850c ); -PROVIDE ( Cache_Resume_ICache = 0x40018cdc ); -PROVIDE ( Cache_Resume_ICache_Autoload = 0x400184c4 ); -PROVIDE ( Cache_Set_DCache_Mode = 0x40018074 ); -PROVIDE ( Cache_Set_Default_Mode = 0x4001810c ); -PROVIDE ( Cache_Set_ICache_Mode = 0x4001803c ); -PROVIDE ( Cache_Start_DCache_Preload = 0x400185c4 ); -PROVIDE ( Cache_Start_ICache_Preload = 0x40018530 ); -PROVIDE ( Cache_Suspend_DCache = 0x40018d04 ); -PROVIDE ( Cache_Suspend_DCache_Autoload = 0x400184e0 ); -PROVIDE ( Cache_Suspend_ICache = 0x40018ca4 ); -PROVIDE ( Cache_Suspend_ICache_Autoload = 0x40018498 ); -PROVIDE ( Cache_Travel_Tag_Memory = 0x4001908c ); -PROVIDE ( Cache_Unlock_Addr = 0x40018b9c ); -PROVIDE ( Cache_Unlock_DCache_Items = 0x40018ac8 ); -PROVIDE ( Cache_Unlock_ICache_Items = 0x40018998 ); -PROVIDE ( Cache_UnMask_Drom0 = 0x40018480 ); -PROVIDE ( Cache_WriteBack_Addr = 0x400183c8 ); -PROVIDE ( Cache_WriteBack_All = 0x40018444 ); -PROVIDE ( Cache_WriteBack_Items = 0x40018298 ); -PROVIDE ( cacl_rtc_memory_crc = 0x4000ffa0 ); -PROVIDE ( calloc = 0x4001a2f4 ); -PROVIDE ( _calloc_r = 0x4001a008 ); -PROVIDE ( cdc_acm_class_handle_req = 0x40013050 ); -PROVIDE ( cdc_acm_config = 0x3ffffa10 ); -PROVIDE ( cdc_acm_dev = 0x3ffffce8 ); -PROVIDE ( cdc_acm_fifo_fill = 0x4001318c ); -PROVIDE ( cdc_acm_fifo_read = 0x40013200 ); -PROVIDE ( cdc_acm_init = 0x40013144 ); -PROVIDE ( cdc_acm_irq_callback_set = 0x400132d4 ); -PROVIDE ( cdc_acm_irq_is_pending = 0x400132b0 ); -PROVIDE ( cdc_acm_irq_rx_disable = 0x40013290 ); -PROVIDE ( cdc_acm_irq_rx_enable = 0x40013284 ); -PROVIDE ( cdc_acm_irq_rx_ready = 0x4001329c ); -PROVIDE ( cdc_acm_irq_state_disable = 0x40013264 ); -PROVIDE ( cdc_acm_irq_state_enable = 0x40013258 ); -PROVIDE ( cdc_acm_irq_tx_disable = 0x4001324c ); -PROVIDE ( cdc_acm_irq_tx_enable = 0x40013240 ); -PROVIDE ( cdc_acm_irq_tx_ready = 0x40013270 ); -PROVIDE ( cdc_acm_line_ctrl_get = 0x40013330 ); -PROVIDE ( cdc_acm_line_ctrl_set = 0x400132dc ); -PROVIDE ( cdc_acm_poll_out = 0x40013360 ); -PROVIDE ( cdc_acm_rx_fifo_cnt = 0x400131ec ); -PROVIDE ( chip723_phyrom_version = 0x4000a8a8 ); -PROVIDE ( chip_usb_detach = 0x40013508 ); -PROVIDE ( chip_usb_dw_did_persist = 0x4001337c ); -PROVIDE ( chip_usb_dw_init = 0x400133bc ); -PROVIDE ( chip_usb_dw_prepare_persist = 0x40013588 ); -PROVIDE ( chip_usb_get_persist_flags = 0x400135d8 ); -PROVIDE ( chip_usb_set_persist_flags = 0x400135e8 ); -PROVIDE ( _cleanup = 0x4001a4f8 ); -PROVIDE ( _cleanup_r = 0x4001a480 ); -PROVIDE ( __clear_cache = 0x40005abc ); -PROVIDE ( close = 0x400080b0 ); -PROVIDE ( _close_r = 0x4001a14c ); -PROVIDE ( __clrsbdi2 = 0x40006da8 ); -PROVIDE ( __clrsbsi2 = 0x40006d90 ); -PROVIDE ( __clzdi2 = 0x4001b238 ); -PROVIDE ( __clzsi2 = 0x4001afd0 ); -PROVIDE ( __cmpdi2 = 0x40005a7c ); -PROVIDE ( context = 0x3fffeb34 ); -PROVIDE ( cpio_destroy = 0x4001599c ); -PROVIDE ( cpio_done = 0x40015968 ); -PROVIDE ( cpio_feed = 0x40015668 ); -PROVIDE ( cpio_start = 0x4001561c ); -PROVIDE ( crc16_le = 0x40011a10 ); -PROVIDE ( crc32_le = 0x400119dc ); -PROVIDE ( crc8_le = 0x40011a4c ); -PROVIDE ( creat = 0x4000788c ); -PROVIDE ( _ctype_ = 0x3ffac76c ); -PROVIDE ( __ctzdi2 = 0x4001b24c ); -PROVIDE ( __ctzsi2 = 0x4001afd8 ); -PROVIDE ( _cvt = 0x4000f9b8 ); -PROVIDE ( _data_end_all_pro = 0x3fffff98 ); -PROVIDE ( _data_end_c = 0x3ffffd80 ); -PROVIDE ( _data_end_ets = 0x3fffe710 ); -PROVIDE ( _data_end_ets_delay = 0x3ffffd74 ); -PROVIDE ( _data_end_ets_printf = 0x3ffffd5c ); -PROVIDE ( _data_end_newlib = 0x3ffffd74 ); -PROVIDE ( _data_end_phyrom = 0x3fffff98 ); -PROVIDE ( _data_end_sip = 0x3fffeb70 ); -PROVIDE ( _data_end_slc = 0x3fffeb70 ); -PROVIDE ( _data_end_spi_flash = 0x3ffffd54 ); -PROVIDE ( _data_end_spi_slave = 0x3fffeb30 ); -PROVIDE ( _data_end_uart = 0x3ffffcf4 ); -PROVIDE ( _data_end_usbdev = 0x3ffffa6c ); -PROVIDE ( _data_end_xtos = 0x3fffef88 ); -PROVIDE ( _data_start_all_pro = 0x3fffff98 ); -PROVIDE ( _data_start_c = 0x3ffffd7c ); -PROVIDE ( _data_start_ets = 0x3fffe710 ); -PROVIDE ( _data_start_ets_delay = 0x3ffffd70 ); -PROVIDE ( _data_start_ets_printf = 0x3ffffd5c ); -PROVIDE ( _data_start_newlib = 0x3ffffd74 ); -PROVIDE ( _data_start_phyrom = 0x3ffffd90 ); -PROVIDE ( _data_start_sip = 0x3fffeb70 ); -PROVIDE ( _data_start_slc = 0x3fffeb70 ); -PROVIDE ( _data_start_spi_flash = 0x3ffffd38 ); -PROVIDE ( _data_start_spi_slave = 0x3fffeb30 ); -PROVIDE ( _data_start_uart = 0x3ffffcf4 ); -PROVIDE ( _data_start_usbdev = 0x3ffffa10 ); -PROVIDE ( _data_start_xtos = 0x3fffeb70 ); -PROVIDE ( dbus_baseaddrs = 0x3ffaf030 ); -PROVIDE ( _DebugExceptionVector = 0x40000280 ); -PROVIDE ( _DebugExceptionVector_text_end = 0x4000028b ); -PROVIDE ( _DebugExceptionVector_text_start = 0x40000280 ); -PROVIDE ( __default_global_locale = 0x3ffac600 ); -PROVIDE ( dfu_class_handle_req = 0x400152f0 ); -PROVIDE ( dfu_config_descr = 0x3ffaeeb2 ); -PROVIDE ( dfu_cpio_callback = 0x4001360c ); -PROVIDE ( dfu_custom_handle_req = 0x40015568 ); -PROVIDE ( dfu_flash_attach = 0x40015a34 ); -PROVIDE ( dfu_flash_deinit = 0x400159b4 ); -PROVIDE ( dfu_flash_erase = 0x400159bc ); -PROVIDE ( dfu_flash_init = 0x400159a4 ); -PROVIDE ( dfu_flash_program = 0x400159d0 ); -PROVIDE ( dfu_flash_read = 0x40015a24 ); -PROVIDE ( dfu_status_cb = 0x40015514 ); -PROVIDE ( dfu_updater_begin = 0x40013858 ); -PROVIDE ( dfu_updater_clear_err = 0x40013810 ); -PROVIDE ( dfu_updater_enable = 0x40013828 ); -PROVIDE ( dfu_updater_end = 0x40013900 ); -PROVIDE ( dfu_updater_feed = 0x400138b4 ); -PROVIDE ( dfu_updater_flash_read = 0x400139e8 ); -PROVIDE ( dfu_updater_get_err = 0x400137fc ); -PROVIDE ( dfu_updater_set_raw_addr = 0x400139d4 ); -PROVIDE ( dfu_usb_descriptors = 0x3ffaee4c ); -PROVIDE ( dh_group14_generator = 0x3ffadfec ); -PROVIDE ( dh_group14_prime = 0x3ffadeec ); -PROVIDE ( dh_group15_generator = 0x3ffadeeb ); -PROVIDE ( dh_group15_prime = 0x3ffadd6b ); -PROVIDE ( dh_group16_generator = 0x3ffadd6a ); -PROVIDE ( dh_group16_prime = 0x3ffadb6a ); -PROVIDE ( dh_group17_generator = 0x3ffadb69 ); -PROVIDE ( dh_group17_prime = 0x3ffad869 ); -PROVIDE ( dh_group18_generator = 0x3ffad868 ); -PROVIDE ( dh_group18_prime = 0x3ffad468 ); -PROVIDE ( dh_group1_generator = 0x3ffae18f ); -PROVIDE ( dh_group1_prime = 0x3ffae12f ); -PROVIDE ( dh_group2_generator = 0x3ffae12e ); -PROVIDE ( dh_group2_prime = 0x3ffae0ae ); -PROVIDE ( dh_group5_generator = 0x3ffae0ad ); -PROVIDE ( dh_group5_prime = 0x3ffadfed ); -PROVIDE ( disable_default_watchdog = 0x4000f270 ); -PROVIDE ( Disable_QMode = 0x400166e0 ); -PROVIDE ( div = 0x40000620 ); -PROVIDE ( __divdc3 = 0x40006854 ); -PROVIDE ( __divdf3 = 0x40008a24 ); -PROVIDE ( __divdi3 = 0x4001b26c ); -PROVIDE ( __divsc3 = 0x40006544 ); -PROVIDE ( __divsf3 = 0x4000841c ); -PROVIDE ( __divsi3 = 0x4001afa0 ); -PROVIDE ( dmadesc_rx = 0x3fffeb4c ); -PROVIDE ( dmadesc_tx = 0x3fffeb40 ); -PROVIDE ( _DoubleExceptionVector = 0x400003c0 ); -PROVIDE ( _DoubleExceptionVector_text_end = 0x400003c6 ); -PROVIDE ( _DoubleExceptionVector_text_start = 0x400003c0 ); -PROVIDE ( _dram0_0_start = 0x3ffeab00 ); -PROVIDE ( _dram0_rtos_reserved_start = 0x3ffffa10 ); -PROVIDE ( dummy_len_plus = 0x3ffffd54 ); -PROVIDE ( Enable_QMode = 0x40016690 ); -PROVIDE ( __eqdf2 = 0x40005904 ); -PROVIDE ( __eqsf2 = 0x400055d0 ); -PROVIDE ( esp_crc8 = 0x40011a78 ); -PROVIDE ( esp_rom_config_pad_power_select = 0x40016e58 ); -PROVIDE ( esp_rom_opiflash_cache_mode_config = 0x40016754 ); -PROVIDE ( esp_rom_opiflash_exec_cmd = 0x40017e30 ); -PROVIDE ( esp_rom_opiflash_exit_continuous_read_mode = 0x40017ee8 ); -PROVIDE ( esp_rom_opiflash_mode_reset = 0x40017f90 ); -PROVIDE ( esp_rom_opiflash_pin_config = 0x400177f8 ); -PROVIDE ( esp_rom_opiflash_soft_reset = 0x40017f24 ); -PROVIDE ( esp_rom_spi_cmd_config = 0x40017c58 ); -PROVIDE ( esp_rom_spi_cmd_start = 0x40017ba8 ); -PROVIDE ( esp_rom_spi_flash_auto_sus_res = 0x400175e0 ); -PROVIDE ( esp_rom_spi_flash_auto_wait_idle = 0x4001751c ); -PROVIDE ( esp_rom_spi_flash_send_resume = 0x40017570 ); -PROVIDE ( esp_rom_spi_flash_update_id = 0x40016e44 ); -PROVIDE ( esp_rom_spi_reset_rw_mode = 0x40017984 ); -PROVIDE ( esp_rom_spi_set_dtr_swap_mode = 0x40017b60 ); -PROVIDE ( esp_rom_spi_set_op_mode = 0x400179e8 ); -PROVIDE ( _etext = 0x4001bed0 ); -PROVIDE ( ets_aes_block = 0x4000d610 ); -PROVIDE ( ets_aes_disable = 0x4000d4f8 ); -PROVIDE ( ets_aes_enable = 0x4000d4cc ); -PROVIDE ( ets_aes_set_endian = 0x4000d528 ); -PROVIDE ( ets_aes_setkey = 0x4000d594 ); -PROVIDE ( ets_aes_setkey_dec = 0x4000d5f0 ); -PROVIDE ( ets_aes_setkey_enc = 0x4000d5e0 ); -PROVIDE ( ets_bigint_disable = 0x4000d750 ); -PROVIDE ( ets_bigint_enable = 0x4000d708 ); -PROVIDE ( ets_bigint_getz = 0x4000d858 ); -PROVIDE ( ets_bigint_modexp = 0x4000d818 ); -PROVIDE ( ets_bigint_modmult = 0x4000d7f4 ); -PROVIDE ( ets_bigint_multiply = 0x4000d790 ); -PROVIDE ( ets_bigint_wait_finish = 0x4000d840 ); -PROVIDE ( ets_config_flash_by_image_hdr = 0x40010e40 ); -PROVIDE ( ets_delay_us = 0x4000d888 ); -PROVIDE ( ets_ds_disable = 0x4000d910 ); -PROVIDE ( ets_ds_enable = 0x4000d8e4 ); -PROVIDE ( ets_ds_encrypt_params = 0x4000da90 ); -PROVIDE ( ets_ds_finish_sign = 0x4000d9f8 ); -PROVIDE ( ets_ds_is_busy = 0x4000d93c ); -PROVIDE ( ets_ds_start_sign = 0x4000d96c ); -PROVIDE ( ets_efuse_cache_encryption_enabled = 0x4000e690 ); -PROVIDE ( ets_efuse_clear_program_registers = 0x4000e100 ); -PROVIDE ( ets_efuse_count_unused_key_blocks = 0x4000e2c4 ); -PROVIDE ( ets_efuse_download_modes_disabled = 0x4000e594 ); -PROVIDE ( ets_efuse_find_purpose = 0x4000e224 ); -PROVIDE ( ets_efuse_find_unused_key_block = 0x4000e2ac ); -PROVIDE ( ets_efuse_flash_opi_5pads_power_sel_vddspi = 0x4000e640 ); -PROVIDE ( ets_efuse_flash_opi_mode = 0x4000e650 ); -PROVIDE ( ets_efuse_force_send_resume = 0x4000e660 ); -PROVIDE ( ets_efuse_get_flash_delay_us = 0x4000e6d4 ); -PROVIDE ( ets_efuse_get_key_purpose = 0x4000e1b0 ); -PROVIDE ( ets_efuse_get_opiconfig = 0x4000e4fc ); -PROVIDE ( ets_efuse_get_read_register_address = 0x4000e18c ); -PROVIDE ( ets_efuse_get_spiconfig = 0x4000e4a0 ); -PROVIDE ( ets_efuse_get_uart_print_channel = 0x4000e5b4 ); -PROVIDE ( ets_efuse_get_uart_print_control = 0x4000e5a4 ); -PROVIDE ( ets_efuse_get_wp_pad = 0x4000e444 ); -PROVIDE ( ets_efuse_key_block_unused = 0x4000e250 ); -PROVIDE ( ets_efuse_legacy_spi_boot_mode_disabled = 0x4000e6b0 ); -PROVIDE ( ets_efuse_program = 0x4000e134 ); -PROVIDE ( ets_efuse_read = 0x4000e0c0 ); -PROVIDE ( ets_efuse_rs_calculate = 0x4000e6f8 ); -PROVIDE ( ets_efuse_secure_boot_aggressive_revoke_enabled = 0x4000e680 ); -PROVIDE ( ets_efuse_secure_boot_enabled = 0x4000e670 ); -PROVIDE ( ets_efuse_security_download_modes_enabled = 0x4000e5d4 ); -PROVIDE ( ets_efuse_set_timing = 0x4000df3c ); -PROVIDE ( ets_efuse_start = 0x4000e084 ); -PROVIDE ( ets_efuse_usb_download_mode_disabled = 0x4000e5f4 ); -PROVIDE ( ets_efuse_usb_force_nopersist = 0x4000e630 ); -PROVIDE ( ets_efuse_usb_module_disabled = 0x4000e5c4 ); -PROVIDE ( ets_efuse_usb_use_ext_phy = 0x4000e620 ); -PROVIDE ( ets_efuse_write_key = 0x4000e2f4 ); -PROVIDE ( ets_emsa_pss_verify = 0x40011818 ); -PROVIDE ( ets_get_apb_freq = 0x40010c58 ); -PROVIDE ( ets_get_cpu_frequency = 0x4000d8b0 ); -PROVIDE ( ets_get_printf_channel = 0x4000ff48 ); -PROVIDE ( ets_get_xtal_div = 0x40010bfc ); -PROVIDE ( ets_get_xtal_freq = 0x40010c38 ); -PROVIDE ( ets_hmac_calculate_downstream = 0x4000f120 ); -PROVIDE ( ets_hmac_calculate_message = 0x4000f020 ); -PROVIDE ( ets_hmac_disable = 0x4000eff4 ); -PROVIDE ( ets_hmac_enable = 0x4000efd8 ); -PROVIDE ( ets_hmac_invalidate_downstream = 0x4000f140 ); -PROVIDE ( ets_install_lock = 0x4000fea0 ); -PROVIDE ( ets_install_putc1 = 0x4000feb0 ); -PROVIDE ( ets_install_putc2 = 0x4000fed0 ); -PROVIDE ( ets_install_uart_printf = 0x4000fec0 ); -PROVIDE ( ets_intr_count = 0x3fffe710 ); -PROVIDE ( ets_intr_lock = 0x4000f168 ); -PROVIDE ( ets_intr_unlock = 0x4000f17c ); -PROVIDE ( ets_is_print_boot = 0x4000f2a0 ); -PROVIDE ( ets_isr_attach = 0x4000f1a4 ); -PROVIDE ( ets_isr_mask = 0x4000f1b4 ); -PROVIDE ( ets_isr_unmask = 0x4000f1c0 ); -PROVIDE ( ets_jtag_enable_temporarily = 0x4000e548 ); -PROVIDE ( ets_loader_map_range = 0x40010d4c ); -PROVIDE ( ets_mgf1_sha256 = 0x400117b0 ); -PROVIDE ( ets_printf = 0x4000fee0 ); -PROVIDE ( ets_printf_lock = 0x3ffffd64 ); -PROVIDE ( ets_printf_uart = 0x3ffffd5c ); -PROVIDE ( ets_printf_unlock = 0x3ffffd60 ); -PROVIDE ( ets_rsa_pss_verify = 0x4001191c ); -PROVIDE ( ets_run_flash_bootloader = 0x40010f58 ); -PROVIDE ( ets_secure_boot_read_key_digests = 0x400101ac ); -PROVIDE ( ets_secure_boot_revoke_public_key_digest = 0x4001025c ); -PROVIDE ( ets_secure_boot_verify_bootloader_with_keys = 0x40010444 ); -PROVIDE ( ets_secure_boot_verify_signature = 0x400102cc ); -PROVIDE ( ets_secure_boot_verify_stage_bootloader = 0x40010720 ); -PROVIDE ( ets_set_printf_channel = 0x4000ff3c ); -PROVIDE ( ets_set_user_start = 0x4000f25c ); -PROVIDE ( ets_set_xtal_div = 0x40010c18 ); -PROVIDE ( ets_sha_clone = 0x4001095c ); -PROVIDE ( ets_sha_disable = 0x400107b4 ); -PROVIDE ( ets_sha_enable = 0x40010788 ); -PROVIDE ( ets_sha_finish = 0x40010ab8 ); -PROVIDE ( ets_sha_get_state = 0x40010934 ); -PROVIDE ( ets_sha_init = 0x400107e0 ); -PROVIDE ( ets_sha_process = 0x40010988 ); -PROVIDE ( ets_sha_starts = 0x40010828 ); -PROVIDE ( ets_sha_update = 0x400109f8 ); -PROVIDE ( ets_startup_callback = 0x3fffe718 ); -PROVIDE ( ets_unpack_flash_code_legacy = 0x40011430 ); -PROVIDE ( ets_update_cpu_frequency = 0x4000d8a4 ); -PROVIDE ( ets_vprintf = 0x4000fa3c ); -PROVIDE ( ets_waiti0 = 0x4000f190 ); -PROVIDE ( ets_wdt_reset_cpu = 0x4001a82c ); -PROVIDE ( ets_write_char = 0x4000f974 ); -PROVIDE ( ets_write_char_uart = 0x4000f998 ); -PROVIDE ( exc_cause_table = 0x3ffacbe8 ); -PROVIDE ( _exit_r = 0x4001a138 ); -PROVIDE ( __extendsfdf2 = 0x40008d08 ); -PROVIDE ( fclose = 0x4001a804 ); -PROVIDE ( _fclose_r = 0x4001a714 ); -PROVIDE ( fflush = 0x40001bb8 ); -PROVIDE ( _fflush_r = 0x40001b30 ); -PROVIDE ( __ffsdi2 = 0x4001b214 ); -PROVIDE ( __ffssi2 = 0x4001afec ); -PROVIDE ( FilePacketSendDeflatedReqMsgProc = 0x40011ed8 ); -PROVIDE ( FilePacketSendReqMsgProc = 0x40011bd8 ); -PROVIDE ( fiprintf = 0x40000a3c ); -PROVIDE ( _fiprintf_r = 0x40000a18 ); -PROVIDE ( __fixdfdi = 0x40008b98 ); -PROVIDE ( __fixdfsi = 0x40008b4c ); -PROVIDE ( __fixsfdi = 0x4000851c ); -PROVIDE ( __fixsfsi = 0x400084dc ); -PROVIDE ( __fixunsdfsi = 0x40008c04 ); -PROVIDE ( __fixunssfdi = 0x400085d4 ); -PROVIDE ( __fixunssfsi = 0x4000857c ); -PROVIDE ( flashchip = 0x3ffffd38 ); -PROVIDE ( FlashDwnLdDeflatedStartMsgProc = 0x40011e80 ); -PROVIDE ( FlashDwnLdParamCfgMsgProc = 0x40011cc0 ); -PROVIDE ( FlashDwnLdStartMsgProc = 0x40011b74 ); -PROVIDE ( FlashDwnLdStopDeflatedReqMsgProc = 0x40011fd8 ); -PROVIDE ( FlashDwnLdStopReqMsgProc = 0x40011c90 ); -PROVIDE ( __floatdidf = 0x4001b170 ); -PROVIDE ( __floatdisf = 0x4001b0a8 ); -PROVIDE ( __floatsidf = 0x4001b12c ); -PROVIDE ( __floatsisf = 0x4001b058 ); -PROVIDE ( __floatundidf = 0x4001b160 ); -PROVIDE ( __floatundisf = 0x4001b098 ); -PROVIDE ( __floatunsidf = 0x4001b120 ); -PROVIDE ( __floatunsisf = 0x4001b04c ); -PROVIDE ( __fp_lock_all = 0x4001a638 ); -PROVIDE ( fprintf = 0x40000a3c ); -PROVIDE ( _fprintf_r = 0x40000a18 ); -PROVIDE ( __fp_unlock_all = 0x4001a64c ); -PROVIDE ( fputwc = 0x40001864 ); -PROVIDE ( __fputwc = 0x40001770 ); -PROVIDE ( _fputwc_r = 0x400017f8 ); -PROVIDE ( free = 0x4001a2c8 ); -PROVIDE ( _free_r = 0x40019fdc ); -PROVIDE ( _fstat_r = 0x4001a0dc ); -PROVIDE ( _fwalk = 0x4001bcec ); -PROVIDE ( _fwalk_reent = 0x4001bd24 ); -PROVIDE ( __gcc_bcmp = 0x40006de0 ); -PROVIDE ( __gedf2 = 0x400059c4 ); -PROVIDE ( general_device_descr = 0x3ffffa58 ); -PROVIDE ( _GeneralException = 0x400073cf ); -PROVIDE ( __gesf2 = 0x40005668 ); -PROVIDE ( get_id = 0x4001610c ); -PROVIDE ( _getpid_r = 0x4001a10c ); -PROVIDE ( __getreent = 0x4001a29c ); -PROVIDE ( GetSecurityInfoProc = 0x40012098 ); -PROVIDE ( _gettimeofday_r = 0x4001a068 ); -PROVIDE ( GetUartDevice = 0x40012f60 ); -PROVIDE ( _global_impure_ptr = 0x3ffffd8c ); -PROVIDE ( __global_locale_ptr = 0x3ffffd7c ); -PROVIDE ( g_phyFuns = 0x3ffffd90 ); -PROVIDE ( g_phyFuns_instance = 0x3ffffd94 ); -PROVIDE ( gpio_input_get = 0x400193a0 ); -PROVIDE ( gpio_input_get_high = 0x400193b4 ); -PROVIDE ( gpio_matrix_in = 0x40019430 ); -PROVIDE ( gpio_matrix_out = 0x40019460 ); -PROVIDE ( gpio_output_disable = 0x400194dc ); -PROVIDE ( gpio_output_enable = 0x400194b0 ); -PROVIDE ( gpio_output_set = 0x4001933c ); -PROVIDE ( gpio_output_set_high = 0x40019374 ); -PROVIDE ( gpio_pad_hold = 0x40019654 ); -PROVIDE ( gpio_pad_input_disable = 0x400195f0 ); -PROVIDE ( gpio_pad_input_enable = 0x400195cc ); -PROVIDE ( gpio_pad_pulldown = 0x40019598 ); -PROVIDE ( gpio_pad_pullup = 0x40019564 ); -PROVIDE ( gpio_pad_select_gpio = 0x40019510 ); -PROVIDE ( gpio_pad_set_drv = 0x40019538 ); -PROVIDE ( gpio_pad_unhold = 0x4001961c ); -PROVIDE ( gpio_pin_wakeup_disable = 0x40019404 ); -PROVIDE ( gpio_pin_wakeup_enable = 0x400193c8 ); -PROVIDE ( g_shared_buffers = 0x3ffeab04 ); -PROVIDE ( __gtdf2 = 0x40005938 ); -PROVIDE ( g_ticks_per_us = 0x3ffffd70 ); -PROVIDE ( __gtsf2 = 0x400055fc ); -PROVIDE ( hmac_md5 = 0x40005490 ); -PROVIDE ( hmac_md5_vector = 0x400053a0 ); -PROVIDE ( ibus_baseaddrs = 0x3ffaf03c ); -PROVIDE ( intr_matrix_set = 0x4000f1d0 ); -PROVIDE ( _iram0_text_end = 0x40000540 ); -PROVIDE ( _iram0_text_start = 0x40000540 ); -PROVIDE ( _iram1_text_end = 0x60021100 ); -PROVIDE ( _iram1_text_start = 0x60021100 ); -PROVIDE ( isalnum = 0x400078d8 ); -PROVIDE ( isalpha = 0x400078e8 ); -PROVIDE ( isascii = 0x4001aaec ); -PROVIDE ( _isatty_r = 0x400078a0 ); -PROVIDE ( isblank = 0x400078f8 ); -PROVIDE ( iscntrl = 0x40007918 ); -PROVIDE ( isdigit = 0x40007930 ); -PROVIDE ( isgraph = 0x40007968 ); -PROVIDE ( islower = 0x40007948 ); -PROVIDE ( isprint = 0x40007980 ); -PROVIDE ( ispunct = 0x40007994 ); -PROVIDE ( isspace = 0x400079ac ); -PROVIDE ( isupper = 0x400079c4 ); -PROVIDE ( _KernelExceptionVector = 0x40000300 ); -PROVIDE ( _KernelExceptionVector_text_end = 0x40000306 ); -PROVIDE ( _KernelExceptionVector_text_start = 0x40000300 ); -PROVIDE ( _kill_r = 0x4001a120 ); -PROVIDE ( labs = 0x40000648 ); -PROVIDE ( ldiv = 0x40000650 ); -PROVIDE ( __ledf2 = 0x40005960 ); -PROVIDE ( __lesf2 = 0x4000561c ); -PROVIDE ( _Level2FromVector = 0x400074f8 ); -PROVIDE ( _Level2HandlerLabel = 0x00000000 ); -PROVIDE ( _Level2InterruptVector_text_end = 0x40000186 ); -PROVIDE ( _Level2InterruptVector_text_start = 0x40000180 ); -PROVIDE ( _Level2Vector = 0x40000180 ); -PROVIDE ( _Level3FromVector = 0x40007594 ); -PROVIDE ( _Level3HandlerLabel = 0x00000000 ); -PROVIDE ( _Level3InterruptVector_text_end = 0x400001c6 ); -PROVIDE ( _Level3InterruptVector_text_start = 0x400001c0 ); -PROVIDE ( _Level3Vector = 0x400001c0 ); -PROVIDE ( _Level4FromVector = 0x4000762c ); -PROVIDE ( _Level4HandlerLabel = 0x00000000 ); -PROVIDE ( _Level4InterruptVector_text_end = 0x40000206 ); -PROVIDE ( _Level4InterruptVector_text_start = 0x40000200 ); -PROVIDE ( _Level4Vector = 0x40000200 ); -PROVIDE ( _Level5FromVector = 0x4000775c ); -PROVIDE ( _Level5HandlerLabel = 0x00000000 ); -PROVIDE ( _Level5InterruptVector_text_end = 0x40000246 ); -PROVIDE ( _Level5InterruptVector_text_start = 0x40000240 ); -PROVIDE ( _Level5Vector = 0x40000240 ); -PROVIDE ( _LevelOneInterrupt = 0x4000740a ); -PROVIDE ( _link_r = 0x4001a0ac ); -PROVIDE ( _lit4_end = 0x40000540 ); -PROVIDE ( _lit4_start = 0x40000540 ); -PROVIDE ( lldesc_build_chain = 0x4000907c ); -PROVIDE ( lldesc_num2link = 0x4000916c ); -PROVIDE ( lldesc_set_owner = 0x40009198 ); -PROVIDE ( lldesc_setup = 0x40019ed8 ); -PROVIDE ( __locale_ctype_ptr = 0x40001c2c ); -PROVIDE ( __locale_ctype_ptr_l = 0x40001c24 ); -PROVIDE ( __locale_mb_cur_max = 0x40001c0c ); -PROVIDE ( _lock_acquire = 0x4001a224 ); -PROVIDE ( _lock_acquire_recursive = 0x4001a238 ); -PROVIDE ( _lock_close = 0x4001a1fc ); -PROVIDE ( _lock_close_recursive = 0x4001a210 ); -PROVIDE ( _lock_init = 0x4001a1d4 ); -PROVIDE ( _lock_init_recursive = 0x4001a1e8 ); -PROVIDE ( _lock_release = 0x4001a274 ); -PROVIDE ( _lock_release_recursive = 0x4001a288 ); -PROVIDE ( _lock_try_acquire = 0x4001a24c ); -PROVIDE ( _lock_try_acquire_recursive = 0x4001a260 ); -PROVIDE ( longjmp = 0x400005a4 ); -PROVIDE ( _lseek_r = 0x4001a19c ); -PROVIDE ( __lshrdi3 = 0x4001b034 ); -PROVIDE ( __ltdf2 = 0x400059ec ); -PROVIDE ( __ltsf2 = 0x40005688 ); -PROVIDE ( main = 0x4000f6c4 ); -PROVIDE ( malloc = 0x4001a2b0 ); -PROVIDE ( _malloc_r = 0x40019fc4 ); -PROVIDE ( _mbtowc_r = 0x400079e0 ); -PROVIDE ( MD5Final = 0x4000530c ); -PROVIDE ( MD5Init = 0x4000526c ); -PROVIDE ( MD5Update = 0x4000528c ); -PROVIDE ( md5_vector = 0x40005374 ); -PROVIDE ( memccpy = 0x4001ab00 ); -PROVIDE ( memchr = 0x4001ab24 ); -PROVIDE ( memcmp = 0x4001ab40 ); -PROVIDE ( memcpy = 0x4001aba8 ); -PROVIDE ( MemDwnLdStartMsgProc = 0x40011cec ); -PROVIDE ( MemDwnLdStopReqMsgProc = 0x40011d80 ); -PROVIDE ( _memmap_cacheattr_bp_allvalid = 0x22222222 ); -PROVIDE ( _memmap_cacheattr_bp_base = 0x00000220 ); -PROVIDE ( _memmap_cacheattr_bp_strict = 0xfffff22f ); -PROVIDE ( _memmap_cacheattr_bp_trapnull = 0x2222222f ); -PROVIDE ( _memmap_cacheattr_reset = 0x2222211f ); -PROVIDE ( _memmap_cacheattr_unused_mask = 0xfffff00f ); -PROVIDE ( _memmap_cacheattr_wb_allvalid = 0x22222112 ); -PROVIDE ( _memmap_cacheattr_wba_trapnull = 0x2222211f ); -PROVIDE ( _memmap_cacheattr_wb_base = 0x00000110 ); -PROVIDE ( _memmap_cacheattr_wbna_trapnull = 0x2222211f ); -PROVIDE ( _memmap_cacheattr_wb_strict = 0xfffff11f ); -PROVIDE ( _memmap_cacheattr_wb_trapnull = 0x2222211f ); -PROVIDE ( _memmap_cacheattr_wt_allvalid = 0x22222112 ); -PROVIDE ( _memmap_cacheattr_wt_base = 0x00000110 ); -PROVIDE ( _memmap_cacheattr_wt_strict = 0xfffff11f ); -PROVIDE ( _memmap_cacheattr_wt_trapnull = 0x2222211f ); -PROVIDE ( _memmap_vecbase_reset = 0x40000000 ); -PROVIDE ( memmove = 0x4001acb0 ); -PROVIDE ( MemPacketSendReqMsgProc = 0x40011d1c ); -PROVIDE ( memrchr = 0x4001acec ); -PROVIDE ( memset = 0x4001ad3c ); -PROVIDE ( __moddi3 = 0x4001b534 ); -PROVIDE ( __modsi3 = 0x4001afa8 ); -PROVIDE ( __muldc3 = 0x40005f0c ); -PROVIDE ( __muldf3 = 0x400057e8 ); -PROVIDE ( __muldi3 = 0x4001b1e4 ); -PROVIDE ( __mulsc3 = 0x40005ba4 ); -PROVIDE ( __mulsf3 = 0x40005524 ); -PROVIDE ( __mulsi3 = 0x4001af98 ); -PROVIDE ( multofup = 0x4001bce0 ); -PROVIDE ( __mulvdi3 = 0x40008e50 ); -PROVIDE ( __mulvsi3 = 0x40008e38 ); -PROVIDE ( must_reset = 0x3ffffcf4 ); -PROVIDE ( mz_adler32 = 0x40002e90 ); -PROVIDE ( mz_crc32 = 0x40002f58 ); -PROVIDE ( mz_free = 0x40002fa4 ); -PROVIDE ( __nedf2 = 0x40005904 ); -PROVIDE ( __negdf2 = 0x400056fc ); -PROVIDE ( __negdi2 = 0x4001b1fc ); -PROVIDE ( __negsf2 = 0x40008190 ); -PROVIDE ( __negvdi2 = 0x40008f6c ); -PROVIDE ( __negvsi2 = 0x40008f4c ); -PROVIDE ( __nesf2 = 0x400055d0 ); -PROVIDE ( _NMIExceptionVector = 0x400002c0 ); -PROVIDE ( _NMIExceptionVector_text_end = 0x400002c3 ); -PROVIDE ( _NMIExceptionVector_text_start = 0x400002c0 ); -PROVIDE ( __nsau_data = 0x3ffac870 ); -PROVIDE ( open = 0x400080c4 ); -PROVIDE ( _open_r = 0x4001a164 ); -PROVIDE ( __packed = 0x3ffffcec ); -PROVIDE ( __paritysi2 = 0x40009038 ); -PROVIDE ( _PathLocale = 0x3ffffd80 ); -PROVIDE ( phy_get_romfuncs = 0x4000a88c ); -PROVIDE ( __popcountdi2 = 0x40008fe0 ); -PROVIDE ( __popcountsi2 = 0x40008fa8 ); -PROVIDE ( __popcount_tab = 0x3ffac870 ); -PROVIDE ( __powidf2 = 0x40005b40 ); -PROVIDE ( __powisf2 = 0x40005af8 ); -PROVIDE ( _Pri_4_HandlerAddress = 0x3fffed78 ); -PROVIDE ( _Pri_5_HandlerAddress = 0x3fffed7c ); -PROVIDE ( _printf_common = 0x40000e60 ); -PROVIDE ( _printf_float = 0x4001a30c ); -PROVIDE ( _printf_i = 0x40000f2c ); -PROVIDE ( pthread_setcancelstate = 0x40019fa8 ); -PROVIDE ( _putc1 = 0x3ffffd6c ); -PROVIDE ( _putc2 = 0x3ffffd68 ); -PROVIDE ( qsort = 0x400006f4 ); -PROVIDE ( _raise_r = 0x4001a080 ); -PROVIDE ( rand = 0x40007a78 ); -PROVIDE ( rand_r = 0x40007af4 ); -PROVIDE ( RcvMsg = 0x40012f10 ); -PROVIDE ( read = 0x40008114 ); -PROVIDE ( _read_r = 0x4001a1b8 ); -PROVIDE ( realloc = 0x4001a2dc ); -PROVIDE ( _realloc_r = 0x40019ff0 ); -PROVIDE ( recv_packet = 0x40012de8 ); -PROVIDE ( _rename_r = 0x4001a038 ); -PROVIDE ( _ResetHandler = 0x4000044c ); -PROVIDE ( _ResetVector = 0x40000400 ); -PROVIDE ( _ResetVector_literal_end = 0x40000540 ); -PROVIDE ( _ResetVector_literal_start = 0x40000540 ); -PROVIDE ( _ResetVector_text_end = 0x4000053d ); -PROVIDE ( _ResetVector_text_start = 0x40000400 ); -PROVIDE ( _rodata_end = 0x3ffaff2c ); -PROVIDE ( _rodata_start = 0x3ffac600 ); -PROVIDE ( rom_abs_temp = 0x4000c330 ); -PROVIDE ( rom_ant_btrx_cfg = 0x4000a0fc ); -PROVIDE ( rom_ant_bttx_cfg = 0x4000a0c0 ); -PROVIDE ( rom_ant_dft_cfg = 0x40009fc8 ); -PROVIDE ( rom_ant_wifirx_cfg = 0x4000a03c ); -PROVIDE ( rom_ant_wifitx_cfg = 0x40009ff8 ); -PROVIDE ( rom_bb_bss_cbw40_dig = 0x40009a84 ); -PROVIDE ( rom_bb_wdg_cfg = 0x40009eb8 ); -PROVIDE ( rom_bb_wdg_test_en = 0x40009a48 ); -PROVIDE ( rom_bb_wdt_get_status = 0x40009d18 ); -PROVIDE ( rom_bb_wdt_int_enable = 0x40009cd4 ); -PROVIDE ( rom_bb_wdt_rst_enable = 0x40009cb4 ); -PROVIDE ( rom_bb_wdt_timeout_clear = 0x40009cfc ); -PROVIDE ( rom_cbw2040_cfg = 0x4000a550 ); -PROVIDE ( rom_check_noise_floor = 0x40009b4c ); -PROVIDE ( rom_chip_i2c_readReg = 0x4000a8e4 ); -PROVIDE ( rom_chip_i2c_writeReg = 0x4000a960 ); -PROVIDE ( rom_correct_rf_ana_gain = 0x4000d2b4 ); -PROVIDE ( rom_dc_iq_est = 0x4000c414 ); -PROVIDE ( rom_disable_agc = 0x400091cc ); -PROVIDE ( rom_enable_agc = 0x400091e4 ); -PROVIDE ( rom_freq_get_i2c_data = 0x4000bb84 ); -PROVIDE ( rom_freq_i2c_set_wifi_data = 0x4000b948 ); -PROVIDE ( rom_freq_i2c_write_set = 0x4000b3bc ); -PROVIDE ( rom_gen_rx_gain_table = 0x4000a300 ); -PROVIDE ( rom_get_bbgain_db = 0x400094ec ); -PROVIDE ( rom_get_data_sat = 0x40009338 ); -PROVIDE ( rom_get_fm_sar_dout = 0x4000c024 ); -PROVIDE ( rom_get_i2c_read_mask = 0x4000a8c0 ); -PROVIDE ( rom_get_power_db = 0x4000ce28 ); -PROVIDE ( rom_get_pwctrl_correct = 0x4000d470 ); -PROVIDE ( rom_get_rfcal_rxiq_data = 0x4000cab0 ); -PROVIDE ( rom_get_rf_gain_qdb = 0x4000d29c ); -PROVIDE ( rom_get_sar_dout = 0x4000d400 ); -PROVIDE ( rom_i2c_clk_sel = 0x4000a788 ); -PROVIDE ( rom_i2c_readReg = 0x4000a940 ); -PROVIDE ( rom_i2c_readReg_Mask = 0x4000a9c4 ); -PROVIDE ( rom_i2c_writeReg = 0x4000a9a8 ); -PROVIDE ( rom_i2c_writeReg_Mask = 0x4000aa00 ); -PROVIDE ( rom_index_to_txbbgain = 0x4000bd10 ); -PROVIDE ( rom_iq_est_disable = 0x4000c3d8 ); -PROVIDE ( rom_iq_est_enable = 0x4000c358 ); -PROVIDE ( rom_linear_to_db = 0x4000cdbc ); -PROVIDE ( rom_loopback_mode_en = 0x40009304 ); -PROVIDE ( rom_mac_enable_bb = 0x40009e48 ); -PROVIDE ( rom_meas_tone_pwr_db = 0x4000ce64 ); -PROVIDE ( rom_mhz2ieee = 0x4000a4e8 ); -PROVIDE ( rom_noise_floor_auto_set = 0x40009ab4 ); -PROVIDE ( rom_pbus_debugmode = 0x4000ac70 ); -PROVIDE ( rom_pbus_force_mode = 0x4000aa6c ); -PROVIDE ( rom_pbus_force_test = 0x4000abd0 ); -PROVIDE ( rom_pbus_rd = 0x4000ac2c ); -PROVIDE ( rom_pbus_rd_addr = 0x4000ab34 ); -PROVIDE ( rom_pbus_rd_shift = 0x4000ab80 ); -PROVIDE ( rom_pbus_rx_dco_cal = 0x4000c49c ); -PROVIDE ( rom_pbus_set_dco = 0x4000ae2c ); -PROVIDE ( rom_pbus_set_rxgain = 0x4000ac98 ); -PROVIDE ( rom_pbus_workmode = 0x4000ac84 ); -PROVIDE ( rom_pbus_xpd_rx_off = 0x4000acfc ); -PROVIDE ( rom_pbus_xpd_rx_on = 0x4000ad30 ); -PROVIDE ( rom_pbus_xpd_tx_off = 0x4000ad84 ); -PROVIDE ( rom_pbus_xpd_tx_on = 0x4000add4 ); -PROVIDE ( rom_phy_ant_init = 0x40009f48 ); -PROVIDE ( rom_phy_byte_to_word = 0x40009d60 ); -PROVIDE ( rom_phy_chan_dump_cfg = 0x4000a180 ); -PROVIDE ( rom_phy_chan_filt_set = 0x4000a614 ); -PROVIDE ( rom_phy_close_pa = 0x4000a810 ); -PROVIDE ( rom_phy_disable_cca = 0x40009208 ); -PROVIDE ( rom_phy_disable_low_rate = 0x4000a2b8 ); -PROVIDE ( rom_phy_enable_cca = 0x40009234 ); -PROVIDE ( rom_phy_enable_low_rate = 0x4000a280 ); -PROVIDE ( rom_phy_freq_correct = 0x4000b0b4 ); -PROVIDE ( rom_phy_get_noisefloor = 0x40009b04 ); -PROVIDE ( rom_phy_get_rx_freq = 0x4000a6ac ); -PROVIDE ( rom_phy_get_tx_rate = 0x40009d50 ); -PROVIDE ( rom_phy_rx11blr_cfg = 0x40009c5c ); -PROVIDE ( rom_phy_rx_sense_set = 0x4000a704 ); -PROVIDE ( rom_phy_set_bbfreq_init = 0x4000d3d0 ); -PROVIDE ( rom_pll_correct_dcap = 0x4000bad4 ); -PROVIDE ( rom_pow_usr = 0x4000924c ); -PROVIDE ( rom_read_hw_noisefloor = 0x40009c38 ); -PROVIDE ( rom_read_sar_dout = 0x4000bfd4 ); -PROVIDE ( rom_restart_cal = 0x4000ae74 ); -PROVIDE ( rom_rfcal_pwrctrl = 0x4000d098 ); -PROVIDE ( rom_rfcal_rxiq = 0x4000ca3c ); -PROVIDE ( rom_rfcal_txcap = 0x4000ccac ); -PROVIDE ( rom_rfpll_set_freq = 0x4000afa4 ); -PROVIDE ( rom_rftx_init = 0x4000b24c ); -PROVIDE ( rom_rx_gain_force = 0x40009558 ); -PROVIDE ( rom_rxiq_cover_mg_mp = 0x4000c954 ); -PROVIDE ( rom_rxiq_get_mis = 0x4000c7d8 ); -PROVIDE ( rom_rxiq_set_reg = 0x4000c8ec ); -PROVIDE ( rom_set_cal_rxdc = 0x400092c4 ); -PROVIDE ( rom_set_cca = 0x4000a59c ); -PROVIDE ( rom_set_chan_cal_interp = 0x4000cba4 ); -PROVIDE ( rom_set_channel_freq = 0x4000b00c ); -PROVIDE ( rom_set_loopback_gain = 0x40009268 ); -PROVIDE ( rom_set_noise_floor = 0x40009bf4 ); -PROVIDE ( rom_set_pbus_mem = 0x40009380 ); -PROVIDE ( rom_set_rf_freq_offset = 0x4000b214 ); -PROVIDE ( rom_set_rxclk_en = 0x400095cc ); -PROVIDE ( rom_set_txcap_reg = 0x4000cc34 ); -PROVIDE ( rom_set_txclk_en = 0x4000959c ); -PROVIDE ( rom_set_tx_dig_gain = 0x40009514 ); -PROVIDE ( rom_set_xpd_sar = 0x40009f08 ); -PROVIDE ( rom_spur_cal = 0x4000a47c ); -PROVIDE ( rom_spur_reg_write_one_tone = 0x400097c4 ); -PROVIDE ( rom_start_tx_tone = 0x400096f0 ); -PROVIDE ( rom_start_tx_tone_step = 0x40009608 ); -PROVIDE ( rom_stop_tx_tone = 0x4000a428 ); -PROVIDE ( _rom_store = 0x4001bed0 ); -PROVIDE ( _rom_store_table = 0x4001bd64 ); -PROVIDE ( rom_target_power_add_backoff = 0x4000d278 ); -PROVIDE ( rom_txbbgain_to_index = 0x4000bce0 ); -PROVIDE ( rom_txcal_work_mode = 0x4000bf30 ); -PROVIDE ( rom_txdc_cal_init = 0x4000bd2c ); -PROVIDE ( rom_txdc_cal_v70 = 0x4000bdc0 ); -PROVIDE ( rom_txiq_cover = 0x4000c1ac ); -PROVIDE ( rom_txiq_get_mis_pwr = 0x4000c0f8 ); -PROVIDE ( rom_txiq_set_reg = 0x4000bf64 ); -PROVIDE ( rom_tx_paon_set = 0x40009db8 ); -PROVIDE ( rom_tx_pwr_backoff = 0x4000ceb8 ); -PROVIDE ( rom_txtone_linear_pwr = 0x4000c0b0 ); -PROVIDE ( rom_wait_rfpll_cal_end = 0x4000af3c ); -PROVIDE ( rom_wifi_11g_rate_chg = 0x4000d260 ); -PROVIDE ( rom_wifi_rifs_mode_en = 0x40009d2c ); -PROVIDE ( rom_write_dac_gain2 = 0x4000a210 ); -PROVIDE ( rom_write_gain_mem = 0x400094bc ); -PROVIDE ( rom_write_pll_cap_mem = 0x4000ba58 ); -PROVIDE ( rom_write_rfpll_sdm = 0x4000aed4 ); -PROVIDE ( rom_wr_rf_freq_mem = 0x4000b2f0 ); -PROVIDE ( roundup2 = 0x4001bcd0 ); -PROVIDE ( rtc_boot_control = 0x4001002c ); -PROVIDE ( rtc_get_reset_reason = 0x4000ff58 ); -PROVIDE ( rtc_get_wakeup_cause = 0x4000ff7c ); -PROVIDE ( rtc_select_apb_bridge = 0x400100a0 ); -PROVIDE ( sbrk = 0x4000812c ); -PROVIDE ( _sbrk_r = 0x4001a0f4 ); -PROVIDE ( _scanf_float = 0x4001a328 ); -PROVIDE ( s_cdcacm_old_rts = 0x3ffffd34 ); -PROVIDE ( __sclose = 0x4001a700 ); -PROVIDE ( SelectSpiFunction = 0x40015d08 ); -PROVIDE ( SelectSpiQIO = 0x40015b88 ); -PROVIDE ( SendMsg = 0x40012d0c ); -PROVIDE ( send_packet = 0x40012cc8 ); -PROVIDE ( __seofread = 0x4001a690 ); -PROVIDE ( setjmp = 0x40000540 ); -PROVIDE ( setlocale = 0x40001c44 ); -PROVIDE ( _setlocale_r = 0x40001bdc ); -PROVIDE ( set_rtc_memory_crc = 0x40010010 ); -PROVIDE ( SetSpiDrvs = 0x40015c18 ); -PROVIDE ( __sf_fake_stderr = 0x3ffaf08c ); -PROVIDE ( __sf_fake_stdin = 0x3ffaf0cc ); -PROVIDE ( __sf_fake_stdout = 0x3ffaf0ac ); -PROVIDE ( __sflush_r = 0x400019dc ); -PROVIDE ( __sfmoreglue = 0x4001a4c8 ); -PROVIDE ( __sfp = 0x4001a590 ); -PROVIDE ( __sfp_lock_acquire = 0x4001a508 ); -PROVIDE ( __sfp_lock_release = 0x4001a514 ); -PROVIDE ( __sfputs_r = 0x40000aa0 ); -PROVIDE ( __sfvwrite_r = 0x40001310 ); -PROVIDE ( sig_matrix = 0x3ffffd57 ); -PROVIDE ( __sinit = 0x4001a538 ); -PROVIDE ( __sinit_lock_acquire = 0x4001a520 ); -PROVIDE ( __sinit_lock_release = 0x4001a52c ); -PROVIDE ( __smakebuf_r = 0x40001954 ); -PROVIDE ( software_reset = 0x40010068 ); -PROVIDE ( software_reset_cpu = 0x40010080 ); -PROVIDE ( SPI_block_erase = 0x4001623c ); -PROVIDE ( spi_cache_mode_switch = 0x40016a00 ); -PROVIDE ( SPI_chip_erase = 0x400161b8 ); -PROVIDE ( SPIClkConfig = 0x400170a0 ); -PROVIDE ( SPI_Common_Command = 0x400162e8 ); -PROVIDE ( spi_common_set_flash_cs_timing = 0x40016c0c ); -PROVIDE ( spi_dummy_len_fix = 0x40015b50 ); -PROVIDE ( SPI_Encrypt_Write = 0x400177e0 ); -PROVIDE ( SPI_Encrypt_Write_Dest = 0x400176cc ); -PROVIDE ( SPIEraseArea = 0x40017470 ); -PROVIDE ( SPIEraseBlock = 0x4001710c ); -PROVIDE ( SPIEraseChip = 0x400170ec ); -PROVIDE ( SPIEraseSector = 0x4001716c ); -PROVIDE ( spi_flash_attach = 0x40017004 ); -PROVIDE ( spi_flash_boot_attach = 0x40016fc0 ); -PROVIDE ( spi_flash_check_suspend_cb = 0x3ffffd58 ); -PROVIDE ( SPI_flashchip_data = 0x3ffffd3c ); -PROVIDE ( spi_flash_set_check_suspend_cb = 0x40015b3c ); -PROVIDE ( SPI_init = 0x40016ce8 ); -PROVIDE ( SPILock = 0x40016ed4 ); -PROVIDE ( SPIMasterReadModeCnfig = 0x40017014 ); -PROVIDE ( SPI_page_program = 0x400165a8 ); -PROVIDE ( SPIParamCfg = 0x40017500 ); -PROVIDE ( SPIRead = 0x4001728c ); -PROVIDE ( SPI_read_data = 0x40015ed8 ); -PROVIDE ( SPIReadModeCnfig = 0x40016f1c ); -PROVIDE ( SPI_read_status = 0x40016084 ); -PROVIDE ( SPI_read_status_high = 0x40016284 ); -PROVIDE ( SPI_sector_erase = 0x400161ec ); -PROVIDE ( spi_slave_download = 0x4001998c ); -PROVIDE ( spi_slave_rom_check_conn = 0x40019724 ); -PROVIDE ( spi_slave_rom_init = 0x40019774 ); -PROVIDE ( spi_slave_rom_init_hw = 0x40019b5c ); -PROVIDE ( spi_slave_rom_intr_enable = 0x40019b3c ); -PROVIDE ( spi_slave_rom_rxdma_load = 0x40019da8 ); -PROVIDE ( spi_slave_rom_txdma_load = 0x40019e3c ); -PROVIDE ( SPIUnlock = 0x40016e88 ); -PROVIDE ( SPI_user_command_read = 0x40015fc8 ); -PROVIDE ( SPI_Wait_Idle = 0x40016680 ); -PROVIDE ( SPI_WakeUp = 0x400160f4 ); -PROVIDE ( SPIWrite = 0x400171cc ); -PROVIDE ( SPI_write_enable = 0x4001655c ); -PROVIDE ( SPI_Write_Encrypt_Disable = 0x40017694 ); -PROVIDE ( SPI_Write_Encrypt_Enable = 0x40017678 ); -PROVIDE ( SPI_write_status = 0x400162a4 ); -PROVIDE ( __sprint_r = 0x40000aec ); -PROVIDE ( srand = 0x40007a24 ); -PROVIDE ( __sread = 0x4001a660 ); -PROVIDE ( __sseek = 0x4001a6cc ); -PROVIDE ( __stack = 0x3fffe710 ); -PROVIDE ( _stack_sentry = 0x3fffc410 ); -PROVIDE ( _start = 0x4000726c ); -PROVIDE ( _stat_r = 0x4001a0c4 ); -PROVIDE ( _stext = 0x40007118 ); -PROVIDE ( strcasecmp = 0x40007b38 ); -PROVIDE ( strcasestr = 0x40007b7c ); -PROVIDE ( strcat = 0x4001ad90 ); -PROVIDE ( strchr = 0x4001adb0 ); -PROVIDE ( strcmp = 0x40007be4 ); -PROVIDE ( strcoll = 0x40007ce8 ); -PROVIDE ( strcpy = 0x40007cfc ); -PROVIDE ( strcspn = 0x4001adcc ); -PROVIDE ( strdup = 0x40007d84 ); -PROVIDE ( _strdup_r = 0x40007d98 ); -PROVIDE ( string0_descr = 0x3ffaeeae ); -PROVIDE ( strlcat = 0x40007db8 ); -PROVIDE ( strlcpy = 0x4001adf8 ); -PROVIDE ( strlen = 0x40007e08 ); -PROVIDE ( strlwr = 0x40007e68 ); -PROVIDE ( str_manu_descr = 0x3ffaee9a ); -PROVIDE ( strncasecmp = 0x40007e94 ); -PROVIDE ( strncat = 0x4001ae34 ); -PROVIDE ( strncmp = 0x4001ae64 ); -PROVIDE ( strncpy = 0x40007f20 ); -PROVIDE ( strndup = 0x40007fe8 ); -PROVIDE ( _strndup_r = 0x40007ffc ); -PROVIDE ( strnlen = 0x4001ae9c ); -PROVIDE ( str_prod_descr = 0x3ffaee88 ); -PROVIDE ( strrchr = 0x40008040 ); -PROVIDE ( strsep = 0x4000806c ); -PROVIDE ( str_serial_descr = 0x3ffaee84 ); -PROVIDE ( strspn = 0x4001aebc ); -PROVIDE ( strstr = 0x4001aee8 ); -PROVIDE ( __strtok_r = 0x4001af18 ); -PROVIDE ( strtok_r = 0x4001af7c ); -PROVIDE ( strupr = 0x40008084 ); -PROVIDE ( __subdf3 = 0x400087b4 ); -PROVIDE ( __subsf3 = 0x400082a0 ); -PROVIDE ( __subvdi3 = 0x40008df4 ); -PROVIDE ( __subvsi3 = 0x40008dd0 ); -PROVIDE ( s_usb_osglue = 0x3ffffcdc ); -PROVIDE ( __swbuf = 0x4000167c ); -PROVIDE ( __swbuf_r = 0x400015bc ); -PROVIDE ( __swhatbuf_r = 0x400018f8 ); -PROVIDE ( __swrite = 0x4001a698 ); -PROVIDE ( __swsetup_r = 0x40001690 ); -PROVIDE ( _SyscallException = 0x4000732a ); -PROVIDE ( syscall_table_ptr_app = 0x3ffffd74 ); -PROVIDE ( syscall_table_ptr_pro = 0x3ffffd78 ); -PROVIDE ( _system_r = 0x4001a020 ); -PROVIDE ( tdefl_compress = 0x400041dc ); -PROVIDE ( tdefl_compress_buffer = 0x40004938 ); -PROVIDE ( tdefl_compress_mem_to_mem = 0x40004a50 ); -PROVIDE ( tdefl_compress_mem_to_output = 0x40004a30 ); -PROVIDE ( tdefl_get_adler32 = 0x40004a28 ); -PROVIDE ( tdefl_get_prev_return_status = 0x40004a20 ); -PROVIDE ( tdefl_init = 0x40004954 ); -PROVIDE ( tdefl_write_image_to_png_file_in_memory = 0x40004a64 ); -PROVIDE ( tdefl_write_image_to_png_file_in_memory_ex = 0x40004a58 ); -PROVIDE ( _text_end = 0x4001bed0 ); -PROVIDE ( _text_start = 0x40007118 ); -PROVIDE ( _times_r = 0x4001a050 ); -PROVIDE ( tinfl_decompress = 0x40003000 ); -PROVIDE ( tinfl_decompress_mem_to_callback = 0x400041a8 ); -PROVIDE ( tinfl_decompress_mem_to_mem = 0x40004168 ); -PROVIDE ( toascii = 0x4001af90 ); -PROVIDE ( tolower = 0x40008158 ); -PROVIDE ( toupper = 0x40008174 ); -PROVIDE ( __truncdfsf2 = 0x40008c64 ); -PROVIDE ( uart_acm_dev = 0x3ffffcf8 ); -PROVIDE ( uartAttach = 0x40012890 ); -PROVIDE ( uart_baudrate_detect = 0x400128f0 ); -PROVIDE ( uart_buff_switch = 0x40012d64 ); -PROVIDE ( UartConnCheck = 0x40011ab4 ); -PROVIDE ( UartConnectProc = 0x40011da8 ); -PROVIDE ( UartDev = 0x3ffffcfc ); -PROVIDE ( UartDev_buff_uart_no = 0x3ffffd14 ); -PROVIDE ( uart_div_modify = 0x40012984 ); -PROVIDE ( uart_div_reinit = 0x400129d0 ); -PROVIDE ( UartDwnLdProc = 0x400121ac ); -PROVIDE ( UartGetCmdLn = 0x40012f28 ); -PROVIDE ( Uart_Init = 0x40012a04 ); -PROVIDE ( Uart_Init_USB = 0x40012818 ); -PROVIDE ( UartRegReadProc = 0x40011df8 ); -PROVIDE ( UartRegWriteProc = 0x40011db8 ); -PROVIDE ( uart_rx_intr_handler = 0x40012690 ); -PROVIDE ( uart_rx_one_char = 0x40012bf0 ); -PROVIDE ( uart_rx_one_char_block = 0x40012b9c ); -PROVIDE ( uart_rx_readbuff = 0x40012d1c ); -PROVIDE ( UartRxString = 0x40012c84 ); -PROVIDE ( UartSecureDwnLdProc = 0x40012464 ); -PROVIDE ( UartSetBaudProc = 0x40011e54 ); -PROVIDE ( UartSpiAttachProc = 0x40011e0c ); -PROVIDE ( UartSpiReadProc = 0x40011e28 ); -PROVIDE ( uart_tx_flush = 0x40012b40 ); -/* PROVIDE ( uart_tx_one_char = 0x40012b10 ); */ -/* Note: remapping this to uart_tx_one_char2, to keep consistency */ -PROVIDE ( uart_tx_one_char = 0x40012b28 ); -PROVIDE ( uart_tx_one_char2 = 0x40012b28 ); -PROVIDE ( uart_tx_switch = 0x400128e4 ); -PROVIDE ( uart_tx_wait_idle = 0x40012b6c ); -PROVIDE ( uart_usb_enable_reset_on_rts = 0x40012858 ); -PROVIDE ( Uart_USB_Send_Testament = 0x400127d8 ); -PROVIDE ( __ucmpdi2 = 0x40005a9c ); -PROVIDE ( __udivdi3 = 0x4001b7dc ); -PROVIDE ( __udivmoddi4 = 0x40006e20 ); -PROVIDE ( __udivsi3 = 0x4001afb0 ); -PROVIDE ( __udiv_w_sdiv = 0x40006e18 ); -PROVIDE ( __umoddi3 = 0x4001ba60 ); -PROVIDE ( __umodsi3 = 0x4001afb8 ); -PROVIDE ( __umulsidi3 = 0x4001afc0 ); -PROVIDE ( _unlink_r = 0x4001a094 ); -PROVIDE ( __unorddf2 = 0x40005a50 ); -PROVIDE ( __unordsf2 = 0x400056d4 ); -PROVIDE ( usb_cancel_transfer = 0x40015200 ); -PROVIDE ( usb_data_stuff = 0x3ffacc88 ); -PROVIDE ( usb_dc_attach = 0x40013ecc ); -PROVIDE ( usb_dc_check_poll_for_interrupts = 0x40014980 ); -PROVIDE ( usb_dc_detach = 0x40014010 ); -PROVIDE ( usb_dc_ep_check_cap = 0x40014094 ); -PROVIDE ( usb_dc_ep_clear_stall = 0x400142f0 ); -PROVIDE ( usb_dc_ep_configure = 0x400140d8 ); -PROVIDE ( usb_dc_ep_disable = 0x400144ec ); -PROVIDE ( usb_dc_ep_enable = 0x4001442c ); -PROVIDE ( usb_dc_ep_flush = 0x400145b8 ); -PROVIDE ( usb_dc_ep_halt = 0x4001435c ); -PROVIDE ( usb_dc_ep_is_stalled = 0x400143bc ); -PROVIDE ( usb_dc_ep_mps = 0x40014958 ); -PROVIDE ( usb_dc_ep_read = 0x400148d8 ); -PROVIDE ( usb_dc_ep_read_continue = 0x40014898 ); -PROVIDE ( usb_dc_ep_read_wait = 0x400147bc ); -PROVIDE ( usb_dc_ep_set_callback = 0x40014910 ); -PROVIDE ( usb_dc_ep_set_stall = 0x40014290 ); -PROVIDE ( usb_dc_ep_write = 0x40014684 ); -PROVIDE ( usb_dc_ep_write_would_block = 0x40014624 ); -PROVIDE ( usb_dc_prepare_persist = 0x40013bec ); -PROVIDE ( usb_dc_reset = 0x40014044 ); -PROVIDE ( usb_dc_set_address = 0x4001405c ); -PROVIDE ( usb_dc_set_status_callback = 0x4001494c ); -PROVIDE ( usb_deconfig = 0x40014fa8 ); -PROVIDE ( usb_dev_get_configuration = 0x40014f4c ); -PROVIDE ( usb_dev_resume = 0x40014f38 ); -PROVIDE ( usb_dfu_force_detach = 0x400155b0 ); -PROVIDE ( usb_dfu_init = 0x40015598 ); -PROVIDE ( usb_dfu_set_detach_cb = 0x400152dc ); -PROVIDE ( usb_disable = 0x40015058 ); -PROVIDE ( usb_dw_isr_handler = 0x40013c48 ); -PROVIDE ( usb_enable = 0x40014fc8 ); -PROVIDE ( usb_ep_clear_stall = 0x400150c8 ); -PROVIDE ( usb_ep_read_continue = 0x400150f0 ); -PROVIDE ( usb_ep_read_wait = 0x400150d8 ); -PROVIDE ( usb_ep_set_stall = 0x400150b8 ); -PROVIDE ( usb_get_descriptor = 0x400149c0 ); -PROVIDE ( usb_read = 0x400150a0 ); -PROVIDE ( usb_set_config = 0x40014f64 ); -PROVIDE ( usb_set_current_descriptor = 0x400149a8 ); -PROVIDE ( usb_transfer = 0x40015150 ); -PROVIDE ( usb_transfer_ep_callback = 0x40015100 ); -PROVIDE ( usb_transfer_sync = 0x40015250 ); -PROVIDE ( usb_write = 0x40015088 ); -PROVIDE ( usb_write_would_block = 0x40015078 ); -PROVIDE ( user_code_start = 0x3fffe714 ); -PROVIDE ( _UserExceptionVector = 0x40000340 ); -PROVIDE ( _UserExceptionVector_text_end = 0x40000357 ); -PROVIDE ( _UserExceptionVector_text_start = 0x40000340 ); -PROVIDE ( VerifyFlashMd5Proc = 0x40012004 ); -PROVIDE ( vfiprintf = 0x40000e40 ); -PROVIDE ( _vfiprintf_r = 0x40000b58 ); -PROVIDE ( vfprintf = 0x40000e40 ); -PROVIDE ( _vfprintf_r = 0x40000b58 ); -PROVIDE ( Wait_SPI_Idle = 0x40016188 ); -PROVIDE ( wcrtomb = 0x400012f4 ); -PROVIDE ( _wcrtomb_r = 0x400012a0 ); -PROVIDE ( _wctomb_r = 0x400018ac ); -PROVIDE ( _WindowOverflow12 = 0x40000100 ); -PROVIDE ( _WindowOverflow4 = 0x40000000 ); -PROVIDE ( _WindowOverflow8 = 0x40000080 ); -PROVIDE ( _WindowUnderflow12 = 0x40000140 ); -PROVIDE ( _WindowUnderflow4 = 0x40000040 ); -PROVIDE ( _WindowUnderflow8 = 0x400000c0 ); -PROVIDE ( _WindowVectors_text_end = 0x40000170 ); -PROVIDE ( _WindowVectors_text_start = 0x40000000 ); -PROVIDE ( write = 0x40008140 ); -PROVIDE ( _write_r = 0x4001a180 ); -PROVIDE ( __XT_EXCEPTION_DESCS__ = 0x3ffaff2c ); -PROVIDE ( __XT_EXCEPTION_DESCS_END__ = 0x3ffaff2c ); -PROVIDE ( __XT_EXCEPTION_TABLE__ = 0x3ffafe3a ); -PROVIDE ( xthal_bcopy = 0x4001a918 ); -PROVIDE ( xthal_copy123 = 0x4001a9ac ); -PROVIDE ( xthal_get_ccompare = 0x4001aabc ); -PROVIDE ( xthal_get_ccount = 0x4001aa90 ); -PROVIDE ( xthal_get_interrupt = 0x4001aadc ); -PROVIDE ( Xthal_intlevel = 0x3ffaf06c ); -PROVIDE ( xthal_memcpy = 0x4001a93c ); -PROVIDE ( xthal_set_ccompare = 0x4001aa98 ); -PROVIDE ( xthal_set_intclear = 0x4001aae4 ); -PROVIDE ( xthals_hw_configid0 = 0xc2ecfafe ); -PROVIDE ( xthals_hw_configid1 = 0x224787b1 ); -PROVIDE ( xthals_release_major = 0x00002ee0 ); -PROVIDE ( xthals_release_minor = 0x00000009 ); -PROVIDE ( _xtos_alloca_handler = 0x40000010 ); -PROVIDE ( xtos_cause3_handler = 0x40007370 ); -PROVIDE ( xtos_c_handler_table = 0x3fffec78 ); -PROVIDE ( xtos_c_wrapper_handler = 0x40007380 ); -PROVIDE ( _xtos_enabled = 0x3fffed80 ); -PROVIDE ( xtos_exc_handler_table = 0x3fffeb78 ); -PROVIDE ( xtos_interrupt_mask_table = 0x3fffee88 ); -PROVIDE ( xtos_interrupt_table = 0x3fffed88 ); -PROVIDE ( _xtos_ints_off = 0x4001a3e0 ); -PROVIDE ( _xtos_ints_on = 0x4001a3bc ); -PROVIDE ( _xtos_intstruct = 0x3fffed80 ); -PROVIDE ( _xtos_l1int_handler = 0x400073ec ); -PROVIDE ( xtos_p_none = 0x4001a8a0 ); -PROVIDE ( _xtos_restore_intlevel = 0x400074cc ); -PROVIDE ( _xtos_return_from_exc = 0x4001a8a8 ); -PROVIDE ( _xtos_set_exception_handler = 0x400072b4 ); -PROVIDE ( _xtos_set_interrupt_handler = 0x4001a380 ); -PROVIDE ( _xtos_set_interrupt_handler_arg = 0x4001a344 ); -PROVIDE ( _xtos_set_intlevel = 0x4001a8c0 ); -PROVIDE ( _xtos_set_min_intlevel = 0x4001a8dc ); -PROVIDE ( _xtos_set_vpri = 0x400074d8 ); -PROVIDE ( _xtos_syscall_handler = 0x400072fc ); -PROVIDE ( xtos_unhandled_exception = 0x4001a900 ); -PROVIDE ( xtos_unhandled_interrupt = 0x4001a910 ); -PROVIDE ( _xtos_vectors_ref_ = 0x00000000 ); -PROVIDE ( _xtos_vpri_enabled = 0x3fffed84 ); diff --git a/flasher_stub/ld/rom_32s3.ld b/flasher_stub/ld/rom_32s3.ld deleted file mode 100644 index 721824c1d..000000000 --- a/flasher_stub/ld/rom_32s3.ld +++ /dev/null @@ -1,2285 +0,0 @@ -/* ROM function interface esp32s3.rom.ld for esp32s3 - * - * - * Generated from ./interface-esp32s3.yml md5sum 39c4ce259b11323b9404c192b01b712b - * - * Compatible with ROM where ECO version equal or greater to 0. - * - * THIS FILE WAS AUTOMATICALLY GENERATED. DO NOT EDIT. - */ - -PROVIDE ( SPIWrite = esp_rom_spiflash_write); -PROVIDE ( SPI_read_status_high = esp_rom_spiflash_read_statushigh); -PROVIDE ( SPI_write_status = esp_rom_spiflash_write_status); -PROVIDE ( SPIRead = esp_rom_spiflash_read); -PROVIDE ( SPIParamCfg = esp_rom_spiflash_config_param); -PROVIDE ( SPIEraseChip = esp_rom_spiflash_erase_chip); -PROVIDE ( SPIEraseSector = esp_rom_spiflash_erase_sector); -PROVIDE ( SPIEraseBlock = esp_rom_spiflash_erase_block); -PROVIDE ( SPI_Write_Encrypt_Enable = esp_rom_spiflash_write_encrypted_enable); -PROVIDE ( SPI_Write_Encrypt_Disable = esp_rom_spiflash_write_encrypted_disable); -PROVIDE ( SPI_Encrypt_Write = esp_rom_spiflash_write_encrypted); -PROVIDE ( opi_flash_wren = esp_rom_opiflash_wren); - - -/*************************************** - Group common - ***************************************/ - -/* Functions */ -rtc_get_reset_reason = 0x4000057c; -analog_super_wdt_reset_happened = 0x40000588; -jtag_cpu_reset_happened = 0x40000594; -rtc_get_wakeup_cause = 0x400005a0; -rtc_select_apb_bridge = 0x400005ac; -rtc_unhold_all_pads = 0x400005b8; -ets_is_print_boot = 0x400005c4; -ets_printf = 0x400005d0; -ets_install_putc1 = 0x400005dc; -ets_install_uart_printf = 0x400005e8; -ets_install_putc2 = 0x400005f4; -PROVIDE( ets_delay_us = 0x40000600 ); -ets_get_stack_info = 0x4000060c; -ets_install_lock = 0x40000618; -ets_backup_dma_copy = 0x40000624; -ets_apb_backup_init_lock_func = 0x40000630; -UartRxString = 0x4000063c; -uart_tx_one_char = 0x40000648; -uart_tx_one_char2 = 0x40000654; -uart_rx_one_char = 0x40000660; -uart_rx_one_char_block = 0x4000066c; -uart_rx_readbuff = 0x40000678; -uartAttach = 0x40000684; -uart_tx_flush = 0x40000690; -uart_tx_wait_idle = 0x4000069c; -uart_div_modify = 0x400006a8; -ets_write_char_uart = 0x400006b4; -uart_tx_switch = 0x400006c0; -multofup = 0x400006cc; -software_reset = 0x400006d8; -software_reset_cpu = 0x400006e4; -assist_debug_clock_enable = 0x400006f0; -assist_debug_record_enable = 0x400006fc; -clear_super_wdt_reset_flag = 0x40000708; -disable_default_watchdog = 0x40000714; -ets_set_appcpu_boot_addr = 0x40000720; -esp_rom_set_rtc_wake_addr = 0x4000072c; -esp_rom_get_rtc_wake_addr = 0x40000738; -send_packet = 0x40000744; -recv_packet = 0x40000750; -GetUartDevice = 0x4000075c; -GetSecurityInfoProc = 0x40048174; -UartDwnLdProc = 0x40000768; -Uart_Init = 0x40000774; -ets_set_user_start = 0x40000780; -/* Data (.data, .bss, .rodata) */ -ets_rom_layout_p = 0x3ff1fffc; -ets_ops_table_ptr = 0x3fcefffc; - - -/*************************************** - Group miniz - ***************************************/ - -/* Functions */ -mz_adler32 = 0x4000078c; -mz_crc32 = 0x40000798; -mz_free = 0x400007a4; -tdefl_compress = 0x400007b0; -tdefl_compress_buffer = 0x400007bc; -tdefl_compress_mem_to_heap = 0x400007c8; -tdefl_compress_mem_to_mem = 0x400007d4; -tdefl_compress_mem_to_output = 0x400007e0; -tdefl_get_adler32 = 0x400007ec; -tdefl_get_prev_return_status = 0x400007f8; -tdefl_init = 0x40000804; -tdefl_write_image_to_png_file_in_memory = 0x40000810; -tdefl_write_image_to_png_file_in_memory_ex = 0x4000081c; -tinfl_decompress = 0x40000828; -tinfl_decompress_mem_to_callback = 0x40000834; -tinfl_decompress_mem_to_heap = 0x40000840; -tinfl_decompress_mem_to_mem = 0x4000084c; - - -/*************************************** - Group tjpgd - ***************************************/ - -/* Functions */ -jd_prepare = 0x40000858; -jd_decomp = 0x40000864; - - -/*************************************** - Group esp-dsp - ***************************************/ - -/* Data (.data, .bss, .rodata) */ -dsps_fft2r_w_table_fc32_1024 = 0x3fcefff8; - - -/*************************************** - Group opi_flash - ***************************************/ - -/* Functions */ -PROVIDE( opi_flash_set_lock_func = 0x40000870 ); -PROVIDE( esp_rom_spi_cmd_config = 0x4000087c ); -PROVIDE( esp_rom_spi_cmd_start = 0x40000888 ); -PROVIDE( esp_rom_opiflash_pin_config = 0x40000894 ); -PROVIDE( esp_rom_spi_set_op_mode = 0x400008a0 ); -PROVIDE( esp_rom_opiflash_mode_reset = 0x400008ac ); -PROVIDE( esp_rom_opiflash_exec_cmd = 0x400008b8 ); -PROVIDE( esp_rom_opiflash_soft_reset = 0x400008c4 ); -PROVIDE( esp_rom_opiflash_read_id = 0x400008d0 ); -PROVIDE( esp_rom_opiflash_rdsr = 0x400008dc ); -PROVIDE( esp_rom_opiflash_wait_idle = 0x400008e8 ); -PROVIDE( esp_rom_opiflash_wren = 0x400008f4 ); -PROVIDE( esp_rom_opiflash_erase_sector = 0x40000900 ); -PROVIDE( esp_rom_opiflash_erase_block_64k = 0x4000090c ); -PROVIDE( esp_rom_opiflash_erase_area = 0x40000918 ); -PROVIDE( esp_rom_opiflash_read = 0x40000924 ); -PROVIDE( esp_rom_opiflash_write = 0x40000930 ); -PROVIDE( esp_rom_spi_set_dtr_swap_mode = 0x4000093c ); -PROVIDE( esp_rom_opiflash_exit_continuous_read_mode = 0x40000948 ); -PROVIDE( esp_rom_opiflash_legacy_driver_init = 0x40000954 ); -/* Data (.data, .bss, .rodata) */ -PROVIDE( rom_opiflash_cmd_def = 0x3fcefff4 ); -PROVIDE( rom_spi_usr_cmd_legacy_funcs = 0x3fcefff0 ); - - -/*************************************** - Group spiflash_legacy - ***************************************/ - -/* Functions */ -PROVIDE( esp_rom_spiflash_wait_idle = 0x40000960 ); -PROVIDE( esp_rom_spiflash_write_encrypted = 0x4000096c ); -PROVIDE( esp_rom_spiflash_write_encrypted_dest = 0x40000978 ); -PROVIDE( esp_rom_spiflash_write_encrypted_enable = 0x40000984 ); -PROVIDE( esp_rom_spiflash_write_encrypted_disable = 0x40000990 ); -PROVIDE( esp_rom_spiflash_erase_chip = 0x4000099c ); -PROVIDE( _esp_rom_spiflash_erase_sector = 0x400009a8 ); -PROVIDE( _esp_rom_spiflash_erase_block = 0x400009b4 ); -PROVIDE( _esp_rom_spiflash_write = 0x400009c0 ); -PROVIDE( _esp_rom_spiflash_read = 0x400009cc ); -PROVIDE( _esp_rom_spiflash_unlock = 0x400009d8 ); -PROVIDE( _SPIEraseArea = 0x400009e4 ); -PROVIDE( _SPI_write_enable = 0x400009f0 ); -PROVIDE( esp_rom_spiflash_erase_sector = 0x400009fc ); -PROVIDE( esp_rom_spiflash_erase_block = 0x40000a08 ); -PROVIDE( esp_rom_spiflash_write = 0x40000a14 ); -PROVIDE( esp_rom_spiflash_read = 0x40000a20 ); -PROVIDE( esp_rom_spiflash_unlock = 0x40000a2c ); -PROVIDE( SPIEraseArea = 0x40000a38 ); -PROVIDE( SPI_write_enable = 0x40000a44 ); -PROVIDE( esp_rom_spiflash_config_param = 0x40000a50 ); -PROVIDE( esp_rom_spiflash_read_user_cmd = 0x40000a5c ); -PROVIDE( esp_rom_spiflash_select_qio_pins = 0x40000a68 ); -PROVIDE( esp_rom_spi_flash_auto_sus_res = 0x40000a74 ); -PROVIDE( esp_rom_spi_flash_send_resume = 0x40000a80 ); -PROVIDE( esp_rom_spi_flash_update_id = 0x40000a8c ); -PROVIDE( esp_rom_spiflash_config_clk = 0x40000a98 ); -PROVIDE( esp_rom_spiflash_config_readmode = 0x40000aa4 ); -PROVIDE( esp_rom_spiflash_read_status = 0x40000ab0 ); -PROVIDE( esp_rom_spiflash_read_statushigh = 0x40000abc ); -PROVIDE( esp_rom_spiflash_write_status = 0x40000ac8 ); -PROVIDE( esp_rom_opiflash_cache_mode_config = 0x40000ad4 ); -PROVIDE( esp_rom_spiflash_auto_wait_idle = 0x40000ae0 ); -PROVIDE( spi_flash_attach = 0x40000aec ); -PROVIDE( spi_flash_get_chip_size = 0x40000af8 ); -PROVIDE( spi_flash_guard_set = 0x40000b04 ); -PROVIDE( spi_flash_guard_get = 0x40000b10 ); -PROVIDE( spi_flash_write_config_set = 0x40000b1c ); -PROVIDE( spi_flash_write_config_get = 0x40000b28 ); -PROVIDE( spi_flash_safe_write_address_func_set = 0x40000b34 ); -PROVIDE( spi_flash_unlock = 0x40000b40 ); -PROVIDE( spi_flash_erase_range = 0x40000b4c ); -PROVIDE( spi_flash_erase_sector = 0x40000b58 ); -PROVIDE( spi_flash_write = 0x40000b64 ); -PROVIDE( spi_flash_read = 0x40000b70 ); -PROVIDE( spi_flash_write_encrypted = 0x40000b7c ); -PROVIDE( spi_flash_read_encrypted = 0x40000b88 ); -PROVIDE( spi_flash_mmap_os_func_set = 0x40000b94 ); -PROVIDE( spi_flash_mmap_page_num_init = 0x40000ba0 ); -PROVIDE( spi_flash_mmap = 0x40000bac ); -PROVIDE( spi_flash_mmap_pages = 0x40000bb8 ); -PROVIDE( spi_flash_munmap = 0x40000bc4 ); -PROVIDE( spi_flash_mmap_dump = 0x40000bd0 ); -PROVIDE( spi_flash_check_and_flush_cache = 0x40000bdc ); -PROVIDE( spi_flash_mmap_get_free_pages = 0x40000be8 ); -PROVIDE( spi_flash_cache2phys = 0x40000bf4 ); -PROVIDE( spi_flash_phys2cache = 0x40000c00 ); -PROVIDE( spi_flash_disable_cache = 0x40000c0c ); -PROVIDE( spi_flash_restore_cache = 0x40000c18 ); -PROVIDE( spi_flash_cache_enabled = 0x40000c24 ); -PROVIDE( spi_flash_enable_cache = 0x40000c30 ); -PROVIDE( spi_cache_mode_switch = 0x40000c3c ); -PROVIDE( spi_common_set_dummy_output = 0x40000c48 ); -PROVIDE( spi_common_set_flash_cs_timing = 0x40000c54 ); -PROVIDE( esp_rom_spi_set_address_bit_len = 0x40000c60 ); -PROVIDE( esp_enable_cache_flash_wrap = 0x40000c6c ); -PROVIDE( SPILock = 0x40000c78 ); -PROVIDE( SPIMasterReadModeCnfig = 0x40000c84 ); -PROVIDE( SPI_Common_Command = 0x40000c90 ); -PROVIDE( SPI_WakeUp = 0x40000c9c ); -PROVIDE( SPI_block_erase = 0x40000ca8 ); -PROVIDE( SPI_chip_erase = 0x40000cb4 ); -PROVIDE( SPI_init = 0x40000cc0 ); -PROVIDE( SPI_page_program = 0x40000ccc ); -PROVIDE( SPI_read_data = 0x40000cd8 ); -PROVIDE( SPI_sector_erase = 0x40000ce4 ); -PROVIDE( SelectSpiFunction = 0x40000cf0 ); -PROVIDE( SetSpiDrvs = 0x40000cfc ); -PROVIDE( Wait_SPI_Idle = 0x40000d08 ); -PROVIDE( spi_dummy_len_fix = 0x40000d14 ); -PROVIDE( Disable_QMode = 0x40000d20 ); -PROVIDE( Enable_QMode = 0x40000d2c ); -/* Data (.data, .bss, .rodata) */ -PROVIDE( rom_spiflash_legacy_funcs = 0x3fceffe8 ); -PROVIDE( rom_spiflash_legacy_data = 0x3fceffe4 ); -PROVIDE( g_flash_guard_ops = 0x3fceffec ); - - -/*************************************** - Group hal_soc - ***************************************/ - -/* Functions */ -PROVIDE( spi_flash_hal_poll_cmd_done = 0x40000d38 ); -PROVIDE( spi_flash_hal_device_config = 0x40000d44 ); -PROVIDE( spi_flash_hal_configure_host_io_mode = 0x40000d50 ); -PROVIDE( spi_flash_hal_common_command = 0x40000d5c ); -PROVIDE( spi_flash_hal_read = 0x40000d68 ); -PROVIDE( spi_flash_hal_erase_chip = 0x40000d74 ); -PROVIDE( spi_flash_hal_erase_sector = 0x40000d80 ); -PROVIDE( spi_flash_hal_erase_block = 0x40000d8c ); -PROVIDE( spi_flash_hal_program_page = 0x40000d98 ); -PROVIDE( spi_flash_hal_set_write_protect = 0x40000da4 ); -PROVIDE( spi_flash_hal_host_idle = 0x40000db0 ); -PROVIDE( wdt_hal_init = 0x40000dbc ); -PROVIDE( wdt_hal_deinit = 0x40000dc8 ); -PROVIDE( wdt_hal_config_stage = 0x40000dd4 ); -PROVIDE( wdt_hal_write_protect_disable = 0x40000de0 ); -PROVIDE( wdt_hal_write_protect_enable = 0x40000dec ); -PROVIDE( wdt_hal_enable = 0x40000df8 ); -PROVIDE( wdt_hal_disable = 0x40000e04 ); -PROVIDE( wdt_hal_handle_intr = 0x40000e10 ); -PROVIDE( wdt_hal_feed = 0x40000e1c ); -PROVIDE( wdt_hal_set_flashboot_en = 0x40000e28 ); -PROVIDE( wdt_hal_is_enabled = 0x40000e34 ); -PROVIDE( systimer_hal_get_counter_value = 0x40000e40 ); -PROVIDE( systimer_hal_get_time = 0x40000e4c ); -PROVIDE( systimer_hal_set_alarm_target = 0x40000e58 ); -PROVIDE( systimer_hal_set_alarm_period = 0x40000e64 ); -PROVIDE( systimer_hal_get_alarm_value = 0x40000e70 ); -PROVIDE( systimer_hal_enable_alarm_int = 0x40000e7c ); -PROVIDE( systimer_hal_on_apb_freq_update = 0x40000e88 ); -PROVIDE( systimer_hal_counter_value_advance = 0x40000e94 ); -PROVIDE( systimer_hal_enable_counter = 0x40000ea0 ); -PROVIDE( systimer_hal_init = 0x40000eac ); -PROVIDE( systimer_hal_select_alarm_mode = 0x40000eb8 ); -PROVIDE( systimer_hal_connect_alarm_counter = 0x40000ec4 ); - - -/*************************************** - Group spi_flash_chips - ***************************************/ - -/* Functions */ -PROVIDE( spi_flash_chip_generic_probe = 0x40000ed0 ); -PROVIDE( spi_flash_chip_generic_detect_size = 0x40000edc ); -PROVIDE( spi_flash_chip_generic_write = 0x40000ee8 ); -PROVIDE( spi_flash_chip_generic_write_encrypted = 0x40000ef4 ); -PROVIDE( spi_flash_chip_generic_set_write_protect = 0x40000f00 ); -PROVIDE( spi_flash_common_write_status_16b_wrsr = 0x40000f0c ); -PROVIDE( spi_flash_chip_generic_reset = 0x40000f18 ); -PROVIDE( spi_flash_chip_generic_erase_chip = 0x40000f24 ); -PROVIDE( spi_flash_chip_generic_erase_sector = 0x40000f30 ); -PROVIDE( spi_flash_chip_generic_erase_block = 0x40000f3c ); -PROVIDE( spi_flash_chip_generic_page_program = 0x40000f48 ); -PROVIDE( spi_flash_chip_generic_get_write_protect = 0x40000f54 ); -PROVIDE( spi_flash_common_read_status_16b_rdsr_rdsr2 = 0x40000f60 ); -PROVIDE( spi_flash_chip_generic_read_reg = 0x40000f6c ); -PROVIDE( spi_flash_chip_generic_yield = 0x40000f78 ); -PROVIDE( spi_flash_generic_wait_host_idle = 0x40000f84 ); -PROVIDE( spi_flash_chip_generic_wait_idle = 0x40000f90 ); -PROVIDE( spi_flash_chip_generic_config_host_io_mode = 0x40000f9c ); -PROVIDE( spi_flash_chip_generic_read = 0x40000fa8 ); -PROVIDE( spi_flash_common_read_status_8b_rdsr2 = 0x40000fb4 ); -PROVIDE( spi_flash_chip_generic_get_io_mode = 0x40000fc0 ); -PROVIDE( spi_flash_common_read_status_8b_rdsr = 0x40000fcc ); -PROVIDE( spi_flash_common_write_status_8b_wrsr = 0x40000fd8 ); -PROVIDE( spi_flash_common_write_status_8b_wrsr2 = 0x40000fe4 ); -PROVIDE( spi_flash_common_set_io_mode = 0x40000ff0 ); -PROVIDE( spi_flash_chip_generic_set_io_mode = 0x40000ffc ); -PROVIDE( spi_flash_chip_gd_get_io_mode = 0x40001008 ); -PROVIDE( spi_flash_chip_gd_probe = 0x40001014 ); -PROVIDE( spi_flash_chip_gd_set_io_mode = 0x40001020 ); -/* Data (.data, .bss, .rodata) */ -PROVIDE( spi_flash_chip_generic_config_data = 0x3fceffe0 ); - - -/*************************************** - Group memspi_host - ***************************************/ - -/* Functions */ -PROVIDE( memspi_host_read_id_hs = 0x4000102c ); -PROVIDE( memspi_host_read_status_hs = 0x40001038 ); -PROVIDE( memspi_host_flush_cache = 0x40001044 ); -PROVIDE( memspi_host_erase_chip = 0x40001050 ); -PROVIDE( memspi_host_erase_sector = 0x4000105c ); -PROVIDE( memspi_host_erase_block = 0x40001068 ); -PROVIDE( memspi_host_program_page = 0x40001074 ); -PROVIDE( memspi_host_read = 0x40001080 ); -PROVIDE( memspi_host_set_write_protect = 0x4000108c ); -PROVIDE( memspi_host_set_max_read_len = 0x40001098 ); -PROVIDE( memspi_host_read_data_slicer = 0x400010a4 ); -PROVIDE( memspi_host_write_data_slicer = 0x400010b0 ); - - -/*************************************** - Group esp_flash - ***************************************/ - -/* Functions */ -PROVIDE( esp_flash_chip_driver_initialized = 0x400010bc ); -PROVIDE( esp_flash_read_id = 0x400010c8 ); -PROVIDE( esp_flash_get_size = 0x400010d4 ); -PROVIDE( esp_flash_erase_chip = 0x400010e0 ); -PROVIDE( esp_flash_erase_region = 0x400010ec ); -PROVIDE( esp_flash_get_chip_write_protect = 0x400010f8 ); -PROVIDE( esp_flash_set_chip_write_protect = 0x40001104 ); -PROVIDE( esp_flash_get_protectable_regions = 0x40001110 ); -PROVIDE( esp_flash_get_protected_region = 0x4000111c ); -PROVIDE( esp_flash_set_protected_region = 0x40001128 ); -PROVIDE( esp_flash_read = 0x40001134 ); -PROVIDE( esp_flash_write = 0x40001140 ); -PROVIDE( esp_flash_write_encrypted = 0x4000114c ); -PROVIDE( esp_flash_read_encrypted = 0x40001158 ); -PROVIDE( esp_flash_get_io_mode = 0x40001164 ); -PROVIDE( esp_flash_set_io_mode = 0x40001170 ); -PROVIDE( spi_flash_boot_attach = 0x4000117c ); -PROVIDE( spi_flash_dump_counters = 0x40001188 ); -PROVIDE( spi_flash_get_counters = 0x40001194 ); -PROVIDE( spi_flash_op_counters_config = 0x400011a0 ); -PROVIDE( spi_flash_reset_counters = 0x400011ac ); -PROVIDE( esp_flash_read_chip_id = 0x400011b8 ); -PROVIDE( detect_spi_flash_chip = 0x400011c4 ); -PROVIDE( esp_rom_spiflash_write_disable = 0x400011d0 ); -/* Data (.data, .bss, .rodata) */ -PROVIDE( esp_flash_default_chip = 0x3fceffdc ); -PROVIDE( esp_flash_api_funcs = 0x3fceffd8 ); - - -/*************************************** - Group cache - ***************************************/ - -/* Functions */ -PROVIDE( Cache_Get_ICache_Line_Size = 0x400015fc ); -PROVIDE( Cache_Get_DCache_Line_Size = 0x40001608 ); -PROVIDE( Cache_Get_Mode = 0x40001614 ); -PROVIDE( Cache_Set_ICache_Mode = 0x40001620 ); -PROVIDE( Cache_Set_DCache_Mode = 0x4000162c ); -PROVIDE( Cache_Address_Through_ICache = 0x40001638 ); -PROVIDE( Cache_Address_Through_DCache = 0x40001644 ); -PROVIDE( Cache_Set_Default_Mode = 0x40001650 ); -PROVIDE( Cache_Enable_Defalut_ICache_Mode = 0x4000165c ); -PROVIDE( ROM_Boot_Cache_Init = 0x40001668 ); -PROVIDE( Cache_Invalidate_ICache_Items = 0x40001674 ); -PROVIDE( Cache_Invalidate_DCache_Items = 0x40001680 ); -PROVIDE( Cache_Clean_Items = 0x4000168c ); -PROVIDE( Cache_WriteBack_Items = 0x40001698 ); -PROVIDE( Cache_Op_Addr = 0x400016a4 ); -PROVIDE( Cache_Invalidate_Addr = 0x400016b0 ); -PROVIDE( Cache_Clean_Addr = 0x400016bc ); -PROVIDE( Cache_WriteBack_Addr = 0x400016c8 ); -PROVIDE( Cache_Invalidate_ICache_All = 0x400016d4 ); -PROVIDE( Cache_Invalidate_DCache_All = 0x400016e0 ); -PROVIDE( Cache_Clean_All = 0x400016ec ); -PROVIDE( Cache_WriteBack_All = 0x400016f8 ); -PROVIDE( Cache_Mask_All = 0x40001704 ); -PROVIDE( Cache_UnMask_Dram0 = 0x40001710 ); -PROVIDE( Cache_Suspend_ICache_Autoload = 0x4000171c ); -PROVIDE( Cache_Resume_ICache_Autoload = 0x40001728 ); -PROVIDE( Cache_Suspend_DCache_Autoload = 0x40001734 ); -PROVIDE( Cache_Resume_DCache_Autoload = 0x40001740 ); -PROVIDE( Cache_Start_ICache_Preload = 0x4000174c ); -PROVIDE( Cache_ICache_Preload_Done = 0x40001758 ); -PROVIDE( Cache_End_ICache_Preload = 0x40001764 ); -PROVIDE( Cache_Start_DCache_Preload = 0x40001770 ); -PROVIDE( Cache_DCache_Preload_Done = 0x4000177c ); -PROVIDE( Cache_End_DCache_Preload = 0x40001788 ); -PROVIDE( Cache_Config_ICache_Autoload = 0x40001794 ); -PROVIDE( Cache_Config_ICache_Region_Autoload = 0x400017a0 ); -PROVIDE( Cache_Enable_ICache_Autoload = 0x400017ac ); -PROVIDE( Cache_Disable_ICache_Autoload = 0x400017b8 ); -PROVIDE( Cache_Config_DCache_Autoload = 0x400017c4 ); -PROVIDE( Cache_Config_DCache_Region_Autoload = 0x400017d0 ); -PROVIDE( Cache_Enable_DCache_Autoload = 0x400017dc ); -PROVIDE( Cache_Disable_DCache_Autoload = 0x400017e8 ); -PROVIDE( Cache_Enable_ICache_PreLock = 0x400017f4 ); -PROVIDE( Cache_Disable_ICache_PreLock = 0x40001800 ); -PROVIDE( Cache_Lock_ICache_Items = 0x4000180c ); -PROVIDE( Cache_Unlock_ICache_Items = 0x40001818 ); -PROVIDE( Cache_Enable_DCache_PreLock = 0x40001824 ); -PROVIDE( Cache_Disable_DCache_PreLock = 0x40001830 ); -PROVIDE( Cache_Lock_DCache_Items = 0x4000183c ); -PROVIDE( Cache_Unlock_DCache_Items = 0x40001848 ); -PROVIDE( Cache_Lock_Addr = 0x40001854 ); -PROVIDE( Cache_Unlock_Addr = 0x40001860 ); -PROVIDE( Cache_Disable_ICache = 0x4000186c ); -PROVIDE( Cache_Enable_ICache = 0x40001878 ); -PROVIDE( Cache_Disable_DCache = 0x40001884 ); -PROVIDE( Cache_Enable_DCache = 0x40001890 ); -PROVIDE( Cache_Suspend_ICache = 0x4000189c ); -PROVIDE( Cache_Resume_ICache = 0x400018a8 ); -PROVIDE( Cache_Suspend_DCache = 0x400018b4 ); -PROVIDE( Cache_Resume_DCache = 0x400018c0 ); -PROVIDE( Cache_Occupy_Items = 0x400018cc ); -PROVIDE( Cache_Occupy_Addr = 0x400018d8 ); -PROVIDE( Cache_Freeze_ICache_Enable = 0x400018e4 ); -PROVIDE( Cache_Freeze_ICache_Disable = 0x400018f0 ); -PROVIDE( Cache_Freeze_DCache_Enable = 0x400018fc ); -PROVIDE( Cache_Freeze_DCache_Disable = 0x40001908 ); -PROVIDE( Cache_Set_IDROM_MMU_Size = 0x40001914 ); -PROVIDE( flash2spiram_instruction_offset = 0x40001920 ); -PROVIDE( flash2spiram_rodata_offset = 0x4000192c ); -PROVIDE( flash_instr_rodata_start_page = 0x40001938 ); -PROVIDE( flash_instr_rodata_end_page = 0x40001944 ); -PROVIDE( Cache_Set_IDROM_MMU_Info = 0x40001950 ); -PROVIDE( Cache_Get_IROM_MMU_End = 0x4000195c ); -PROVIDE( Cache_Get_DROM_MMU_End = 0x40001968 ); -PROVIDE( Cache_Owner_Init = 0x40001974 ); -PROVIDE( Cache_Occupy_ICache_MEMORY = 0x40001980 ); -PROVIDE( Cache_Occupy_DCache_MEMORY = 0x4000198c ); -PROVIDE( Cache_MMU_Init = 0x40001998 ); -PROVIDE( Cache_Ibus_MMU_Set = 0x400019a4 ); -PROVIDE( Cache_Dbus_MMU_Set = 0x400019b0 ); -PROVIDE( Cache_Count_Flash_Pages = 0x400019bc ); -PROVIDE( Cache_Flash_To_SPIRAM_Copy = 0x400019c8 ); -PROVIDE( Cache_Travel_Tag_Memory = 0x400019d4 ); -PROVIDE( Cache_Travel_Tag_Memory2 = 0x400019e0 ); -PROVIDE( Cache_Get_Virtual_Addr = 0x400019ec ); -PROVIDE( Cache_Get_Memory_BaseAddr = 0x400019f8 ); -PROVIDE( Cache_Get_Memory_Addr = 0x40001a04 ); -PROVIDE( Cache_Get_Memory_value = 0x40001a10 ); -PROVIDE( rom_config_instruction_cache_mode = 0x40001a1c ); -PROVIDE( rom_config_data_cache_mode = 0x40001a28 ); -/* Data (.data, .bss, .rodata) */ -PROVIDE( rom_cache_op_cb = 0x3fceffc8 ); -PROVIDE( rom_cache_internal_table_ptr = 0x3fceffc4 ); - - -/*************************************** - Group clock - ***************************************/ - -/* Functions */ -ets_get_apb_freq = 0x40001a34; -ets_get_cpu_frequency = 0x40001a40; -ets_update_cpu_frequency = 0x40001a4c; -ets_get_printf_channel = 0x40001a58; -ets_get_xtal_div = 0x40001a64; -ets_set_xtal_div = 0x40001a70; -ets_get_xtal_freq = 0x40001a7c; - - -/*************************************** - Group gpio - ***************************************/ - -/* Functions */ -gpio_input_get = 0x40001a88; -gpio_matrix_in = 0x40001a94; -gpio_matrix_out = 0x40001aa0; -gpio_output_disable = 0x40001aac; -gpio_output_enable = 0x40001ab8; -gpio_output_set = 0x40001ac4; -gpio_pad_hold = 0x40001ad0; -gpio_pad_input_disable = 0x40001adc; -gpio_pad_input_enable = 0x40001ae8; -gpio_pad_pulldown = 0x40001af4; -gpio_pad_pullup = 0x40001b00; -gpio_pad_select_gpio = 0x40001b0c; -gpio_pad_set_drv = 0x40001b18; -gpio_pad_unhold = 0x40001b24; -gpio_pin_wakeup_disable = 0x40001b30; -gpio_pin_wakeup_enable = 0x40001b3c; -gpio_bypass_matrix_in = 0x40001b48; - - -/*************************************** - Group interrupts - ***************************************/ - -/* Functions */ -intr_matrix_set = 0x40001b54; -ets_intr_lock = 0x40001b60; -ets_intr_unlock = 0x40001b6c; -ets_isr_attach = 0x40001b78; -ets_isr_mask = 0x40001b84; -ets_isr_unmask = 0x40001b90; - - -/*************************************** - Group xtos - ***************************************/ - -/* Functions */ -xthal_bcopy = 0x40001b9c; -xthal_memcpy = 0x40001ba8; -xthal_get_ccompare = 0x40001bb4; -xthal_set_ccompare = 0x40001bc0; -xthal_get_ccount = 0x40001bcc; -xthal_get_interrupt = 0x40001bd8; -xthal_set_intclear = 0x40001be4; -_xtos_ints_off = 0x40001bf0; -_xtos_ints_on = 0x40001bfc; -_xtos_restore_intlevel = 0x40001c08; -_xtos_set_exception_handler = 0x40001c14; -_xtos_set_interrupt_handler = 0x40001c20; -_xtos_set_interrupt_handler_arg = 0x40001c2c; -_xtos_set_intlevel = 0x40001c38; -_xtos_set_vpri = 0x40001c44; - - -/*************************************** - Group crypto - ***************************************/ - -/* Functions */ -md5_vector = 0x40001c50; -MD5Init = 0x40001c5c; -MD5Update = 0x40001c68; -MD5Final = 0x40001c74; -hmac_md5_vector = 0x40001c80; -hmac_md5 = 0x40001c8c; -crc32_le = 0x40001c98; -crc32_be = 0x40001ca4; -crc16_le = 0x40001cb0; -crc16_be = 0x40001cbc; -crc8_le = 0x40001cc8; -crc8_be = 0x40001cd4; -esp_crc8 = 0x40001ce0; -ets_sha_enable = 0x40001cec; -ets_sha_disable = 0x40001cf8; -ets_sha_get_state = 0x40001d04; -ets_sha_init = 0x40001d10; -ets_sha_process = 0x40001d1c; -ets_sha_starts = 0x40001d28; -ets_sha_update = 0x40001d34; -ets_sha_finish = 0x40001d40; -ets_sha_clone = 0x40001d4c; -ets_hmac_enable = 0x40001d58; -ets_hmac_disable = 0x40001d64; -ets_hmac_calculate_message = 0x40001d70; -ets_hmac_calculate_downstream = 0x40001d7c; -ets_hmac_invalidate_downstream = 0x40001d88; -ets_jtag_enable_temporarily = 0x40001d94; -ets_aes_enable = 0x40001da0; -ets_aes_disable = 0x40001dac; -ets_aes_setkey = 0x40001db8; -ets_aes_block = 0x40001dc4; -ets_bigint_enable = 0x40001dd0; -ets_bigint_disable = 0x40001ddc; -ets_bigint_multiply = 0x40001de8; -ets_bigint_modmult = 0x40001df4; -ets_bigint_modexp = 0x40001e00; -ets_bigint_wait_finish = 0x40001e0c; -ets_bigint_getz = 0x40001e18; -ets_ds_enable = 0x40001e24; -ets_ds_disable = 0x40001e30; -ets_ds_start_sign = 0x40001e3c; -ets_ds_is_busy = 0x40001e48; -ets_ds_finish_sign = 0x40001e54; -ets_ds_encrypt_params = 0x40001e60; -ets_aes_setkey_dec = 0x40001e6c; -ets_aes_setkey_enc = 0x40001e78; -ets_mgf1_sha256 = 0x40001e84; - - -/*************************************** - Group efuse - ***************************************/ - -/* Functions */ -ets_efuse_read = 0x40001e90; -ets_efuse_program = 0x40001e9c; -ets_efuse_clear_program_registers = 0x40001ea8; -ets_efuse_write_key = 0x40001eb4; -ets_efuse_get_read_register_address = 0x40001ec0; -ets_efuse_get_key_purpose = 0x40001ecc; -ets_efuse_key_block_unused = 0x40001ed8; -ets_efuse_find_unused_key_block = 0x40001ee4; -ets_efuse_rs_calculate = 0x40001ef0; -ets_efuse_count_unused_key_blocks = 0x40001efc; -ets_efuse_secure_boot_enabled = 0x40001f08; -ets_efuse_secure_boot_aggressive_revoke_enabled = 0x40001f14; -ets_efuse_cache_encryption_enabled = 0x40001f20; -ets_efuse_download_modes_disabled = 0x40001f2c; -ets_efuse_find_purpose = 0x40001f38; -ets_efuse_flash_opi_5pads_power_sel_vddspi = 0x40001f44; -ets_efuse_force_send_resume = 0x40001f50; -ets_efuse_get_flash_delay_us = 0x40001f5c; -ets_efuse_get_mac = 0x40001f68; -ets_efuse_get_spiconfig = 0x40001f74; -ets_efuse_usb_print_is_disabled = 0x40001f80; -ets_efuse_get_uart_print_channel = 0x40001f8c; -ets_efuse_get_uart_print_control = 0x40001f98; -ets_efuse_get_wp_pad = 0x40001fa4; -ets_efuse_legacy_spi_boot_mode_disabled = 0x40001fb0; -ets_efuse_security_download_modes_enabled = 0x40001fbc; -ets_efuse_set_timing = 0x40001fc8; -ets_efuse_jtag_disabled = 0x40001fd4; -ets_efuse_usb_download_mode_disabled = 0x40001fe0; -ets_efuse_usb_module_disabled = 0x40001fec; -ets_efuse_usb_device_disabled = 0x40001ff8; -ets_efuse_flash_octal_mode = 0x40002004; -ets_efuse_ecc_en = 0x40002010; -ets_efuse_ecc_flash_page_size = 0x4000201c; -ets_efuse_ecc_16to17_mode = 0x40002028; - - -/*************************************** - Group ecc - ***************************************/ - -/* Functions */ -ets_ecc_flash_enable = 0x40002034; -ets_ecc_flash_enable_all = 0x40002040; -ets_ecc_flash_disable = 0x4000204c; -ets_ecc_flash_disable_all = 0x40002058; -ets_ecc_get_flash_page_size = 0x40002064; -ets_ecc_set_flash_page_size = 0x40002070; -ets_ecc_set_flash_byte_mode = 0x4000207c; -ets_ecc_get_flash_byte_mode = 0x40002088; -ets_ecc_set_flash_range = 0x40002094; -ets_ecc_get_flash_range = 0x400020a0; -ets_ecc_sram_enable = 0x400020ac; -ets_ecc_sram_disable = 0x400020b8; -ets_ecc_sram_enable_all = 0x400020c4; -ets_ecc_sram_disable_all = 0x400020d0; -ets_ecc_get_sram_page_size = 0x400020dc; -ets_ecc_set_sram_page_size = 0x400020e8; -ets_ecc_get_sram_byte_mode = 0x400020f4; -ets_ecc_set_sram_byte_mode = 0x40002100; -ets_ecc_set_sram_range = 0x4000210c; -ets_ecc_get_sram_range = 0x40002118; -/* Data (.data, .bss, .rodata) */ -ets_ecc_table_ptr = 0x3fceffc0; - - -/*************************************** - Group secureboot - ***************************************/ - -/* Functions */ -ets_emsa_pss_verify = 0x40002124; -ets_rsa_pss_verify = 0x40002130; -ets_secure_boot_verify_bootloader_with_keys = 0x4000213c; -ets_secure_boot_verify_signature = 0x40002148; -ets_secure_boot_read_key_digests = 0x40002154; -ets_secure_boot_revoke_public_key_digest = 0x40002160; - - -/*************************************** - Group usb_uart - ***************************************/ - -/* Functions */ -PROVIDE( usb_uart_otg_rx_one_char = 0x400025a4 ); -PROVIDE( usb_uart_otg_rx_one_char_block = 0x400025b0 ); -PROVIDE( usb_uart_otg_tx_flush = 0x400025bc ); -PROVIDE( usb_uart_otg_tx_one_char = 0x400025c8 ); -PROVIDE( usb_uart_device_rx_one_char = 0x400025d4 ); -PROVIDE( usb_uart_device_rx_one_char_block = 0x400025e0 ); -PROVIDE( usb_uart_device_tx_flush = 0x400025ec ); -PROVIDE( usb_uart_device_tx_one_char = 0x400025f8 ); -PROVIDE( Uart_Init_USB = 0x40002604 ); -/* Data (.data, .bss, .rodata) */ -PROVIDE( uart_acm_dev = 0x3fceffbc ); -PROVIDE( g_uart_print = 0x3fceffb9 ); -PROVIDE( g_usb_print = 0x3fceffb8 ); - - -/*************************************** - Group usb_module - ***************************************/ - -/* Functions */ -cdc_acm_class_handle_req = 0x40002610; -cdc_acm_init = 0x4000261c; -cdc_acm_fifo_fill = 0x40002628; -cdc_acm_rx_fifo_cnt = 0x40002634; -cdc_acm_fifo_read = 0x40002640; -cdc_acm_irq_tx_enable = 0x4000264c; -cdc_acm_irq_tx_disable = 0x40002658; -cdc_acm_irq_state_enable = 0x40002664; -cdc_acm_irq_state_disable = 0x40002670; -cdc_acm_irq_tx_ready = 0x4000267c; -cdc_acm_irq_rx_enable = 0x40002688; -cdc_acm_irq_rx_disable = 0x40002694; -cdc_acm_irq_rx_ready = 0x400026a0; -cdc_acm_irq_is_pending = 0x400026ac; -cdc_acm_irq_callback_set = 0x400026b8; -cdc_acm_line_ctrl_set = 0x400026c4; -cdc_acm_line_ctrl_get = 0x400026d0; -cdc_acm_poll_out = 0x400026dc; -chip_usb_dw_did_persist = 0x400026e8; -chip_usb_dw_init = 0x400026f4; -chip_usb_detach = 0x40002700; -chip_usb_dw_prepare_persist = 0x4000270c; -chip_usb_get_persist_flags = 0x40002718; -chip_usb_set_persist_flags = 0x40002724; -cpio_start = 0x40002730; -cpio_feed = 0x4000273c; -cpio_done = 0x40002748; -cpio_destroy = 0x40002754; -dfu_flash_init = 0x40002760; -dfu_flash_erase = 0x4000276c; -dfu_flash_program = 0x40002778; -dfu_flash_read = 0x40002784; -dfu_flash_attach = 0x40002790; -dfu_cpio_callback = 0x4000279c; -dfu_updater_get_err = 0x400027a8; -dfu_updater_clear_err = 0x400027b4; -dfu_updater_enable = 0x400027c0; -dfu_updater_begin = 0x400027cc; -dfu_updater_feed = 0x400027d8; -dfu_updater_end = 0x400027e4; -dfu_updater_set_raw_addr = 0x400027f0; -dfu_updater_flash_read = 0x400027fc; -usb_dc_prepare_persist = 0x40002808; -usb_dw_isr_handler = 0x40002814; -usb_dc_attach = 0x40002820; -usb_dc_detach = 0x4000282c; -usb_dc_reset = 0x40002838; -usb_dc_set_address = 0x40002844; -usb_dc_ep_check_cap = 0x40002850; -usb_dc_ep_configure = 0x4000285c; -usb_dc_ep_set_stall = 0x40002868; -usb_dc_ep_clear_stall = 0x40002874; -usb_dc_ep_halt = 0x40002880; -usb_dc_ep_is_stalled = 0x4000288c; -usb_dc_ep_enable = 0x40002898; -usb_dc_ep_disable = 0x400028a4; -usb_dc_ep_flush = 0x400028b0; -usb_dc_ep_write_would_block = 0x400028bc; -usb_dc_ep_write = 0x400028c8; -usb_dc_ep_read_wait = 0x400028d4; -usb_dc_ep_read_continue = 0x400028e0; -usb_dc_ep_read = 0x400028ec; -usb_dc_ep_set_callback = 0x400028f8; -usb_dc_set_status_callback = 0x40002904; -usb_dc_ep_mps = 0x40002910; -usb_dc_check_poll_for_interrupts = 0x4000291c; -mac_addr_to_serial_str_desc = 0x40002928; -usb_set_current_descriptor = 0x40002934; -usb_get_descriptor = 0x40002940; -usb_dev_resume = 0x4000294c; -usb_dev_get_configuration = 0x40002958; -usb_set_config = 0x40002964; -usb_deconfig = 0x40002970; -usb_enable = 0x4000297c; -usb_disable = 0x40002988; -usb_write_would_block = 0x40002994; -usb_write = 0x400029a0; -usb_read = 0x400029ac; -usb_ep_set_stall = 0x400029b8; -usb_ep_clear_stall = 0x400029c4; -usb_ep_read_wait = 0x400029d0; -usb_ep_read_continue = 0x400029dc; -usb_transfer_ep_callback = 0x400029e8; -usb_transfer = 0x400029f4; -usb_cancel_transfer = 0x40002a00; -usb_transfer_sync = 0x40002a0c; -usb_dfu_set_detach_cb = 0x40002a18; -dfu_class_handle_req = 0x40002a24; -dfu_status_cb = 0x40002a30; -dfu_custom_handle_req = 0x40002a3c; -usb_dfu_init = 0x40002a48; -usb_dfu_force_detach = 0x40002a54; -usb_dev_deinit = 0x40002a60; -usb_dw_ctrl_deinit = 0x40002a6c; -/* Data (.data, .bss, .rodata) */ -s_usb_osglue = 0x3fceffac; - - -/*************************************** - Group bluetooth - ***************************************/ - -/* Functions */ -bt_rf_coex_get_dft_cfg = 0x40002a78; -bt_rf_coex_hooks_p_set = 0x40002a84; -btdm_con_maxevtime_cal_impl = 0x40002a90; -btdm_controller_get_compile_version_impl = 0x40002a9c; -btdm_controller_rom_data_init = 0x40002aa8; -btdm_dis_privacy_err_report_impl = 0x40002ab4; -btdm_disable_adv_delay_impl = 0x40002ac0; -btdm_enable_scan_continue_impl = 0x40002acc; -btdm_enable_scan_forever_impl = 0x40002ad8; -btdm_get_power_state_impl = 0x40002ae4; -btdm_get_prevent_sleep_flag_impl = 0x40002af0; -btdm_power_state_active_impl = 0x40002afc; -btdm_switch_phy_coded_impl = 0x40002b08; -hci_acl_data_handler = 0x40002b14; -hci_disconnect_cmd_handler = 0x40002b20; -hci_le_con_upd_cmd_handler = 0x40002b2c; -hci_le_ltk_req_neg_reply_cmd_handler = 0x40002b38; -hci_le_ltk_req_reply_cmd_handler = 0x40002b44; -hci_le_rd_chnl_map_cmd_handler = 0x40002b50; -hci_le_rd_phy_cmd_handler = 0x40002b5c; -hci_le_rd_rem_feats_cmd_handler = 0x40002b68; -hci_le_rem_con_param_req_neg_reply_cmd_handler = 0x40002b74; -hci_le_rem_con_param_req_reply_cmd_handler = 0x40002b80; -hci_le_set_data_len_cmd_handler = 0x40002b8c; -hci_le_set_phy_cmd_handler = 0x40002b98; -hci_le_start_enc_cmd_handler = 0x40002ba4; -hci_rd_auth_payl_to_cmd_handler = 0x40002bb0; -hci_rd_rem_ver_info_cmd_handler = 0x40002bbc; -hci_rd_rssi_cmd_handler = 0x40002bc8; -hci_rd_tx_pwr_lvl_cmd_handler = 0x40002bd4; -hci_vs_set_pref_slave_evt_dur_cmd_handler = 0x40002be0; -hci_vs_set_pref_slave_latency_cmd_handler = 0x40002bec; -hci_wr_auth_payl_to_cmd_handler = 0x40002bf8; -ll_channel_map_ind_handler = 0x40002c04; -ll_connection_param_req_handler = 0x40002c10; -ll_connection_param_rsp_handler = 0x40002c1c; -ll_connection_update_ind_handler = 0x40002c28; -ll_enc_req_handler = 0x40002c34; -ll_enc_rsp_handler = 0x40002c40; -ll_feature_req_handler = 0x40002c4c; -ll_feature_rsp_handler = 0x40002c58; -ll_length_req_handler = 0x40002c64; -ll_length_rsp_handler = 0x40002c70; -ll_min_used_channels_ind_handler = 0x40002c7c; -ll_pause_enc_req_handler = 0x40002c88; -ll_pause_enc_rsp_handler = 0x40002c94; -ll_phy_req_handler = 0x40002ca0; -ll_phy_rsp_handler = 0x40002cac; -ll_phy_update_ind_handler = 0x40002cb8; -ll_ping_req_handler = 0x40002cc4; -ll_ping_rsp_handler = 0x40002cd0; -ll_slave_feature_req_handler = 0x40002cdc; -ll_start_enc_req_handler = 0x40002ce8; -ll_start_enc_rsp_handler = 0x40002cf4; -ll_terminate_ind_handler = 0x40002d00; -ll_version_ind_handler = 0x40002d0c; -llc_auth_payl_nearly_to_handler = 0x40002d18; -llc_auth_payl_real_to_handler = 0x40002d24; -llc_encrypt_ind_handler = 0x40002d30; -llc_hci_command_handler_wrapper = 0x40002d3c; -llc_ll_connection_param_req_pdu_send = 0x40002d48; -llc_ll_connection_param_rsp_pdu_send = 0x40002d54; -llc_ll_connection_update_ind_pdu_send = 0x40002d60; -llc_ll_enc_req_pdu_send = 0x40002d6c; -llc_ll_enc_rsp_pdu_send = 0x40002d78; -llc_ll_feature_req_pdu_send = 0x40002d84; -llc_ll_feature_rsp_pdu_send = 0x40002d90; -llc_ll_length_req_pdu_send = 0x40002d9c; -llc_ll_length_rsp_pdu_send = 0x40002da8; -llc_ll_pause_enc_req_pdu_send = 0x40002db4; -llc_ll_pause_enc_rsp_pdu_send = 0x40002dc0; -llc_ll_phy_req_pdu_send = 0x40002dcc; -llc_ll_phy_rsp_pdu_send = 0x40002dd8; -llc_ll_ping_req_pdu_send = 0x40002de4; -llc_ll_ping_rsp_pdu_send = 0x40002df0; -llc_ll_start_enc_req_pdu_send = 0x40002dfc; -llc_ll_start_enc_rsp_pdu_send = 0x40002e08; -llc_ll_terminate_ind_pdu_send = 0x40002e14; -llc_ll_unknown_rsp_pdu_send = 0x40002e20; -llc_llcp_ch_map_update_ind_pdu_send = 0x40002e2c; -llc_llcp_phy_upd_ind_pdu_send = 0x40002e38; -llc_llcp_version_ind_pdu_send = 0x40002e44; -llc_op_ch_map_upd_ind_handler = 0x40002e50; -llc_op_con_upd_ind_handler = 0x40002e5c; -llc_op_disconnect_ind_handler = 0x40002e68; -llc_op_dl_upd_ind_handler = 0x40002e74; -llc_op_encrypt_ind_handler = 0x40002e80; -llc_op_feats_exch_ind_handler = 0x40002e8c; -llc_op_le_ping_ind_handler = 0x40002e98; -llc_op_phy_upd_ind_handler = 0x40002ea4; -llc_op_ver_exch_ind_handler = 0x40002eb0; -llc_stopped_ind_handler = 0x40002ebc; -lld_acl_rx_ind_handler = 0x40002ec8; -lld_acl_tx_cfm_handler = 0x40002ed4; -lld_adv_end_ind_handler = 0x40002ee0; -lld_adv_rep_ind_handler = 0x40002eec; -lld_ch_map_upd_cfm_handler = 0x40002ef8; -lld_con_estab_ind_handler = 0x40002f04; -lld_con_evt_sd_evt_time_set = 0x40002f10; -lld_con_offset_upd_ind_handler = 0x40002f1c; -lld_con_param_upd_cfm_handler = 0x40002f28; -lld_disc_ind_handler = 0x40002f34; -lld_init_end_ind_handler = 0x40002f40; -lld_llcp_rx_ind_handler_wrapper = 0x40002f4c; -lld_llcp_tx_cfm_handler = 0x40002f58; -lld_per_adv_end_ind_handler = 0x40002f64; -lld_per_adv_rep_ind_handler = 0x40002f70; -lld_per_adv_rx_end_ind_handler = 0x40002f7c; -lld_phy_coded_500k_get = 0x40002f88; -lld_phy_upd_cfm_handler = 0x40002f94; -lld_scan_end_ind_handler = 0x40002fa0; -lld_scan_req_ind_handler = 0x40002fac; -lld_sync_start_req_handler = 0x40002fb8; -lld_test_end_ind_handler = 0x40002fc4; -lld_update_rxbuf_handler = 0x40002fd0; -llm_ch_map_update_ind_handler = 0x40002fdc; -llm_hci_command_handler_wrapper = 0x40002fe8; -llm_scan_period_to_handler = 0x40002ff4; -r_Add2SelfBigHex256 = 0x40003000; -r_AddBigHex256 = 0x4000300c; -r_AddBigHexModP256 = 0x40003018; -r_AddP256 = 0x40003024; -r_AddPdiv2_256 = 0x40003030; -r_GF_Jacobian_Point_Addition256 = 0x4000303c; -r_GF_Jacobian_Point_Double256 = 0x40003048; -r_GF_Point_Jacobian_To_Affine256 = 0x40003054; -r_MultiplyBigHexByUint32_256 = 0x40003060; -r_MultiplyBigHexModP256 = 0x4000306c; -r_MultiplyByU16ModP256 = 0x40003078; -r_SubtractBigHex256 = 0x40003084; -r_SubtractBigHexMod256 = 0x40003090; -r_SubtractBigHexUint32_256 = 0x4000309c; -r_SubtractFromSelfBigHex256 = 0x400030a8; -r_SubtractFromSelfBigHexSign256 = 0x400030b4; -r_aes_alloc = 0x400030c0; -r_aes_ccm_continue = 0x400030cc; -r_aes_ccm_process_e = 0x400030d8; -r_aes_ccm_xor_128_lsb = 0x400030e4; -r_aes_ccm_xor_128_msb = 0x400030f0; -r_aes_cmac_continue = 0x400030fc; -r_aes_cmac_start = 0x40003108; -r_aes_k1_continue = 0x40003114; -r_aes_k2_continue = 0x40003120; -r_aes_k3_continue = 0x4000312c; -r_aes_k4_continue = 0x40003138; -r_aes_shift_left_128 = 0x40003144; -r_aes_start = 0x40003150; -r_aes_xor_128 = 0x4000315c; -r_assert_err = 0x40003168; -r_assert_param = 0x40003174; -r_assert_warn = 0x40003180; -r_bigHexInversion256 = 0x4000318c; -r_ble_sw_cca_check_isr = 0x40003198; -r_ble_util_buf_acl_tx_alloc = 0x400031a4; -r_ble_util_buf_acl_tx_elt_get = 0x400031b0; -r_ble_util_buf_acl_tx_free = 0x400031bc; -r_ble_util_buf_acl_tx_free_in_isr = 0x400031c8; -r_ble_util_buf_adv_tx_alloc = 0x400031d4; -r_ble_util_buf_adv_tx_free = 0x400031e0; -r_ble_util_buf_adv_tx_free_in_isr = 0x400031ec; -r_ble_util_buf_env_deinit = 0x400031f8; -r_ble_util_buf_env_init = 0x40003204; -r_ble_util_buf_get_rx_buf_nb = 0x40003210; -r_ble_util_buf_get_rx_buf_size = 0x4000321c; -r_ble_util_buf_llcp_tx_alloc = 0x40003228; -r_ble_util_buf_llcp_tx_free = 0x40003234; -r_ble_util_buf_rx_alloc = 0x40003240; -r_ble_util_buf_rx_alloc_in_isr = 0x4000324c; -r_ble_util_buf_rx_free = 0x40003258; -r_ble_util_buf_rx_free_in_isr = 0x40003264; -r_ble_util_buf_set_rx_buf_nb = 0x40003270; -r_ble_util_buf_set_rx_buf_size = 0x4000327c; -r_ble_util_data_rx_buf_reset = 0x40003288; -r_bt_bb_get_intr_mask = 0x40003294; -r_bt_bb_intr_clear = 0x400032a0; -r_bt_bb_intr_mask_set = 0x400032ac; -r_bt_bb_isr = 0x400032b8; -r_bt_rf_coex_cfg_set = 0x400032c4; -r_bt_rf_coex_conn_dynamic_pti_en_get = 0x400032d0; -r_bt_rf_coex_conn_phy_coded_data_time_limit_en_get = 0x400032dc; -r_bt_rf_coex_ext_adv_dynamic_pti_en_get = 0x400032e8; -r_bt_rf_coex_ext_scan_dynamic_pti_en_get = 0x400032f4; -r_bt_rf_coex_legacy_adv_dynamic_pti_en_get = 0x40003300; -r_bt_rf_coex_per_adv_dynamic_pti_en_get = 0x4000330c; -r_bt_rf_coex_pti_table_get = 0x40003318; -r_bt_rf_coex_st_param_get = 0x40003324; -r_bt_rf_coex_st_param_set = 0x40003330; -r_bt_rf_coex_sync_scan_dynamic_pti_en_get = 0x4000333c; -r_bt_rma_apply_rule_cs_fmt = 0x40003348; -r_bt_rma_apply_rule_cs_idx = 0x40003354; -r_bt_rma_configure = 0x40003360; -r_bt_rma_deregister_rule_cs_fmt = 0x4000336c; -r_bt_rma_deregister_rule_cs_idx = 0x40003378; -r_bt_rma_get_ant_by_act = 0x40003384; -r_bt_rma_init = 0x40003390; -r_bt_rma_register_rule_cs_fmt = 0x4000339c; -r_bt_rma_register_rule_cs_idx = 0x400033a8; -r_bt_rtp_apply_rule_cs_fmt = 0x400033b4; -r_bt_rtp_apply_rule_cs_idx = 0x400033c0; -r_bt_rtp_deregister_rule_cs_fmt = 0x400033cc; -r_bt_rtp_deregister_rule_cs_idx = 0x400033d8; -r_bt_rtp_get_txpwr_idx_by_act = 0x400033e4; -r_bt_rtp_init = 0x400033f0; -r_bt_rtp_register_rule_cs_fmt = 0x400033fc; -r_bt_rtp_register_rule_cs_idx = 0x40003408; -r_btdm_isr = 0x40003414; -r_btdm_task_post = 0x40003420; -r_btdm_task_post_from_isr = 0x4000342c; -r_btdm_task_recycle = 0x40003438; -r_cali_phase_match_p = 0x40003444; -r_cmp_abs_time = 0x40003450; -r_cmp_dest_id = 0x4000345c; -r_cmp_timer_id = 0x40003468; -r_co_bdaddr_compare = 0x40003474; -r_co_ble_pkt_dur_in_us = 0x40003480; -r_co_list_extract = 0x4000348c; -r_co_list_extract_after = 0x40003498; -r_co_list_extract_sublist = 0x400034a4; -r_co_list_find = 0x400034b0; -r_co_list_init = 0x400034bc; -r_co_list_insert_after = 0x400034c8; -r_co_list_insert_before = 0x400034d4; -r_co_list_merge = 0x400034e0; -r_co_list_pool_init = 0x400034ec; -r_co_list_pop_front = 0x400034f8; -r_co_list_push_back = 0x40003504; -r_co_list_push_back_sublist = 0x40003510; -r_co_list_push_front = 0x4000351c; -r_co_list_size = 0x40003528; -r_co_nb_good_le_channels = 0x40003534; -r_co_util_pack = 0x40003540; -r_co_util_read_array_size = 0x4000354c; -r_co_util_unpack = 0x40003558; -r_dbg_env_deinit = 0x40003564; -r_dbg_env_init = 0x40003570; -r_dbg_platform_reset_complete = 0x4000357c; -r_dl_upd_proc_start = 0x40003588; -r_dump_data = 0x40003594; -r_ecc_abort_key256_generation = 0x400035a0; -r_ecc_gen_new_public_key = 0x400035ac; -r_ecc_gen_new_secret_key = 0x400035b8; -r_ecc_generate_key256 = 0x400035c4; -r_ecc_get_debug_Keys = 0x400035d0; -r_ecc_init = 0x400035dc; -r_ecc_is_valid_point = 0x400035e8; -r_ecc_multiplication_event_handler = 0x400035f4; -r_ecc_point_multiplication_win_256 = 0x40003600; -r_emi_alloc_em_mapping_by_offset = 0x4000360c; -r_emi_base_reg_lut_show = 0x40003618; -r_emi_em_base_reg_show = 0x40003624; -r_emi_free_em_mapping_by_offset = 0x40003630; -r_emi_get_em_mapping_idx_by_offset = 0x4000363c; -r_emi_get_mem_addr_by_offset = 0x40003648; -r_emi_overwrite_em_mapping_by_offset = 0x40003654; -r_esp_vendor_hci_command_handler = 0x40003660; -r_get_stack_usage = 0x4000366c; -r_h4tl_acl_hdr_rx_evt_handler = 0x40003678; -r_h4tl_cmd_hdr_rx_evt_handler = 0x40003684; -r_h4tl_cmd_pld_rx_evt_handler = 0x40003690; -r_h4tl_eif_io_event_post = 0x4000369c; -r_h4tl_eif_register = 0x400036a8; -r_h4tl_init = 0x400036b4; -r_h4tl_out_of_sync = 0x400036c0; -r_h4tl_out_of_sync_check = 0x400036cc; -r_h4tl_read_hdr = 0x400036d8; -r_h4tl_read_next_out_of_sync = 0x400036e4; -r_h4tl_read_payl = 0x400036f0; -r_h4tl_read_start = 0x400036fc; -r_h4tl_rx_acl_hdr_extract = 0x40003708; -r_h4tl_rx_cmd_hdr_extract = 0x40003714; -r_h4tl_rx_done = 0x40003720; -r_h4tl_start = 0x4000372c; -r_h4tl_stop = 0x40003738; -r_h4tl_tx_done = 0x40003744; -r_h4tl_tx_evt_handler = 0x40003750; -r_h4tl_write = 0x4000375c; -r_hci_acl_tx_data_alloc = 0x40003768; -r_hci_acl_tx_data_received = 0x40003774; -r_hci_basic_cmd_send_2_controller = 0x40003780; -r_hci_ble_adv_report_filter_check = 0x4000378c; -r_hci_ble_adv_report_tx_check = 0x40003798; -r_hci_ble_conhdl_register = 0x400037a4; -r_hci_ble_conhdl_unregister = 0x400037b0; -r_hci_build_acl_data = 0x400037bc; -r_hci_build_cc_evt = 0x400037c8; -r_hci_build_cs_evt = 0x400037d4; -r_hci_build_evt = 0x400037e0; -r_hci_build_le_evt = 0x400037ec; -r_hci_cmd_get_max_param_size = 0x400037f8; -r_hci_cmd_received = 0x40003804; -r_hci_cmd_reject = 0x40003810; -r_hci_evt_mask_check = 0x4000381c; -r_hci_evt_mask_set = 0x40003828; -r_hci_fc_acl_buf_size_set = 0x40003834; -r_hci_fc_acl_en = 0x40003840; -r_hci_fc_acl_packet_sent = 0x4000384c; -r_hci_fc_check_host_available_nb_acl_packets = 0x40003858; -r_hci_fc_host_nb_acl_pkts_complete = 0x40003864; -r_hci_fc_init = 0x40003870; -r_hci_look_for_cmd_desc = 0x4000387c; -r_hci_look_for_evt_desc = 0x40003888; -r_hci_look_for_le_evt_desc = 0x40003894; -r_hci_look_for_le_evt_desc_esp = 0x400038a0; -r_hci_pack_bytes = 0x400038ac; -r_hci_register_vendor_desc_tab = 0x400038b8; -r_hci_send_2_controller = 0x400038c4; -r_hci_send_2_host = 0x400038d0; -r_hci_tl_c2h_data_flow_on = 0x400038dc; -r_hci_tl_cmd_hdr_rx_evt_handler = 0x400038e8; -r_hci_tl_cmd_pld_rx_evt_handler = 0x400038f4; -r_hci_tl_get_pkt = 0x40003900; -r_hci_tl_hci_pkt_handler = 0x4000390c; -r_hci_tl_hci_tx_done_evt_handler = 0x40003918; -r_hci_tl_inc_nb_h2c_cmd_pkts = 0x40003924; -r_hci_tl_save_pkt = 0x40003930; -r_hci_tl_send = 0x4000393c; -r_hci_tx_done = 0x40003948; -r_hci_tx_start = 0x40003954; -r_hci_tx_trigger = 0x40003960; -r_isValidSecretKey_256 = 0x4000396c; -r_ke_check_malloc = 0x40003978; -r_ke_event_callback_set = 0x40003984; -r_ke_event_clear = 0x40003990; -r_ke_event_flush = 0x4000399c; -r_ke_event_get = 0x400039a8; -r_ke_event_get_all = 0x400039b4; -r_ke_event_init = 0x400039c0; -r_ke_event_schedule = 0x400039cc; -r_ke_event_set = 0x400039d8; -r_ke_flush = 0x400039e4; -r_ke_free = 0x400039f0; -r_ke_handler_search = 0x400039fc; -r_ke_init = 0x40003a08; -r_ke_is_free = 0x40003a14; -r_ke_malloc = 0x40003a20; -r_ke_mem_init = 0x40003a2c; -r_ke_mem_is_empty = 0x40003a38; -r_ke_mem_is_in_heap = 0x40003a44; -r_ke_msg_alloc = 0x40003a50; -r_ke_msg_dest_id_get = 0x40003a5c; -r_ke_msg_discard = 0x40003a68; -r_ke_msg_forward = 0x40003a74; -r_ke_msg_forward_new_id = 0x40003a80; -r_ke_msg_free = 0x40003a8c; -r_ke_msg_in_queue = 0x40003a98; -r_ke_msg_save = 0x40003aa4; -r_ke_msg_send = 0x40003ab0; -r_ke_msg_send_basic = 0x40003abc; -r_ke_msg_src_id_get = 0x40003ac8; -r_ke_queue_extract = 0x40003ad4; -r_ke_queue_insert = 0x40003ae0; -r_ke_sleep_check = 0x40003aec; -r_ke_state_get = 0x40003af8; -r_ke_state_set = 0x40003b04; -r_ke_task_check = 0x40003b10; -r_ke_task_create = 0x40003b1c; -r_ke_task_delete = 0x40003b28; -r_ke_task_handler_get = 0x40003b34; -r_ke_task_init = 0x40003b40; -r_ke_task_msg_flush = 0x40003b4c; -r_ke_task_saved_update = 0x40003b58; -r_ke_task_schedule = 0x40003b64; -r_ke_time = 0x40003b70; -r_ke_time_cmp = 0x40003b7c; -r_ke_time_past = 0x40003b88; -r_ke_timer_active = 0x40003b94; -r_ke_timer_adjust_all = 0x40003ba0; -r_ke_timer_clear = 0x40003bac; -r_ke_timer_init = 0x40003bb8; -r_ke_timer_schedule = 0x40003bc4; -r_ke_timer_set = 0x40003bd0; -r_led_init = 0x40003bdc; -r_led_set_all = 0x40003be8; -r_llc_aes_res_cb = 0x40003bf4; -r_llc_ch_map_up_proc_err_cb = 0x40003c00; -r_llc_cleanup = 0x40003c0c; -r_llc_cmd_cmp_send = 0x40003c18; -r_llc_cmd_stat_send = 0x40003c24; -r_llc_con_move_cbk = 0x40003c30; -r_llc_con_plan_set_update = 0x40003c3c; -r_llc_con_upd_param_in_range = 0x40003c48; -r_llc_disconnect = 0x40003c54; -r_llc_disconnect_end = 0x40003c60; -r_llc_disconnect_proc_continue = 0x40003c6c; -r_llc_disconnect_proc_err_cb = 0x40003c78; -r_llc_dl_chg_check = 0x40003c84; -r_llc_dle_proc_err_cb = 0x40003c90; -r_llc_feats_exch_proc_err_cb = 0x40003c9c; -r_llc_hci_cmd_handler_tab_p_get = 0x40003ca8; -r_llc_hci_command_handler = 0x40003cb4; -r_llc_hci_con_param_req_evt_send = 0x40003cc0; -r_llc_hci_con_upd_info_send = 0x40003ccc; -r_llc_hci_disconnected_dis = 0x40003cd8; -r_llc_hci_dl_upd_info_send = 0x40003ce4; -r_llc_hci_enc_evt_send = 0x40003cf0; -r_llc_hci_feats_info_send = 0x40003cfc; -r_llc_hci_le_phy_upd_cmp_evt_send = 0x40003d08; -r_llc_hci_ltk_request_evt_send = 0x40003d14; -r_llc_hci_nb_cmp_pkts_evt_send = 0x40003d20; -r_llc_hci_version_info_send = 0x40003d2c; -r_llc_init_term_proc = 0x40003d38; -r_llc_iv_skd_rand_gen = 0x40003d44; -r_llc_le_ping_proc_continue = 0x40003d50; -r_llc_le_ping_proc_err_cb = 0x40003d5c; -r_llc_le_ping_restart = 0x40003d68; -r_llc_le_ping_set = 0x40003d74; -r_llc_ll_pause_enc_rsp_ack_handler = 0x40003d80; -r_llc_ll_reject_ind_ack_handler = 0x40003d8c; -r_llc_ll_reject_ind_pdu_send = 0x40003d98; -r_llc_ll_start_enc_rsp_ack_handler = 0x40003da4; -r_llc_ll_terminate_ind_ack = 0x40003db0; -r_llc_ll_unknown_ind_handler = 0x40003dbc; -r_llc_llcp_send = 0x40003dc8; -r_llc_llcp_state_set = 0x40003dd4; -r_llc_llcp_trans_timer_set = 0x40003de0; -r_llc_llcp_tx_check = 0x40003dec; -r_llc_loc_ch_map_proc_continue = 0x40003df8; -r_llc_loc_con_upd_proc_continue = 0x40003e04; -r_llc_loc_con_upd_proc_err_cb = 0x40003e10; -r_llc_loc_dl_upd_proc_continue = 0x40003e1c; -r_llc_loc_encrypt_proc_continue = 0x40003e28; -r_llc_loc_encrypt_proc_err_cb = 0x40003e34; -r_llc_loc_feats_exch_proc_continue = 0x40003e40; -r_llc_loc_phy_upd_proc_continue = 0x40003e4c; -r_llc_loc_phy_upd_proc_err_cb = 0x40003e58; -r_llc_msg_handler_tab_p_get = 0x40003e64; -r_llc_pref_param_compute = 0x40003e70; -r_llc_proc_collision_check = 0x40003e7c; -r_llc_proc_err_ind = 0x40003e88; -r_llc_proc_get = 0x40003e94; -r_llc_proc_id_get = 0x40003ea0; -r_llc_proc_reg = 0x40003eac; -r_llc_proc_state_get = 0x40003eb8; -r_llc_proc_state_set = 0x40003ec4; -r_llc_proc_timer_pause_set = 0x40003ed0; -r_llc_proc_timer_set = 0x40003edc; -r_llc_proc_unreg = 0x40003ee8; -r_llc_rem_ch_map_proc_continue = 0x40003ef4; -r_llc_rem_con_upd_proc_continue = 0x40003f00; -r_llc_rem_con_upd_proc_err_cb = 0x40003f0c; -r_llc_rem_dl_upd_proc = 0x40003f18; -r_llc_rem_encrypt_proc_continue = 0x40003f24; -r_llc_rem_encrypt_proc_err_cb = 0x40003f30; -r_llc_rem_phy_upd_proc_continue = 0x40003f3c; -r_llc_rem_phy_upd_proc_err_cb = 0x40003f48; -r_llc_role_get = 0x40003f54; -r_llc_sk_gen = 0x40003f60; -r_llc_start = 0x40003f6c; -r_llc_stop = 0x40003f78; -r_llc_ver_exch_loc_proc_continue = 0x40003f84; -r_llc_ver_proc_err_cb = 0x40003f90; -r_llcp_pdu_handler_tab_p_get = 0x40003f9c; -r_lld_aa_gen = 0x40003fa8; -r_lld_adv_adv_data_set = 0x40003fb4; -r_lld_adv_adv_data_update = 0x40003fc0; -r_lld_adv_aux_ch_idx_set = 0x40003fcc; -r_lld_adv_aux_evt_canceled_cbk = 0x40003fd8; -r_lld_adv_aux_evt_start_cbk = 0x40003fe4; -r_lld_adv_coex_check_ext_adv_synced = 0x40003ff0; -r_lld_adv_coex_env_reset = 0x40003ffc; -r_lld_adv_duration_update = 0x40004008; -r_lld_adv_dynamic_pti_process = 0x40004014; -r_lld_adv_end = 0x40004020; -r_lld_adv_evt_canceled_cbk = 0x4000402c; -r_lld_adv_evt_start_cbk = 0x40004038; -r_lld_adv_ext_chain_construct = 0x40004044; -r_lld_adv_ext_pkt_prepare = 0x40004050; -r_lld_adv_frm_cbk = 0x4000405c; -r_lld_adv_frm_isr = 0x40004068; -r_lld_adv_frm_skip_isr = 0x40004074; -r_lld_adv_init = 0x40004080; -r_lld_adv_pkt_rx = 0x4000408c; -r_lld_adv_pkt_rx_connect_ind = 0x40004098; -r_lld_adv_pkt_rx_send_scan_req_evt = 0x400040a4; -r_lld_adv_rand_addr_update = 0x400040b0; -r_lld_adv_restart = 0x400040bc; -r_lld_adv_scan_rsp_data_set = 0x400040c8; -r_lld_adv_scan_rsp_data_update = 0x400040d4; -r_lld_adv_set_tx_power = 0x400040e0; -r_lld_adv_start = 0x400040ec; -r_lld_adv_stop = 0x400040f8; -r_lld_adv_sync_info_set = 0x40004104; -r_lld_adv_sync_info_update = 0x40004110; -r_lld_calc_aux_rx = 0x4000411c; -r_lld_cca_alloc = 0x40004128; -r_lld_cca_data_reset = 0x40004134; -r_lld_cca_free = 0x40004140; -r_lld_ch_assess_data_get = 0x4000414c; -r_lld_ch_idx_get = 0x40004158; -r_lld_ch_map_set = 0x40004164; -r_lld_channel_assess = 0x40004170; -r_lld_con_activity_act_offset_compute = 0x4000417c; -r_lld_con_activity_offset_compute = 0x40004188; -r_lld_con_ch_map_update = 0x40004194; -r_lld_con_cleanup = 0x400041a0; -r_lld_con_current_tx_power_get = 0x400041ac; -r_lld_con_data_flow_set = 0x400041b8; -r_lld_con_data_len_update = 0x400041c4; -r_lld_con_data_tx = 0x400041d0; -r_lld_con_enc_key_load = 0x400041dc; -r_lld_con_event_counter_get = 0x400041e8; -r_lld_con_evt_canceled_cbk = 0x400041f4; -r_lld_con_evt_duration_min_get = 0x40004200; -r_lld_con_evt_max_eff_time_cal = 0x4000420c; -r_lld_con_evt_sd_evt_time_get = 0x40004218; -r_lld_con_evt_start_cbk = 0x40004224; -r_lld_con_evt_time_update = 0x40004230; -r_lld_con_free_all_tx_buf = 0x4000423c; -r_lld_con_frm_cbk = 0x40004248; -r_lld_con_frm_isr = 0x40004254; -r_lld_con_frm_skip_isr = 0x40004260; -r_lld_con_init = 0x4000426c; -r_lld_con_llcp_tx = 0x40004278; -r_lld_con_max_lat_calc = 0x40004284; -r_lld_con_offset_get = 0x40004290; -r_lld_con_param_update = 0x4000429c; -r_lld_con_phys_update = 0x400042a8; -r_lld_con_pref_slave_evt_dur_set = 0x400042b4; -r_lld_con_pref_slave_latency_set = 0x400042c0; -r_lld_con_rssi_get = 0x400042cc; -r_lld_con_rx = 0x400042d8; -r_lld_con_rx_channel_assess = 0x400042e4; -r_lld_con_rx_enc = 0x400042f0; -r_lld_con_rx_isr = 0x400042fc; -r_lld_con_rx_link_info_check = 0x40004308; -r_lld_con_rx_llcp_check = 0x40004314; -r_lld_con_rx_sync_time_update = 0x40004320; -r_lld_con_sched = 0x4000432c; -r_lld_con_set_tx_power = 0x40004338; -r_lld_con_start = 0x40004344; -r_lld_con_stop = 0x40004350; -r_lld_con_tx = 0x4000435c; -r_lld_con_tx_enc = 0x40004368; -r_lld_con_tx_isr = 0x40004374; -r_lld_con_tx_len_update = 0x40004380; -r_lld_con_tx_len_update_for_intv = 0x4000438c; -r_lld_con_tx_len_update_for_rate = 0x40004398; -r_lld_con_tx_prog = 0x400043a4; -r_lld_conn_dynamic_pti_process = 0x400043b0; -r_lld_continue_scan_rx_isr_end_process = 0x400043bc; -r_lld_ext_scan_dynamic_pti_process = 0x400043c8; -r_lld_hw_cca_end_isr = 0x400043d4; -r_lld_hw_cca_evt_handler = 0x400043e0; -r_lld_hw_cca_isr = 0x400043ec; -r_lld_init_cal_anchor_point = 0x400043f8; -r_lld_init_compute_winoffset = 0x40004404; -r_lld_init_connect_req_pack = 0x40004410; -r_lld_init_end = 0x4000441c; -r_lld_init_evt_canceled_cbk = 0x40004428; -r_lld_init_evt_start_cbk = 0x40004434; -r_lld_init_frm_cbk = 0x40004440; -r_lld_init_frm_eof_isr = 0x4000444c; -r_lld_init_frm_skip_isr = 0x40004458; -r_lld_init_init = 0x40004464; -r_lld_init_process_pkt_rx = 0x40004470; -r_lld_init_process_pkt_rx_adv_ext_ind = 0x4000447c; -r_lld_init_process_pkt_rx_adv_ind_or_direct_ind = 0x40004488; -r_lld_init_process_pkt_rx_aux_connect_rsp = 0x40004494; -r_lld_init_process_pkt_tx = 0x400044a0; -r_lld_init_process_pkt_tx_cal_con_timestamp = 0x400044ac; -r_lld_init_sched = 0x400044b8; -r_lld_init_set_tx_power = 0x400044c4; -r_lld_init_start = 0x400044d0; -r_lld_init_stop = 0x400044dc; -r_lld_instant_proc_end = 0x400044e8; -r_lld_llcp_rx_ind_handler = 0x400044f4; -r_lld_per_adv_ch_map_update = 0x40004500; -r_lld_per_adv_chain_construct = 0x4000450c; -r_lld_per_adv_cleanup = 0x40004518; -r_lld_per_adv_coex_env_reset = 0x40004524; -r_lld_per_adv_data_set = 0x40004530; -r_lld_per_adv_data_update = 0x4000453c; -r_lld_per_adv_dynamic_pti_process = 0x40004548; -r_lld_per_adv_evt_canceled_cbk = 0x40004554; -r_lld_per_adv_evt_start_cbk = 0x40004560; -r_lld_per_adv_ext_pkt_prepare = 0x4000456c; -r_lld_per_adv_frm_cbk = 0x40004578; -r_lld_per_adv_frm_isr = 0x40004584; -r_lld_per_adv_frm_skip_isr = 0x40004590; -r_lld_per_adv_init = 0x4000459c; -r_lld_per_adv_init_info_get = 0x400045a8; -r_lld_per_adv_list_add = 0x400045b4; -r_lld_per_adv_list_rem = 0x400045c0; -r_lld_per_adv_sched = 0x400045cc; -r_lld_per_adv_set_tx_power = 0x400045d8; -r_lld_per_adv_start = 0x400045e4; -r_lld_per_adv_stop = 0x400045f0; -r_lld_per_adv_sync_info_get = 0x400045fc; -r_lld_process_cca_data = 0x40004608; -r_lld_ral_search = 0x40004614; -r_lld_read_clock = 0x40004620; -r_lld_res_list_add = 0x4000462c; -r_lld_res_list_clear = 0x40004638; -r_lld_res_list_is_empty = 0x40004644; -r_lld_res_list_local_rpa_get = 0x40004650; -r_lld_res_list_peer_rpa_get = 0x4000465c; -r_lld_res_list_peer_update = 0x40004668; -r_lld_res_list_priv_mode_update = 0x40004674; -r_lld_res_list_rem = 0x40004680; -r_lld_reset_reg = 0x4000468c; -r_lld_rpa_renew = 0x40004698; -r_lld_rpa_renew_evt_canceled_cbk = 0x400046a4; -r_lld_rpa_renew_evt_start_cbk = 0x400046b0; -r_lld_rpa_renew_instant_cbk = 0x400046bc; -r_lld_rxdesc_check = 0x400046c8; -r_lld_rxdesc_free = 0x400046d4; -r_lld_scan_create_sync = 0x400046e0; -r_lld_scan_create_sync_cancel = 0x400046ec; -r_lld_scan_end = 0x400046f8; -r_lld_scan_evt_canceled_cbk = 0x40004704; -r_lld_scan_evt_start_cbk = 0x40004710; -r_lld_scan_frm_cbk = 0x4000471c; -r_lld_scan_frm_eof_isr = 0x40004728; -r_lld_scan_frm_rx_isr = 0x40004734; -r_lld_scan_frm_skip_isr = 0x40004740; -r_lld_scan_init = 0x4000474c; -r_lld_scan_params_update = 0x40004758; -r_lld_scan_process_pkt_rx = 0x40004764; -r_lld_scan_process_pkt_rx_adv_rep = 0x40004770; -r_lld_scan_process_pkt_rx_aux_adv_ind = 0x4000477c; -r_lld_scan_process_pkt_rx_aux_chain_ind = 0x40004788; -r_lld_scan_process_pkt_rx_aux_scan_rsp = 0x40004794; -r_lld_scan_process_pkt_rx_ext_adv = 0x400047a0; -r_lld_scan_process_pkt_rx_ext_adv_ind = 0x400047ac; -r_lld_scan_process_pkt_rx_legacy_adv = 0x400047b8; -r_lld_scan_restart = 0x400047c4; -r_lld_scan_sched = 0x400047d0; -r_lld_scan_set_tx_power = 0x400047dc; -r_lld_scan_start = 0x400047e8; -r_lld_scan_stop = 0x400047f4; -r_lld_scan_sync_accept = 0x40004800; -r_lld_scan_sync_info_unpack = 0x4000480c; -r_lld_scan_trunc_ind = 0x40004818; -r_lld_sw_cca_evt_handler = 0x40004824; -r_lld_sw_cca_isr = 0x40004830; -r_lld_sync_ch_map_update = 0x4000483c; -r_lld_sync_cleanup = 0x40004848; -r_lld_sync_evt_canceled_cbk = 0x40004854; -r_lld_sync_evt_start_cbk = 0x40004860; -r_lld_sync_frm_cbk = 0x4000486c; -r_lld_sync_frm_eof_isr = 0x40004878; -r_lld_sync_frm_rx_isr = 0x40004884; -r_lld_sync_frm_skip_isr = 0x40004890; -r_lld_sync_init = 0x4000489c; -r_lld_sync_process_pkt_rx = 0x400048a8; -r_lld_sync_process_pkt_rx_aux_sync_ind = 0x400048b4; -r_lld_sync_process_pkt_rx_pkt_check = 0x400048c0; -r_lld_sync_scan_dynamic_pti_process = 0x400048cc; -r_lld_sync_sched = 0x400048d8; -r_lld_sync_start = 0x400048e4; -r_lld_sync_stop = 0x400048f0; -r_lld_sync_trunc_ind = 0x400048fc; -r_lld_test_cleanup = 0x40004908; -r_lld_test_evt_canceled_cbk = 0x40004914; -r_lld_test_evt_start_cbk = 0x40004920; -r_lld_test_freq2chnl = 0x4000492c; -r_lld_test_frm_cbk = 0x40004938; -r_lld_test_frm_isr = 0x40004944; -r_lld_test_init = 0x40004950; -r_lld_test_rx_isr = 0x4000495c; -r_lld_test_set_tx_power = 0x40004968; -r_lld_test_start = 0x40004974; -r_lld_test_stop = 0x40004980; -r_lld_update_rxbuf = 0x4000498c; -r_lld_update_rxbuf_isr = 0x40004998; -r_lld_white_list_add = 0x400049a4; -r_lld_white_list_rem = 0x400049b0; -r_llm_activity_free_get = 0x400049bc; -r_llm_activity_free_set = 0x400049c8; -r_llm_activity_syncing_get = 0x400049d4; -r_llm_adv_con_len_check = 0x400049e0; -r_llm_adv_hdl_to_id = 0x400049ec; -r_llm_adv_rep_flow_control_check = 0x400049f8; -r_llm_adv_rep_flow_control_update = 0x40004a04; -r_llm_adv_reports_list_check = 0x40004a10; -r_llm_adv_set_all_release = 0x40004a1c; -r_llm_adv_set_dft_params = 0x40004a28; -r_llm_adv_set_release = 0x40004a34; -r_llm_aes_res_cb = 0x40004a40; -r_llm_ble_update_adv_flow_control = 0x40004a4c; -r_llm_ch_map_update = 0x40004a58; -r_llm_cmd_cmp_send = 0x40004a64; -r_llm_cmd_stat_send = 0x40004a70; -r_llm_dev_list_empty_entry = 0x40004a7c; -r_llm_dev_list_search = 0x40004a88; -r_llm_env_adv_dup_filt_deinit = 0x40004a94; -r_llm_env_adv_dup_filt_init = 0x40004aa0; -r_llm_init_ble_adv_report_flow_contol = 0x40004aac; -r_llm_is_dev_connected = 0x40004ab8; -r_llm_is_dev_synced = 0x40004ac4; -r_llm_is_non_con_act_ongoing_check = 0x40004ad0; -r_llm_is_wl_accessible = 0x40004adc; -r_llm_le_evt_mask_check = 0x40004ae8; -r_llm_le_features_get = 0x40004af4; -r_llm_link_disc = 0x40004b00; -r_llm_master_ch_map_get = 0x40004b0c; -r_llm_msg_handler_tab_p_get = 0x40004b18; -r_llm_no_activity = 0x40004b24; -r_llm_per_adv_slot_dur = 0x40004b30; -r_llm_plan_elt_get = 0x40004b3c; -r_llm_rx_path_comp_get = 0x40004b48; -r_llm_scan_start = 0x40004b54; -r_llm_scan_sync_acad_attach = 0x40004b60; -r_llm_scan_sync_acad_detach = 0x40004b6c; -r_llm_send_adv_lost_event_to_host = 0x40004b78; -r_llm_tx_path_comp_get = 0x40004b84; -r_misc_deinit = 0x40004b90; -r_misc_free_em_buf_in_isr = 0x40004b9c; -r_misc_init = 0x40004ba8; -r_misc_msg_handler_tab_p_get = 0x40004bb4; -r_notEqual256 = 0x40004bc0; -r_phy_upd_proc_start = 0x40004bcc; -r_platform_reset = 0x40004bd8; -r_register_esp_vendor_cmd_handler = 0x40004be4; -r_rf_em_init = 0x40004bf0; -r_rf_force_agc_enable = 0x40004bfc; -r_rf_reg_rd = 0x40004c08; -r_rf_reg_wr = 0x40004c14; -r_rf_reset = 0x40004c20; -r_rf_rssi_convert = 0x40004c2c; -r_rf_rw_v9_le_disable = 0x40004c38; -r_rf_rw_v9_le_enable = 0x40004c44; -r_rf_sleep = 0x40004c50; -r_rf_txpwr_cs_get = 0x40004c5c; -r_rf_txpwr_dbm_get = 0x40004c68; -r_rf_util_cs_fmt_convert = 0x40004c74; -r_rw_crypto_aes_ccm = 0x40004c80; -r_rw_crypto_aes_encrypt = 0x40004c8c; -r_rw_crypto_aes_init = 0x40004c98; -r_rw_crypto_aes_k1 = 0x40004ca4; -r_rw_crypto_aes_k2 = 0x40004cb0; -r_rw_crypto_aes_k3 = 0x40004cbc; -r_rw_crypto_aes_k4 = 0x40004cc8; -r_rw_crypto_aes_rand = 0x40004cd4; -r_rw_crypto_aes_result_handler = 0x40004ce0; -r_rw_crypto_aes_s1 = 0x40004cec; -r_rw_cryto_aes_cmac = 0x40004cf8; -r_rw_v9_init_em_radio_table = 0x40004d04; -r_rwble_isr = 0x40004d10; -r_rwble_sleep_enter = 0x40004d1c; -r_rwble_sleep_wakeup_end = 0x40004d28; -r_rwbtdm_isr_wrapper = 0x40004d34; -r_rwip_active_check = 0x40004d40; -r_rwip_aes_encrypt = 0x40004d4c; -r_rwip_assert = 0x40004d58; -r_rwip_crypt_evt_handler = 0x40004d64; -r_rwip_crypt_isr_handler = 0x40004d70; -r_rwip_eif_get = 0x40004d7c; -r_rwip_half_slot_2_lpcycles = 0x40004d88; -r_rwip_hus_2_lpcycles = 0x40004d94; -r_rwip_isr = 0x40004da0; -r_rwip_lpcycles_2_hus = 0x40004dac; -r_rwip_prevent_sleep_clear = 0x40004db8; -r_rwip_prevent_sleep_set = 0x40004dc4; -r_rwip_schedule = 0x40004dd0; -r_rwip_sleep = 0x40004ddc; -r_rwip_sw_int_handler = 0x40004de8; -r_rwip_sw_int_req = 0x40004df4; -r_rwip_time_get = 0x40004e00; -r_rwip_timer_10ms_handler = 0x40004e0c; -r_rwip_timer_10ms_set = 0x40004e18; -r_rwip_timer_hs_handler = 0x40004e24; -r_rwip_timer_hs_set = 0x40004e30; -r_rwip_timer_hus_handler = 0x40004e3c; -r_rwip_timer_hus_set = 0x40004e48; -r_rwip_wakeup = 0x40004e54; -r_rwip_wakeup_end = 0x40004e60; -r_rwip_wlcoex_set = 0x40004e6c; -r_sch_alarm_clear = 0x40004e78; -r_sch_alarm_init = 0x40004e84; -r_sch_alarm_prog = 0x40004e90; -r_sch_alarm_set = 0x40004e9c; -r_sch_alarm_timer_isr = 0x40004ea8; -r_sch_arb_conflict_check = 0x40004eb4; -r_sch_arb_elt_cancel = 0x40004ec0; -r_sch_arb_event_start_isr = 0x40004ecc; -r_sch_arb_init = 0x40004ed8; -r_sch_arb_insert = 0x40004ee4; -r_sch_arb_prog_timer = 0x40004ef0; -r_sch_arb_remove = 0x40004efc; -r_sch_arb_sw_isr = 0x40004f08; -r_sch_plan_chk = 0x40004f14; -r_sch_plan_clock_wrap_offset_update = 0x40004f20; -r_sch_plan_init = 0x40004f2c; -r_sch_plan_interval_req = 0x40004f38; -r_sch_plan_offset_max_calc = 0x40004f44; -r_sch_plan_offset_req = 0x40004f50; -r_sch_plan_position_range_compute = 0x40004f5c; -r_sch_plan_rem = 0x40004f68; -r_sch_plan_req = 0x40004f74; -r_sch_plan_set = 0x40004f80; -r_sch_prog_end_isr = 0x40004f8c; -r_sch_prog_init = 0x40004f98; -r_sch_prog_push = 0x40004fa4; -r_sch_prog_rx_isr = 0x40004fb0; -r_sch_prog_skip_isr = 0x40004fbc; -r_sch_prog_tx_isr = 0x40004fc8; -r_sch_slice_bg_add = 0x40004fd4; -r_sch_slice_bg_remove = 0x40004fe0; -r_sch_slice_compute = 0x40004fec; -r_sch_slice_fg_add = 0x40004ff8; -r_sch_slice_fg_remove = 0x40005004; -r_sch_slice_init = 0x40005010; -r_sch_slice_per_add = 0x4000501c; -r_sch_slice_per_remove = 0x40005028; -r_sdk_config_get_bt_sleep_enable = 0x40005034; -r_sdk_config_get_hl_derived_opts = 0x40005040; -r_sdk_config_get_opts = 0x4000504c; -r_sdk_config_get_priv_opts = 0x40005058; -r_sdk_config_set_bt_sleep_enable = 0x40005064; -r_sdk_config_set_hl_derived_opts = 0x40005070; -r_sdk_config_set_opts = 0x4000507c; -r_specialModP256 = 0x40005088; -r_unloaded_area_init = 0x40005094; -r_vhci_flow_off = 0x400050a0; -r_vhci_flow_on = 0x400050ac; -r_vhci_notify_host_send_available = 0x400050b8; -r_vhci_send_to_host = 0x400050c4; -r_vnd_hci_command_handler = 0x400050d0; -r_vshci_init = 0x400050dc; -vnd_hci_command_handler_wrapper = 0x400050e8; -r_lld_legacy_adv_dynamic_pti_get = 0x400050f4; -r_lld_legacy_adv_dynamic_pti_process = 0x40005100; -r_lld_ext_adv_dynamic_pti_get = 0x4000510c; -r_lld_ext_adv_dynamic_aux_pti_process = 0x40005118; -r_lld_ext_adv_dynamic_pti_process = 0x40005124; -r_lld_adv_ext_pkt_prepare_set = 0x40005130; -r_lld_adv_ext_chain_none_construct = 0x4000513c; -r_lld_adv_ext_chain_connectable_construct = 0x40005148; -r_lld_adv_ext_chain_scannable_construct = 0x40005154; -r_lld_adv_pkt_rx_connect_post = 0x40005160; -r_lld_adv_start_init_evt_param = 0x4000516c; -r_lld_adv_start_set_cs = 0x40005178; -r_lld_adv_start_update_filter_policy = 0x40005184; -r_lld_adv_start_schedule_asap = 0x40005190; -r_lld_con_tx_prog_new_packet_coex = 0x4000519c; -r_lld_con_tx_prog_new_packet = 0x400051a8; -r_lld_per_adv_dynamic_pti_get = 0x400051b4; -r_lld_per_adv_evt_start_chm_upd = 0x400051c0; -r_lld_ext_scan_dynamic_pti_get = 0x400051cc; -r_lld_scan_try_sched = 0x400051d8; -r_lld_sync_insert = 0x400051e4; -r_sch_prog_ble_push = 0x400051f0; -r_sch_prog_bt_push = 0x400051fc; -r_lld_init_evt_end_type_set = 0x40005208; -r_lld_init_evt_end_type_get = 0x40005214; -r_lld_adv_direct_adv_use_rpa_addr_state_set = 0x40005220; -r_lld_adv_direct_adv_use_rpa_addr_state_get = 0x4000522c; -r_lld_init_evt_end_type_check_state_set = 0x40005238; -r_lld_init_evt_end_type_check_state_get = 0x40005244; -/* Data (.data, .bss, .rodata) */ -bt_rf_coex_cfg_p = 0x3fceffa8; -bt_rf_coex_hooks_p = 0x3fceffa4; -btdm_env_p = 0x3fceffa0; -g_rw_controller_task_handle = 0x3fceff9c; -g_rw_init_sem = 0x3fceff98; -g_rw_schd_queue = 0x3fceff94; -lld_init_env = 0x3fceff90; -lld_rpa_renew_env = 0x3fceff8c; -lld_scan_env = 0x3fceff88; -lld_scan_sync_env = 0x3fceff84; -lld_test_env = 0x3fceff80; -p_ble_util_buf_env = 0x3fceff7c; -p_lld_env = 0x3fceff78; -p_llm_env = 0x3fceff74; -r_h4tl_eif_p = 0x3fceff70; -r_hli_funcs_p = 0x3fceff6c; -r_ip_funcs_p = 0x3fceff68; -r_modules_funcs_p = 0x3fceff64; -r_osi_funcs_p = 0x3fceff60; -r_plf_funcs_p = 0x3fceff5c; -vhci_env_p = 0x3fceff58; -aa_gen = 0x3fceff54; -aes_env = 0x3fceff48; -bt_rf_coex_cfg_cb = 0x3fcefef8; -btdm_pwr_state = 0x3fcefef4; -btdm_slp_err = 0x3fcefef0; -ecc_env = 0x3fcefee8; -esp_handler = 0x3fcefee0; -esp_vendor_cmd = 0x3fcefed8; -g_adv_delay_dis = 0x3fcefed4; -g_conflict_elt = 0x3fcefed0; -g_eif_api = 0x3fcefec0; -g_event_empty = 0x3fcefeb4; -g_llc_state = 0x3fcefeaa; -g_llm_state = 0x3fcefea9; -g_max_evt_env = 0x3fcefea7; -g_misc_state = 0x3fcefea6; -g_rma_rule_db = 0x3fcefe8a; -g_rtp_rule_db = 0x3fcefe6e; -g_scan_forever = 0x3fcefe6d; -g_time_msb = 0x3fcefe6c; -h4tl_env = 0x3fcefe44; -hci_env = 0x3fcefe21; -hci_ext_host = 0x3fcefe20; -hci_fc_env = 0x3fcefe18; -hci_tl_env = 0x3fcefdec; -ke_env = 0x3fcefdbc; -ke_event_env = 0x3fcefd7c; -ke_task_env = 0x3fcefd00; -llc_env = 0x3fcefcd8; -lld_adv_env = 0x3fcefcb0; -lld_con_env = 0x3fcefc88; -lld_exp_sync_pos_tab = 0x3fcefc80; -lld_per_adv_env = 0x3fcefc58; -lld_sync_env = 0x3fcefc30; -llm_le_adv_flow_env = 0x3fcefc24; -rw_sleep_enable = 0x3fcefc20; -rwble_env = 0x3fcefc18; -rwip_env = 0x3fcefbfc; -rwip_param = 0x3fcefbf0; -rwip_prog_delay = 0x3fcefbec; -rwip_rf = 0x3fcefbb4; -sch_alarm_env = 0x3fcefbac; -sch_arb_env = 0x3fcefb98; -sch_plan_env = 0x3fcefb90; -sch_prog_env = 0x3fcefa8c; -sch_slice_env = 0x3fcefa2c; -sch_slice_params = 0x3fcefa24; -timer_env = 0x3fcefa1c; -unloaded_area = 0x3fcefa18; -vshci_state = 0x3fcefa14; -TASK_DESC_LLC = 0x3fcefa08; -TASK_DESC_LLM = 0x3fcef9fc; -TASK_DESC_VSHCI = 0x3fcef9f0; -co_default_bdaddr = 0x3fcef9e8; -dbg_assert_block = 0x3fcef9e4; -g_bt_plf_log_level = 0x3fcef9e0; -hci_cmd_desc_tab_vs_esp = 0x3fcef9bc; -hci_command_handler_tab_esp = 0x3fcef9a4; -privacy_en = 0x3fcef9a0; -sdk_cfg_priv_opts = 0x3fcef958; -BasePoint_x_256 = 0x3ff1ffdc; -BasePoint_y_256 = 0x3ff1ffbc; -DebugE256PublicKey_x = 0x3ff1ff9c; -DebugE256PublicKey_y = 0x3ff1ff7c; -DebugE256SecretKey = 0x3ff1ff5c; -ECC_4Win_Look_up_table = 0x3ff1f7a0; -LLM_AA_CT1 = 0x3ff1f79a; -LLM_AA_CT2 = 0x3ff1f798; -RF_TX_PW_CONV_TBL = 0x3ff1f790; -TASK_DESC_MISC = 0x3ff1f784; -adv_evt_prop2type = 0x3ff1f766; -adv_evt_type2prop = 0x3ff1f761; -aes_cmac_zero = 0x3ff1f751; -aes_k2_salt = 0x3ff1f741; -aes_k3_id64 = 0x3ff1f73c; -aes_k3_salt = 0x3ff1f72c; -aes_k4_id6 = 0x3ff1f728; -aes_k4_salt = 0x3ff1f718; -bigHexP256 = 0x3ff1f6ec; -byte_tx_time = 0x3ff1f6e2; -co_null_bdaddr = 0x3ff1f6dc; -co_phy_mask_to_rate = 0x3ff1f6d7; -co_phy_mask_to_value = 0x3ff1f6d2; -co_phy_to_rate = 0x3ff1f6ce; -co_phy_value_to_mask = 0x3ff1f6ca; -co_rate_to_byte_dur_us = 0x3ff1f6c5; -co_rate_to_phy = 0x3ff1f6c0; -co_rate_to_phy_mask = 0x3ff1f6bc; -co_sca2ppm = 0x3ff1f6ac; -coef_B = 0x3ff1f680; -connect_req_dur_tab = 0x3ff1f678; -ecc_Jacobian_InfinityPoint256 = 0x3ff1f5f4; -em_base_reg_lut = 0x3ff1f526; -fixed_tx_time = 0x3ff1f51e; -h4tl_msgtype2hdrlen = 0x3ff1f518; -hci_cmd_desc_root_tab = 0x3ff1f4e8; -hci_cmd_desc_tab_ctrl_bb = 0x3ff1f47c; -hci_cmd_desc_tab_info_par = 0x3ff1f44c; -hci_cmd_desc_tab_le = 0x3ff1f0b0; -hci_cmd_desc_tab_lk_ctrl = 0x3ff1f098; -hci_cmd_desc_tab_stat_par = 0x3ff1f08c; -hci_cmd_desc_tab_vs = 0x3ff1f050; -hci_evt_desc_tab = 0x3ff1f008; -hci_evt_le_desc_tab = 0x3ff1ef68; -hci_evt_le_desc_tab_esp = 0x3ff1ef60; -hci_rsvd_evt_msk = 0x3ff1ef57; -lld_aux_phy_to_rate = 0x3ff1ef54; -lld_init_max_aux_dur_tab = 0x3ff1ef4c; -lld_scan_map_legacy_pdu_to_evt_type = 0x3ff1ef44; -lld_scan_max_aux_dur_tab = 0x3ff1ef3c; -lld_sync_max_aux_dur_tab = 0x3ff1ef34; -llm_local_le_feats = 0x3ff1ef2c; -llm_local_le_states = 0x3ff1ef24; -llm_local_supp_cmds = 0x3ff1eefc; -maxSecretKey_256 = 0x3ff1eedc; -max_data_tx_time = 0x3ff1eed4; -one_bits = 0x3ff1eec3; -rwip_coex_cfg = 0x3ff1eebe; -rwip_priority = 0x3ff1eea8; -veryBigHexP256 = 0x3ff1ee5c; - - -/*************************************** - Group rom_pp - ***************************************/ - -/* Functions */ -esp_pp_rom_version_get = 0x40005250; -RC_GetBlockAckTime = 0x4000525c; -ebuf_list_remove = 0x40005268; -esf_buf_alloc = 0x40005274; -esf_buf_alloc_dynamic = 0x40005280; -esf_buf_recycle = 0x4000528c; -GetAccess = 0x40005298; -hal_mac_is_low_rate_enabled = 0x400052a4; -hal_mac_tx_get_blockack = 0x400052b0; -hal_mac_tx_set_ppdu = 0x400052bc; -ic_get_trc = 0x400052c8; -ic_mac_deinit = 0x400052d4; -ic_mac_init = 0x400052e0; -ic_interface_enabled = 0x400052ec; -is_lmac_idle = 0x400052f8; -lmacAdjustTimestamp = 0x40005304; -lmacDiscardAgedMSDU = 0x40005310; -lmacDiscardMSDU = 0x4000531c; -lmacEndFrameExchangeSequence = 0x40005328; -lmacIsIdle = 0x40005334; -lmacIsLongFrame = 0x40005340; -lmacMSDUAged = 0x4000534c; -lmacPostTxComplete = 0x40005358; -lmacProcessAllTxTimeout = 0x40005364; -lmacProcessCollisions = 0x40005370; -lmacProcessRxSucData = 0x4000537c; -lmacReachLongLimit = 0x40005388; -lmacReachShortLimit = 0x40005394; -lmacRecycleMPDU = 0x400053a0; -lmacRxDone = 0x400053ac; -lmacSetTxFrame = 0x400053b8; -lmacTxDone = 0x400053c4; -lmacTxFrame = 0x400053d0; -mac_tx_set_duration = 0x400053dc; -mac_tx_set_htsig = 0x400053e8; -mac_tx_set_plcp0 = 0x400053f4; -mac_tx_set_plcp1 = 0x40005400; -mac_tx_set_plcp2 = 0x4000540c; -pm_check_state = 0x40005418; -pm_disable_dream_timer = 0x40005424; -pm_disable_sleep_delay_timer = 0x40005430; -pm_dream = 0x4000543c; -pm_mac_wakeup = 0x40005448; -pm_mac_sleep = 0x40005454; -pm_enable_active_timer = 0x40005460; -pm_enable_sleep_delay_timer = 0x4000546c; -pm_local_tsf_process = 0x40005478; -pm_set_beacon_filter = 0x40005484; -pm_is_in_wifi_slice_threshold = 0x40005490; -pm_is_waked = 0x4000549c; -pm_keep_alive = 0x400054a8; -pm_on_beacon_rx = 0x400054b4; -pm_on_data_rx = 0x400054c0; -pm_on_tbtt = 0x400054cc; -pm_parse_beacon = 0x400054d8; -pm_process_tim = 0x400054e4; -pm_rx_beacon_process = 0x400054f0; -pm_rx_data_process = 0x400054fc; -pm_sleep = 0x40005508; -pm_sleep_for = 0x40005514; -pm_tbtt_process = 0x40005520; -ppAMPDU2Normal = 0x4000552c; -ppAssembleAMPDU = 0x40005538; -ppCalFrameTimes = 0x40005544; -ppCalSubFrameLength = 0x40005550; -ppCalTxAMPDULength = 0x4000555c; -ppCheckTxAMPDUlength = 0x40005568; -ppDequeueRxq_Locked = 0x40005574; -ppDequeueTxQ = 0x40005580; -ppEmptyDelimiterLength = 0x4000558c; -ppEnqueueRxq = 0x40005598; -ppEnqueueTxDone = 0x400055a4; -ppGetTxQFirstAvail_Locked = 0x400055b0; -ppGetTxframe = 0x400055bc; -ppMapTxQueue = 0x400055c8; -ppProcTxSecFrame = 0x400055d4; -ppProcessRxPktHdr = 0x400055e0; -ppProcessTxQ = 0x400055ec; -ppRecordBarRRC = 0x400055f8; -lmacRequestTxopQueue = 0x40005604; -lmacReleaseTxopQueue = 0x40005610; -ppRecycleAmpdu = 0x4000561c; -ppRecycleRxPkt = 0x40005628; -ppResortTxAMPDU = 0x40005634; -ppResumeTxAMPDU = 0x40005640; -ppRxFragmentProc = 0x4000564c; -ppRxPkt = 0x40005658; -ppRxProtoProc = 0x40005664; -ppSearchTxQueue = 0x40005670; -ppSearchTxframe = 0x4000567c; -ppSelectNextQueue = 0x40005688; -ppSubFromAMPDU = 0x40005694; -ppTask = 0x400056a0; -ppTxPkt = 0x400056ac; -ppTxProtoProc = 0x400056b8; -ppTxqUpdateBitmap = 0x400056c4; -pp_coex_tx_request = 0x400056d0; -pp_hdrsize = 0x400056dc; -pp_post = 0x400056e8; -pp_process_hmac_waiting_txq = 0x400056f4; -rcGetAmpduSched = 0x40005700; -rcUpdateRxDone = 0x4000570c; -rc_get_trc = 0x40005718; -rc_get_trc_by_index = 0x40005724; -rcAmpduLowerRate = 0x40005730; -rcampduuprate = 0x4000573c; -rcClearCurAMPDUSched = 0x40005748; -rcClearCurSched = 0x40005754; -rcClearCurStat = 0x40005760; -rcGetSched = 0x4000576c; -rcLowerSched = 0x40005778; -rcSetTxAmpduLimit = 0x40005784; -rcTxUpdatePer = 0x40005790; -rcUpdateAckSnr = 0x4000579c; -rcUpdateRate = 0x400057a8; -rcUpdateTxDone = 0x400057b4; -rcUpdateTxDoneAmpdu2 = 0x400057c0; -rcUpSched = 0x400057cc; -rssi_margin = 0x400057d8; -rx11NRate2AMPDULimit = 0x400057e4; -TRC_AMPDU_PER_DOWN_THRESHOLD = 0x400057f0; -TRC_AMPDU_PER_UP_THRESHOLD = 0x400057fc; -trc_calc_duration = 0x40005808; -trc_isTxAmpduOperational = 0x40005814; -trc_onAmpduOp = 0x40005820; -TRC_PER_IS_GOOD = 0x4000582c; -trc_SetTxAmpduState = 0x40005838; -trc_tid_isTxAmpduOperational = 0x40005844; -trcAmpduSetState = 0x40005850; -wDevCheckBlockError = 0x4000585c; -wDev_AppendRxBlocks = 0x40005868; -wDev_DiscardFrame = 0x40005874; -wDev_GetNoiseFloor = 0x40005880; -wDev_IndicateAmpdu = 0x4000588c; -wDev_IndicateFrame = 0x40005898; -wdev_bank_store = 0x400058a4; -wdev_bank_load = 0x400058b0; -wdev_mac_reg_load = 0x400058bc; -wdev_mac_reg_store = 0x400058c8; -wdev_mac_special_reg_load = 0x400058d4; -wdev_mac_special_reg_store = 0x400058e0; -wdev_mac_wakeup = 0x400058ec; -wdev_mac_sleep = 0x400058f8; -hal_mac_is_dma_enable = 0x40005904; -wDev_ProcessFiq = 0x40005910; -wDev_ProcessRxSucData = 0x4000591c; -wdevProcessRxSucDataAll = 0x40005928; -wdev_csi_len_align = 0x40005934; -ppDequeueTxDone_Locked = 0x40005940; -ppProcTxDone = 0x4000594c; -pm_tx_data_done_process = 0x40005958; -config_is_cache_tx_buf_enabled = 0x40005964; -ppMapWaitTxq = 0x40005970; -ppProcessWaitingQueue = 0x4000597c; -ppDisableQueue = 0x40005988; -pm_allow_tx = 0x40005994; -wdev_is_data_in_rxlist = 0x400059a0; -ppProcTxCallback = 0x400059ac; -/* Data (.data, .bss, .rodata) */ -our_instances_ptr = 0x3ff1ee58; -pTxRx = 0x3fcef954; -lmacConfMib_ptr = 0x3fcef950; -our_wait_eb = 0x3fcef94c; -our_tx_eb = 0x3fcef948; -pp_wdev_funcs = 0x3fcef944; -g_osi_funcs_p = 0x3fcef940; -wDevCtrl_ptr = 0x3fcef93c; -g_wdev_last_desc_reset_ptr = 0x3ff1ee54; -wDevMacSleep_ptr = 0x3fcef938; -g_lmac_cnt_ptr = 0x3fcef934; -our_controls_ptr = 0x3ff1ee50; -pp_sig_cnt_ptr = 0x3fcef930; -g_eb_list_desc_ptr = 0x3fcef92c; -s_fragment_ptr = 0x3fcef928; -if_ctrl_ptr = 0x3fcef924; -g_intr_lock_mux = 0x3fcef920; -g_wifi_global_lock = 0x3fcef91c; -s_wifi_queue = 0x3fcef918; -pp_task_hdl = 0x3fcef914; -s_pp_task_create_sem = 0x3fcef910; -s_pp_task_del_sem = 0x3fcef90c; -g_wifi_menuconfig_ptr = 0x3fcef908; -xphyQueue = 0x3fcef904; -ap_no_lr_ptr = 0x3fcef900; -rc11BSchedTbl_ptr = 0x3fcef8fc; -rc11NSchedTbl_ptr = 0x3fcef8f8; -rcLoRaSchedTbl_ptr = 0x3fcef8f4; -BasicOFDMSched_ptr = 0x3fcef8f0; -trc_ctl_ptr = 0x3fcef8ec; -g_pm_cnt_ptr = 0x3fcef8e8; -g_pm_ptr = 0x3fcef8e4; -g_pm_cfg_ptr = 0x3fcef8e0; -g_esp_mesh_quick_funcs_ptr = 0x3fcef8dc; -g_txop_queue_status_ptr = 0x3fcef8d8; -g_mac_sleep_en_ptr = 0x3fcef8d4; -g_mesh_is_root_ptr = 0x3fcef8d0; -g_mesh_topology_ptr = 0x3fcef8cc; -g_mesh_init_ps_type_ptr = 0x3fcef8c8; -g_mesh_is_started_ptr = 0x3fcef8c4; -g_config_func = 0x3fcef8c0; -g_net80211_tx_func = 0x3fcef8bc; -g_timer_func = 0x3fcef8b8; -s_michael_mic_failure_cb = 0x3fcef8b4; -wifi_sta_rx_probe_req = 0x3fcef8b0; -g_tx_done_cb_func = 0x3fcef8ac; -g_per_conn_trc = 0x3fcef860; -s_encap_amsdu_func = 0x3fcef85c; - - -/*************************************** - Group rom_net80211 - ***************************************/ - -/* Functions */ -esp_net80211_rom_version_get = 0x400059b8; -ampdu_dispatch = 0x400059c4; -ampdu_dispatch_all = 0x400059d0; -ampdu_dispatch_as_many_as_possible = 0x400059dc; -ampdu_dispatch_movement = 0x400059e8; -ampdu_dispatch_upto = 0x400059f4; -chm_is_at_home_channel = 0x40005a00; -cnx_node_is_existing = 0x40005a0c; -cnx_node_search = 0x40005a18; -ic_ebuf_recycle_rx = 0x40005a24; -ic_ebuf_recycle_tx = 0x40005a30; -ic_reset_rx_ba = 0x40005a3c; -ieee80211_align_eb = 0x40005a48; -ieee80211_ampdu_reorder = 0x40005a54; -ieee80211_ampdu_start_age_timer = 0x40005a60; -ieee80211_encap_esfbuf = 0x40005a6c; -ieee80211_is_tx_allowed = 0x40005a78; -ieee80211_output_pending_eb = 0x40005a84; -ieee80211_output_process = 0x40005a90; -ieee80211_set_tx_desc = 0x40005a9c; -sta_input = 0x40005aa8; -wifi_get_macaddr = 0x40005ab4; -wifi_rf_phy_disable = 0x40005ac0; -wifi_rf_phy_enable = 0x40005acc; -ic_ebuf_alloc = 0x40005ad8; -ieee80211_classify = 0x40005ae4; -ieee80211_copy_eb_header = 0x40005af0; -ieee80211_recycle_cache_eb = 0x40005afc; -ieee80211_search_node = 0x40005b08; -roundup2 = 0x40005b14; -ieee80211_crypto_encap = 0x40005b20; -ieee80211_crypto_decap = 0x40005b2c; -ieee80211_decap = 0x40005b38; -ieee80211_set_tx_pti = 0x40005b44; -wifi_is_started = 0x40005b50; -ieee80211_gettid = 0x40005b5c; -/* Data (.data, .bss, .rodata) */ -net80211_funcs = 0x3fcef858; -g_scan = 0x3fcef854; -g_chm = 0x3fcef850; -g_ic_ptr = 0x3fcef84c; -g_hmac_cnt_ptr = 0x3fcef848; -g_tx_cacheq_ptr = 0x3fcef844; -s_netstack_free = 0x3fcef840; -mesh_rxcb = 0x3fcef83c; -sta_rxcb = 0x3fcef838; - - -/*************************************** - Group rom_coexist - ***************************************/ - -/* Functions */ -esp_coex_rom_version_get = 0x40005b68; -coex_bt_release = 0x40005b74; -coex_bt_request = 0x40005b80; -coex_core_ble_conn_dyn_prio_get = 0x40005b8c; -coex_core_event_duration_get = 0x40005b98; -coex_core_pti_get = 0x40005ba4; -coex_core_release = 0x40005bb0; -coex_core_request = 0x40005bbc; -coex_core_status_get = 0x40005bc8; -coex_core_timer_idx_get = 0x40005bd4; -coex_event_duration_get = 0x40005be0; -coex_hw_timer_disable = 0x40005bec; -coex_hw_timer_enable = 0x40005bf8; -coex_hw_timer_set = 0x40005c04; -coex_schm_interval_set = 0x40005c10; -coex_schm_lock = 0x40005c1c; -coex_schm_unlock = 0x40005c28; -coex_status_get = 0x40005c34; -coex_wifi_release = 0x40005c40; -esp_coex_ble_conn_dynamic_prio_get = 0x40005c4c; -/* Data (.data, .bss, .rodata) */ -coex_env_ptr = 0x3fcef834; -coex_pti_tab_ptr = 0x3fcef830; -coex_schm_env_ptr = 0x3fcef82c; -coexist_funcs = 0x3fcef828; -g_coa_funcs_p = 0x3fcef824; -g_coex_param_ptr = 0x3fcef820; - - -/*************************************** - Group rom_phy - ***************************************/ - -/* Functions */ -phy_get_romfuncs = 0x40005c58; -rom_abs_temp = 0x40005c64; -rom_bb_bss_cbw40_dig = 0x40005c70; -rom_bb_wdg_test_en = 0x40005c7c; -rom_bb_wdt_get_status = 0x40005c88; -rom_bb_wdt_int_enable = 0x40005c94; -rom_bb_wdt_rst_enable = 0x40005ca0; -rom_bb_wdt_timeout_clear = 0x40005cac; -rom_cbw2040_cfg = 0x40005cb8; -rom_check_noise_floor = 0x40005cc4; -rom_chip_i2c_readReg = 0x40005cd0; -rom_chip_i2c_writeReg = 0x40005cdc; -rom_dc_iq_est = 0x40005ce8; -rom_disable_agc = 0x40005cf4; -rom_en_pwdet = 0x40005d00; -rom_enable_agc = 0x40005d0c; -rom_get_bbgain_db = 0x40005d18; -rom_get_data_sat = 0x40005d24; -rom_get_i2c_read_mask = 0x40005d30; -rom_get_pwctrl_correct = 0x40005d3c; -rom_i2c_readReg = 0x40005d48; -rom_i2c_readReg_Mask = 0x40005d54; -rom_i2c_writeReg = 0x40005d60; -rom_i2c_writeReg_Mask = 0x40005d6c; -rom_index_to_txbbgain = 0x40005d78; -rom_iq_est_disable = 0x40005d84; -rom_iq_est_enable = 0x40005d90; -rom_linear_to_db = 0x40005d9c; -rom_loopback_mode_en = 0x40005da8; -rom_mhz2ieee = 0x40005db4; -rom_noise_floor_auto_set = 0x40005dc0; -rom_pbus_debugmode = 0x40005dcc; -rom_pbus_force_mode = 0x40005dd8; -rom_pbus_force_test = 0x40005de4; -rom_pbus_rd = 0x40005df0; -rom_pbus_rd_addr = 0x40005dfc; -rom_pbus_rd_shift = 0x40005e08; -rom_pbus_set_dco = 0x40005e14; -rom_pbus_set_rxgain = 0x40005e20; -rom_pbus_workmode = 0x40005e2c; -rom_pbus_xpd_rx_off = 0x40005e38; -rom_pbus_xpd_rx_on = 0x40005e44; -rom_pbus_xpd_tx_off = 0x40005e50; -rom_pbus_xpd_tx_on = 0x40005e5c; -rom_phy_byte_to_word = 0x40005e68; -rom_phy_disable_cca = 0x40005e74; -rom_phy_enable_cca = 0x40005e80; -rom_phy_get_noisefloor = 0x40005e8c; -rom_phy_get_rx_freq = 0x40005e98; -rom_phy_set_bbfreq_init = 0x40005ea4; -rom_pow_usr = 0x40005eb0; -rom_pwdet_sar2_init = 0x40005ebc; -rom_read_hw_noisefloor = 0x40005ec8; -rom_read_sar_dout = 0x40005ed4; -rom_set_cal_rxdc = 0x40005ee0; -rom_set_chan_cal_interp = 0x40005eec; -rom_set_loopback_gain = 0x40005ef8; -rom_set_noise_floor = 0x40005f04; -rom_set_rxclk_en = 0x40005f10; -rom_set_tx_dig_gain = 0x40005f1c; -rom_set_txcap_reg = 0x40005f28; -rom_set_txclk_en = 0x40005f34; -rom_spur_cal = 0x40005f40; -rom_spur_reg_write_one_tone = 0x40005f4c; -rom_target_power_add_backoff = 0x40005f58; -rom_tx_pwctrl_bg_init = 0x40005f64; -rom_txbbgain_to_index = 0x40005f70; -rom_wifi_11g_rate_chg = 0x40005f7c; -rom_write_gain_mem = 0x40005f88; -chip728_phyrom_version = 0x40005f94; -rom_disable_wifi_agc = 0x40005fa0; -rom_enable_wifi_agc = 0x40005fac; -rom_bt_index_to_bb = 0x40005fb8; -rom_bt_bb_to_index = 0x40005fc4; -rom_spur_coef_cfg = 0x40005fd0; -rom_bb_bss_cbw40 = 0x40005fdc; -rom_set_cca = 0x40005fe8; -rom_tx_paon_set = 0x40005ff4; -rom_i2cmst_reg_init = 0x40006000; -rom_iq_corr_enable = 0x4000600c; -rom_fe_reg_init = 0x40006018; -rom_agc_reg_init = 0x40006024; -rom_bb_reg_init = 0x40006030; -rom_mac_enable_bb = 0x4000603c; -rom_bb_wdg_cfg = 0x40006048; -rom_force_txon = 0x40006054; -rom_fe_txrx_reset = 0x40006060; -rom_set_rx_comp = 0x4000606c; -rom_set_pbus_reg = 0x40006078; -rom_write_chan_freq = 0x40006084; -rom_phy_xpd_rf = 0x40006090; -rom_set_xpd_sar = 0x4000609c; -rom_get_target_power_offset = 0x400060a8; -rom_write_txrate_power_offset = 0x400060b4; -rom_get_rate_fcc_index = 0x400060c0; -rom_get_rate_target_power = 0x400060cc; -rom_pkdet_vol_start = 0x400060d8; -rom_read_sar2_code = 0x400060e4; -rom_get_sar2_vol = 0x400060f0; -rom_get_pll_vol = 0x400060fc; -rom_get_phy_target_power = 0x40006108; -rom_temp_to_power = 0x40006114; -rom_phy_track_pll_cap = 0x40006120; -rom_phy_pwdet_always_en = 0x4000612c; -rom_phy_pwdet_onetime_en = 0x40006138; -rom_get_i2c_mst0_mask = 0x40006144; -rom_get_i2c_hostid = 0x40006150; -rom_enter_critical_phy = 0x4000615c; -rom_exit_critical_phy = 0x40006168; -rom_chip_i2c_readReg_org = 0x40006174; -rom_i2c_paral_set_mst0 = 0x40006180; -rom_i2c_paral_set_read = 0x4000618c; -rom_i2c_paral_read = 0x40006198; -rom_i2c_paral_write = 0x400061a4; -rom_i2c_paral_write_num = 0x400061b0; -rom_i2c_paral_write_mask = 0x400061bc; -rom_bb_bss_cbw40_ana = 0x400061c8; -rom_chan_to_freq = 0x400061d4; -rom_open_i2c_xpd = 0x400061e0; -rom_dac_rate_set = 0x400061ec; -rom_tsens_read_init = 0x400061f8; -rom_tsens_code_read = 0x40006204; -rom_tsens_index_to_dac = 0x40006210; -rom_tsens_index_to_offset = 0x4000621c; -rom_tsens_dac_cal = 0x40006228; -rom_code_to_temp = 0x40006234; -rom_write_pll_cap_mem = 0x40006240; -rom_pll_correct_dcap = 0x4000624c; -rom_phy_en_hw_set_freq = 0x40006258; -rom_phy_dis_hw_set_freq = 0x40006264; -rom_pll_vol_cal = 0x40006270; -rom_wrtie_pll_cap = 0x4000627c; -rom_set_tx_gain_mem = 0x40006288; -rom_bt_tx_dig_gain = 0x40006294; -rom_bt_get_tx_gain = 0x400062a0; -rom_get_chan_target_power = 0x400062ac; -rom_get_tx_gain_value = 0x400062b8; -rom_wifi_tx_dig_gain = 0x400062c4; -rom_wifi_get_tx_gain = 0x400062d0; -rom_fe_i2c_reg_renew = 0x400062dc; -rom_wifi_agc_sat_gain = 0x400062e8; -rom_i2c_master_reset = 0x400062f4; -rom_bt_filter_reg = 0x40006300; -rom_phy_bbpll_cal = 0x4000630c; -rom_i2c_sar2_init_code = 0x40006318; -rom_phy_param_addr = 0x40006324; -rom_phy_reg_init = 0x40006330; -rom_set_chan_reg = 0x4000633c; -rom_phy_wakeup_init = 0x40006348; -rom_phy_i2c_init1 = 0x40006354; -rom_tsens_temp_read = 0x40006360; -rom_bt_track_pll_cap = 0x4000636c; -rom_wifi_track_pll_cap = 0x40006378; -rom_wifi_set_tx_gain = 0x40006384; -rom_txpwr_cal_track = 0x40006390; -rom_tx_pwctrl_background = 0x4000639c; -rom_bt_set_tx_gain = 0x400063a8; -rom_noise_check_loop = 0x400063b4; -rom_phy_close_rf = 0x400063c0; -rom_phy_xpd_tsens = 0x400063cc; -rom_phy_freq_mem_backup = 0x400063d8; -rom_phy_ant_init = 0x400063e4; -rom_bt_track_tx_power = 0x400063f0; -rom_wifi_track_tx_power = 0x400063fc; -rom_phy_dig_reg_backup = 0x40006408; -chip728_phyrom_version_num = 0x40006414; -rom_mac_tx_chan_offset = 0x40006420; -rom_rx_gain_force = 0x4000642c; -/* Data (.data, .bss, .rodata) */ -phy_param_rom = 0x3fcef81c; diff --git a/flasher_stub/ld/rom_32s3_beta_2.ld b/flasher_stub/ld/rom_32s3_beta_2.ld deleted file mode 100644 index eb2ce0315..000000000 --- a/flasher_stub/ld/rom_32s3_beta_2.ld +++ /dev/null @@ -1,2397 +0,0 @@ -/* -ESP32-S3 ROM address table -Generated for ROM with MD5sum: -d20fb231463ce337432b1fa9cba0b3c9 eagle.pro.rom.out -*/ -PROVIDE ( aa_gen = 0x3fcefa9c ); -PROVIDE ( abort = 0x400544a4 ); -PROVIDE ( abs = 0x40032344 ); -PROVIDE ( __absvdi2 = 0x40037f14 ); -PROVIDE ( __absvsi2 = 0x40037f00 ); -PROVIDE ( acm_config_descr = 0x3ff0c257 ); -PROVIDE ( acm_usb_descriptors = 0x3ff0c1b4 ); -PROVIDE ( __adddf3 = 0x4003bd5c ); -PROVIDE ( __addsf3 = 0x4003b9f0 ); -PROVIDE ( __addvdi3 = 0x4003c488 ); -PROVIDE ( __addvsi3 = 0x4003c464 ); -PROVIDE ( aes_cmac_zero = 0x3ff07782 ); -PROVIDE ( aes_env = 0x3fcef8c4 ); -PROVIDE ( aes_k2_salt = 0x3ff07792 ); -PROVIDE ( aes_k3_id64 = 0x3ff077a2 ); -PROVIDE ( aes_k3_salt = 0x3ff077a7 ); -PROVIDE ( aes_k4_id6 = 0x3ff077b7 ); -PROVIDE ( aes_k4_salt = 0x3ff077bb ); -PROVIDE ( analog_super_wdt_reset = 0x3fcefcc6 ); -PROVIDE ( analog_super_wdt_reset_happened = 0x40045a3c ); -PROVIDE ( __ascii_mbtowc = 0x40039ec4 ); -PROVIDE ( __ascii_wctomb = 0x40033cb0 ); -PROVIDE ( __ashldi3 = 0x40055928 ); -PROVIDE ( __ashrdi3 = 0x40055940 ); -PROVIDE ( __assert = 0x40054a5c ); -PROVIDE ( __assert_func = 0x40054a30 ); -PROVIDE ( atoi = 0x40032984 ); -PROVIDE ( _atoi_r = 0x40032994 ); -PROVIDE ( atol = 0x400329ac ); -PROVIDE ( _atol_r = 0x400329bc ); -PROVIDE ( BasePoint_x_256 = 0x3ff08238 ); -PROVIDE ( BasePoint_y_256 = 0x3ff08218 ); -PROVIDE ( bigHexP256 = 0x3ff08140 ); -PROVIDE ( boot_prepare = 0x40044ef4 ); -PROVIDE ( __bswapdi2 = 0x40039054 ); -PROVIDE ( __bswapsi2 = 0x4003902c ); -PROVIDE ( btdm_con_maxevtime_cal_impl = 0x40017018 ); -PROVIDE ( btdm_controller_get_compile_version_impl = 0x40001234 ); -PROVIDE ( btdm_disable_adv_delay_impl = 0x40014788 ); -PROVIDE ( btdm_dis_privacy_err_report_impl = 0x4001ddb0 ); -PROVIDE ( btdm_enable_scan_continue_impl = 0x4001d7f8 ); -PROVIDE ( btdm_enable_scan_forever_impl = 0x4002344c ); -PROVIDE ( btdm_env_p = 0x3fcef464 ); -PROVIDE ( btdm_get_power_state_impl = 0x4002ffbc ); -PROVIDE ( btdm_get_prevent_sleep_flag_impl = 0x4002ffc8 ); -PROVIDE ( btdm_power_state_active_impl = 0x4002ffa8 ); -PROVIDE ( btdm_pwr_state = 0x3fcefb90 ); -PROVIDE ( btdm_slp_err = 0x3fcefb48 ); -PROVIDE ( btdm_switch_phy_coded_impl = 0x4001d77c ); -PROVIDE ( bt_rf_coex_cfg_cb = 0x3fcefad0 ); -PROVIDE ( bt_rf_coex_cfg_p = 0x3fcefacc ); -PROVIDE ( bt_rf_coex_get_dft_cfg = 0x4002e518 ); -PROVIDE ( bt_rf_coex_hooks_p = 0x3fcef694 ); -PROVIDE ( bt_rf_coex_hooks_p_set = 0x4002e4e4 ); -PROVIDE ( byte_tx_time = 0x3ff08d44 ); -PROVIDE ( bzero = 0x40039d84 ); -PROVIDE ( Cache_Address_Through_DCache = 0x40051ebc ); -PROVIDE ( Cache_Address_Through_ICache = 0x40051ea4 ); -PROVIDE ( Cache_Clean_Addr = 0x40052458 ); -PROVIDE ( Cache_Clean_All = 0x40052518 ); -PROVIDE ( Cache_Clean_Items = 0x40051fe8 ); -PROVIDE ( Cache_Config_DCache_Autoload = 0x40052828 ); -PROVIDE ( Cache_Config_ICache_Autoload = 0x400526dc ); -PROVIDE ( Cache_Count_Flash_Pages = 0x40053088 ); -PROVIDE ( Cache_Dbus_MMU_Set = 0x40053004 ); -PROVIDE ( Cache_DCache_Preload_Done = 0x400526a0 ); -PROVIDE ( Cache_Disable_DCache = 0x40052be4 ); -PROVIDE ( Cache_Disable_DCache_Autoload = 0x40052924 ); -PROVIDE ( Cache_Disable_DCache_PreLock = 0x40052a74 ); -PROVIDE ( Cache_Disable_ICache = 0x40052b70 ); -PROVIDE ( Cache_Disable_ICache_Autoload = 0x400527d8 ); -PROVIDE ( Cache_Disable_ICache_PreLock = 0x400529dc ); -PROVIDE ( Cache_Enable_DCache = 0x40052c34 ); -PROVIDE ( Cache_Enable_DCache_Autoload = 0x4005290c ); -PROVIDE ( Cache_Enable_DCache_PreLock = 0x40052a0c ); -PROVIDE ( Cache_Enable_Defalut_ICache_Mode = 0x40051f1c ); -PROVIDE ( Cache_Enable_ICache = 0x40052bc0 ); -PROVIDE ( Cache_Enable_ICache_Autoload = 0x400527c0 ); -PROVIDE ( Cache_Enable_ICache_PreLock = 0x40052974 ); -PROVIDE ( Cache_End_DCache_Preload = 0x400526b4 ); -PROVIDE ( Cache_End_ICache_Preload = 0x40052614 ); -PROVIDE ( Cache_Flash_To_SPIRAM_Copy = 0x400530e4 ); -PROVIDE ( Cache_Freeze_DCache_Disable = 0x40052390 ); -PROVIDE ( Cache_Freeze_DCache_Enable = 0x40052354 ); -PROVIDE ( Cache_Freeze_ICache_Disable = 0x4005232c ); -PROVIDE ( Cache_Freeze_ICache_Enable = 0x400522f0 ); -PROVIDE ( Cache_Get_DCache_Line_Size = 0x40051d90 ); -PROVIDE ( Cache_Get_DROM_MMU_End = 0x40052e9c ); -PROVIDE ( Cache_Get_ICache_Line_Size = 0x40051d78 ); -PROVIDE ( Cache_Get_IROM_MMU_End = 0x40052e90 ); -PROVIDE ( Cache_Get_Memory_Addr = 0x4005352c ); -PROVIDE ( Cache_Get_Memory_BaseAddr = 0x400534b8 ); -PROVIDE ( Cache_Get_Memory_value = 0x40053574 ); -PROVIDE ( Cache_Get_Mode = 0x40051dac ); -PROVIDE ( Cache_Get_Virtual_Addr = 0x40053480 ); -PROVIDE ( Cache_Ibus_MMU_Set = 0x40052f80 ); -PROVIDE ( Cache_ICache_Preload_Done = 0x40052600 ); -PROVIDE ( cache_internal_table_ptr = 0x3fcefc70 ); -PROVIDE ( Cache_Invalidate_Addr = 0x400523ec ); -PROVIDE ( Cache_Invalidate_DCache_All = 0x40052504 ); -PROVIDE ( Cache_Invalidate_DCache_Items = 0x40051fa0 ); -PROVIDE ( Cache_Invalidate_ICache_All = 0x400524f0 ); -PROVIDE ( Cache_Invalidate_ICache_Items = 0x40051f4c ); -PROVIDE ( Cache_Lock_Addr = 0x40052a94 ); -PROVIDE ( Cache_Lock_DCache_Items = 0x40052214 ); -PROVIDE ( Cache_Lock_ICache_Items = 0x40052180 ); -PROVIDE ( Cache_Mask_All = 0x40052548 ); -PROVIDE ( cache_memory_baseaddrs = 0x3ff0c4c4 ); -PROVIDE ( Cache_MMU_Init = 0x40052f64 ); -PROVIDE ( Cache_Occupy_Addr = 0x40052d70 ); -PROVIDE ( Cache_Occupy_DCache_MEMORY = 0x40052f18 ); -PROVIDE ( Cache_Occupy_ICache_MEMORY = 0x40052ed4 ); -PROVIDE ( Cache_Occupy_Items = 0x400522a8 ); -PROVIDE ( Cache_Op_Addr = 0x4005207c ); -PROVIDE ( cache_op_cb = 0x3fcefc7c ); -PROVIDE ( Cache_Owner_Init = 0x40052eb4 ); -PROVIDE ( Cache_Resume_DCache = 0x40052d38 ); -PROVIDE ( Cache_Resume_DCache_Autoload = 0x400523d0 ); -PROVIDE ( Cache_Resume_ICache = 0x40052cac ); -PROVIDE ( Cache_Resume_ICache_Autoload = 0x400523b4 ); -PROVIDE ( Cache_Set_DCache_Mode = 0x40051e68 ); -PROVIDE ( Cache_Set_Default_Mode = 0x40051ed4 ); -PROVIDE ( Cache_Set_ICache_Mode = 0x40051e14 ); -PROVIDE ( Cache_Set_IDROM_MMU_Info = 0x40052e6c ); -PROVIDE ( Cache_Set_IDROM_MMU_Size = 0x40052dd0 ); -PROVIDE ( Cache_Start_DCache_Preload = 0x40052634 ); -PROVIDE ( Cache_Start_ICache_Preload = 0x40052594 ); -PROVIDE ( Cache_Suspend_DCache = 0x40052ce4 ); -PROVIDE ( Cache_Suspend_DCache_Autoload = 0x40052140 ); -PROVIDE ( Cache_Suspend_ICache = 0x40052c58 ); -PROVIDE ( Cache_Suspend_ICache_Autoload = 0x40052108 ); -PROVIDE ( Cache_Travel_Tag_Memory = 0x400531c0 ); -PROVIDE ( Cache_Unlock_Addr = 0x40052b00 ); -PROVIDE ( Cache_Unlock_DCache_Items = 0x40052258 ); -PROVIDE ( Cache_Unlock_ICache_Items = 0x400521c4 ); -PROVIDE ( Cache_UnMask_Dram0 = 0x40052570 ); -PROVIDE ( Cache_WriteBack_Addr = 0x400524a4 ); -PROVIDE ( Cache_WriteBack_All = 0x4005252c ); -PROVIDE ( Cache_WriteBack_Items = 0x40052030 ); -PROVIDE ( cacl_rtc_memory_crc = 0x40045b04 ); -PROVIDE ( calloc = 0x400547e4 ); -PROVIDE ( _calloc_r = 0x400544f8 ); -PROVIDE ( cdc_acm_class_handle_req = 0x40049da4 ); -PROVIDE ( cdc_acm_config = 0x3fcef044 ); -PROVIDE ( cdc_acm_dev = 0x3fcef340 ); -PROVIDE ( cdc_acm_fifo_fill = 0x40049ee0 ); -PROVIDE ( cdc_acm_fifo_read = 0x40049f54 ); -PROVIDE ( cdc_acm_init = 0x40049e98 ); -PROVIDE ( cdc_acm_irq_callback_set = 0x4004a028 ); -PROVIDE ( cdc_acm_irq_is_pending = 0x4004a004 ); -PROVIDE ( cdc_acm_irq_rx_disable = 0x40049fe4 ); -PROVIDE ( cdc_acm_irq_rx_enable = 0x40049fd8 ); -PROVIDE ( cdc_acm_irq_rx_ready = 0x40049ff0 ); -PROVIDE ( cdc_acm_irq_state_disable = 0x40049fb8 ); -PROVIDE ( cdc_acm_irq_state_enable = 0x40049fac ); -PROVIDE ( cdc_acm_irq_tx_disable = 0x40049fa0 ); -PROVIDE ( cdc_acm_irq_tx_enable = 0x40049f94 ); -PROVIDE ( cdc_acm_irq_tx_ready = 0x40049fc4 ); -PROVIDE ( cdc_acm_line_ctrl_get = 0x4004a084 ); -PROVIDE ( cdc_acm_line_ctrl_set = 0x4004a030 ); -PROVIDE ( cdc_acm_poll_out = 0x4004a0b4 ); -PROVIDE ( cdc_acm_rx_fifo_cnt = 0x40049f40 ); -PROVIDE ( chip725_phyrom_version = 0x4003edec ); -PROVIDE ( chip_usb_detach = 0x4004a250 ); -PROVIDE ( chip_usb_dw_did_persist = 0x4004a0d0 ); -PROVIDE ( chip_usb_dw_init = 0x4004a104 ); -PROVIDE ( chip_usb_dw_prepare_persist = 0x4004a2cc ); -PROVIDE ( chip_usb_get_persist_flags = 0x4004a31c ); -PROVIDE ( chip_usb_set_persist_flags = 0x4004a32c ); -PROVIDE ( _cleanup = 0x40054ae4 ); -PROVIDE ( _cleanup_r = 0x40054a6c ); -PROVIDE ( __clear_cache = 0x40037ef8 ); -PROVIDE ( clear_super_wdt_reset_flag = 0x40045bc8 ); -PROVIDE ( close = 0x4003b8ec ); -PROVIDE ( _close_r = 0x4005463c ); -PROVIDE ( __clrsbdi2 = 0x400390c8 ); -PROVIDE ( __clrsbsi2 = 0x400390b0 ); -PROVIDE ( __clzdi2 = 0x40055bbc ); -PROVIDE ( __clzsi2 = 0x400558f8 ); -PROVIDE ( __cmpdi2 = 0x40037eb8 ); -PROVIDE ( co_default_bdaddr = 0x3fcef398 ); -PROVIDE ( coef_B = 0x3ff0816c ); -PROVIDE ( connect_req_dur_tab = 0x3ff08d4c ); -PROVIDE ( context = 0x3fcee134 ); -PROVIDE ( co_null_bdaddr = 0x3ff077ec ); -PROVIDE ( co_phy_mask_to_rate = 0x3ff077d1 ); -PROVIDE ( co_phy_mask_to_value = 0x3ff077de ); -PROVIDE ( co_phy_to_rate = 0x3ff077e3 ); -PROVIDE ( co_phy_value_to_mask = 0x3ff077da ); -PROVIDE ( co_rate_to_byte_dur_us = 0x3ff077cc ); -PROVIDE ( co_rate_to_phy = 0x3ff077e7 ); -PROVIDE ( co_rate_to_phy_mask = 0x3ff077d6 ); -PROVIDE ( co_sca2ppm = 0x3ff077f2 ); -PROVIDE ( cpio_destroy = 0x4004c76c ); -PROVIDE ( cpio_done = 0x4004c738 ); -PROVIDE ( cpio_feed = 0x4004c438 ); -PROVIDE ( cpio_start = 0x4004c3ec ); -PROVIDE ( crc16_be = 0x400477b8 ); -PROVIDE ( crc16_le = 0x4004777c ); -PROVIDE ( crc32_be = 0x40047748 ); -PROVIDE ( crc32_le = 0x40047714 ); -PROVIDE ( crc8_be = 0x40047828 ); -PROVIDE ( crc8_le = 0x400477f8 ); -PROVIDE ( creat = 0x40039d48 ); -PROVIDE ( _ctype_ = 0x3ff0732c ); -PROVIDE ( __ctzdi2 = 0x40055bd0 ); -PROVIDE ( __ctzsi2 = 0x40055900 ); -PROVIDE ( _cvt = 0x40045498 ); -PROVIDE ( _data_end_all_app = 0x3fcefff0 ); -PROVIDE ( _data_end_all_pro = 0x3fcefff0 ); -PROVIDE ( _data_end_btdm = 0x3fcef454 ); -PROVIDE ( _data_end_btdm_rom = 0x40056700 ); -PROVIDE ( _data_end_c = 0x3fcefcd0 ); -PROVIDE ( _data_end_cache = 0x3fcefc7c ); -PROVIDE ( _data_end_ets = 0x3fced910 ); -PROVIDE ( _data_end_ets_delay = 0x3fcefcc4 ); -PROVIDE ( _data_end_ets_printf = 0x3fcefcac ); -PROVIDE ( _data_end_ets_rtc = 0x3fcefcc4 ); -PROVIDE ( _data_end_newlib = 0x3fcefcc8 ); -PROVIDE ( _data_end_opi_flash = 0x3fcefca4 ); -PROVIDE ( _data_end_phyrom = 0x3fcefff0 ); -PROVIDE ( _data_end_sip = 0x3fcee174 ); -PROVIDE ( _data_end_slc = 0x3fcee174 ); -PROVIDE ( _data_end_spi_flash = 0x3fcefc10 ); -PROVIDE ( _data_end_spi_slave = 0x3fcee130 ); -PROVIDE ( _data_end_uart = 0x3fcef34c ); -PROVIDE ( _data_end_usbdev = 0x3fcef0c4 ); -PROVIDE ( _data_end_xtos = 0x3fcee590 ); -PROVIDE ( _data_start_all_app = 0x3fcefff0 ); -PROVIDE ( _data_start_all_pro = 0x3fcefff0 ); -PROVIDE ( _data_start_btdm = 0x3fcef390 ); -PROVIDE ( _data_start_btdm_rom = 0x400566fc ); -PROVIDE ( _data_start_c = 0x3fcefccc ); -PROVIDE ( _data_start_cache = 0x3fcefc70 ); -PROVIDE ( _data_start_ets = 0x3fced910 ); -PROVIDE ( _data_start_ets_delay = 0x3fcefcc0 ); -PROVIDE ( _data_start_ets_printf = 0x3fcefcac ); -PROVIDE ( _data_start_ets_rtc = 0x3fcefcc4 ); -PROVIDE ( _data_start_newlib = 0x3fcefcc8 ); -PROVIDE ( _data_start_opi_flash = 0x3fcefca4 ); -PROVIDE ( _data_start_phyrom = 0x3fcefce0 ); -PROVIDE ( _data_start_sip = 0x3fcee174 ); -PROVIDE ( _data_start_slc = 0x3fcee174 ); -PROVIDE ( _data_start_spi_flash = 0x3fcefba8 ); -PROVIDE ( _data_start_spi_slave = 0x3fcee130 ); -PROVIDE ( _data_start_uart = 0x3fcef34c ); -PROVIDE ( _data_start_usbdev = 0x3fcef044 ); -PROVIDE ( _data_start_xtos = 0x3fcee174 ); -PROVIDE ( dbg_sch_plan_act = 0x3fcef914 ); -PROVIDE ( dbg_sch_plan_move_id = 0x3fcef968 ); -PROVIDE ( dbg_state = 0x3fcef96a ); -PROVIDE ( dbg_trc_env = 0x3fcef970 ); -PROVIDE ( dbg_trc_tl_env = 0x3fcef978 ); -PROVIDE ( dbus_baseaddrs = 0x3ff0c4d4 ); -PROVIDE ( DebugE256PublicKey_x = 0x3ff081d8 ); -PROVIDE ( DebugE256PublicKey_y = 0x3ff081b8 ); -PROVIDE ( DebugE256SecretKey = 0x3ff08198 ); -PROVIDE ( _DebugExceptionVector = 0x40000280 ); -PROVIDE ( _DebugExceptionVector_text_end = 0x4000028b ); -PROVIDE ( _DebugExceptionVector_text_start = 0x40000280 ); -PROVIDE ( __default_global_locale = 0x3ff071c0 ); -PROVIDE ( dfu_class_handle_req = 0x4004c0c0 ); -PROVIDE ( dfu_config_descr = 0x3ff0c1fa ); -PROVIDE ( dfu_cpio_callback = 0x4004a34c ); -PROVIDE ( dfu_custom_handle_req = 0x4004c338 ); -PROVIDE ( dfu_flash_attach = 0x4004c804 ); -PROVIDE ( dfu_flash_deinit = 0x4004c784 ); -PROVIDE ( dfu_flash_erase = 0x4004c78c ); -PROVIDE ( dfu_flash_init = 0x4004c774 ); -PROVIDE ( dfu_flash_program = 0x4004c7a0 ); -PROVIDE ( dfu_flash_read = 0x4004c7f4 ); -PROVIDE ( dfu_status_cb = 0x4004c2e4 ); -PROVIDE ( dfu_updater_begin = 0x4004a594 ); -PROVIDE ( dfu_updater_clear_err = 0x4004a550 ); -PROVIDE ( dfu_updater_enable = 0x4004a568 ); -PROVIDE ( dfu_updater_end = 0x4004a640 ); -PROVIDE ( dfu_updater_feed = 0x4004a5f4 ); -PROVIDE ( dfu_updater_flash_read = 0x4004a728 ); -PROVIDE ( dfu_updater_get_err = 0x4004a53c ); -PROVIDE ( dfu_updater_set_raw_addr = 0x4004a714 ); -PROVIDE ( dfu_usb_descriptors = 0x3ff0c198 ); -PROVIDE ( dh_group14_generator = 0x3ff0adf0 ); -PROVIDE ( dh_group14_prime = 0x3ff0acf0 ); -PROVIDE ( dh_group15_generator = 0x3ff0acef ); -PROVIDE ( dh_group15_prime = 0x3ff0ab6f ); -PROVIDE ( dh_group16_generator = 0x3ff0ab6e ); -PROVIDE ( dh_group16_prime = 0x3ff0a96e ); -PROVIDE ( dh_group17_generator = 0x3ff0a96d ); -PROVIDE ( dh_group17_prime = 0x3ff0a66d ); -PROVIDE ( dh_group18_generator = 0x3ff0a66c ); -PROVIDE ( dh_group18_prime = 0x3ff0a26c ); -PROVIDE ( dh_group1_generator = 0x3ff0af93 ); -PROVIDE ( dh_group1_prime = 0x3ff0af33 ); -PROVIDE ( dh_group2_generator = 0x3ff0af32 ); -PROVIDE ( dh_group2_prime = 0x3ff0aeb2 ); -PROVIDE ( dh_group5_generator = 0x3ff0aeb1 ); -PROVIDE ( dh_group5_prime = 0x3ff0adf1 ); -PROVIDE ( disable_default_watchdog = 0x40044e20 ); -PROVIDE ( Disable_QMode = 0x4004d6d0 ); -PROVIDE ( div = 0x4003234c ); -PROVIDE ( __divdc3 = 0x40038b74 ); -PROVIDE ( __divdf3 = 0x4003c120 ); -PROVIDE ( __divdi3 = 0x40055bf0 ); -PROVIDE ( __divsc3 = 0x400388d4 ); -PROVIDE ( __divsf3 = 0x40055974 ); -PROVIDE ( __divsi3 = 0x400558c8 ); -PROVIDE ( dmadesc_rx = 0x3fcee150 ); -PROVIDE ( dmadesc_tx = 0x3fcee144 ); -PROVIDE ( _DoubleExceptionVector = 0x400003c0 ); -PROVIDE ( _DoubleExceptionVector_text_end = 0x400003c6 ); -PROVIDE ( _DoubleExceptionVector_text_start = 0x400003c0 ); -PROVIDE ( _dram0_0_start = 0x3fcd8000 ); -PROVIDE ( _dram0_rtos_reserved_start = 0x3fcef044 ); -PROVIDE ( dummy_len_plus = 0x3fcefc10 ); -PROVIDE ( ECC_4Win_Look_up_table = 0x3ff078b4 ); -PROVIDE ( ecc_env = 0x3fcef984 ); -PROVIDE ( ecc_Jacobian_InfinityPoint256 = 0x3ff08070 ); -PROVIDE ( em_base_reg_lut = 0x3ff08258 ); -PROVIDE ( Enable_QMode = 0x4004d680 ); -PROVIDE ( __eqdf2 = 0x40037d40 ); -PROVIDE ( __eqsf2 = 0x40037a0c ); -PROVIDE ( esp_crc8 = 0x40047854 ); -PROVIDE ( esp_flash_chip_driver_initialized = 0x4004e88c ); -PROVIDE ( esp_flash_erase_chip = 0x4004e998 ); -PROVIDE ( esp_flash_erase_region = 0x4004ea00 ); -PROVIDE ( esp_flash_get_chip_write_protect = 0x4004eb70 ); -PROVIDE ( esp_flash_get_io_mode = 0x4004efa4 ); -PROVIDE ( esp_flash_get_protectable_regions = 0x4004ec00 ); -PROVIDE ( esp_flash_get_protected_region = 0x4004ec4c ); -PROVIDE ( esp_flash_get_size = 0x4004e938 ); -PROVIDE ( esp_flash_read = 0x4004ed7c ); -PROVIDE ( esp_flash_read_chip_id = 0x4004e8a0 ); -PROVIDE ( esp_flash_read_encrypted = 0x4004ef80 ); -PROVIDE ( esp_flash_read_id = 0x4004e8e8 ); -PROVIDE ( esp_flash_set_chip_write_protect = 0x4004ebb8 ); -PROVIDE ( esp_flash_set_io_mode = 0x4004effc ); -PROVIDE ( esp_flash_set_protected_region = 0x4004ecd4 ); -PROVIDE ( esp_flash_write = 0x4004ee74 ); -PROVIDE ( esp_flash_write_encrypted = 0x4004ef48 ); -PROVIDE ( esp_handler = 0x3fcef46c ); -PROVIDE ( esp_rom_config_pad_power_select = 0x4004de78 ); -PROVIDE ( esp_rom_flash_ecc_init = 0x4004deac ); -PROVIDE ( esp_rom_opiflash_cache_mode_config = 0x4004d744 ); -PROVIDE ( esp_rom_opiflash_erase_area = 0x40051acc ); -PROVIDE ( esp_rom_opiflash_erase_block_64k = 0x40051a9c ); -PROVIDE ( esp_rom_opiflash_erase_sector = 0x40051a68 ); -PROVIDE ( esp_rom_opiflash_exec_cmd = 0x400515e0 ); -PROVIDE ( esp_rom_opiflash_exit_continuous_read_mode = 0x4005168c ); -PROVIDE ( esp_rom_opiflash_lock_acquire_cb = 0x3fcefca8 ); -PROVIDE ( esp_rom_opiflash_lock_release_cb = 0x3fcefca4 ); -PROVIDE ( esp_rom_opiflash_mode_reset = 0x40051734 ); -PROVIDE ( esp_rom_opiflash_pin_config = 0x40050f58 ); -PROVIDE ( esp_rom_opiflash_rdcr2 = 0x40051898 ); -PROVIDE ( esp_rom_opiflash_rdsr = 0x400517d8 ); -PROVIDE ( esp_rom_opiflash_read = 0x40051bd4 ); -PROVIDE ( esp_rom_opiflash_read_id = 0x40051760 ); -PROVIDE ( esp_rom_opiflash_set_mode = 0x40051d58 ); -PROVIDE ( esp_rom_opiflash_soft_reset = 0x400516c8 ); -PROVIDE ( esp_rom_opiflash_wait_idle = 0x4005182c ); -PROVIDE ( esp_rom_opiflash_wrcr2 = 0x40051904 ); -PROVIDE ( esp_rom_opiflash_write = 0x40051d0c ); -PROVIDE ( esp_rom_spi_cmd_config = 0x40051390 ); -PROVIDE ( esp_rom_spi_cmd_start = 0x400512bc ); -PROVIDE ( esp_rom_spi_flash_auto_sus_res = 0x4004e75c ); -PROVIDE ( esp_rom_spi_flash_auto_wait_idle = 0x4004e68c ); -PROVIDE ( esp_rom_spi_flash_send_resume = 0x4004e6e0 ); -PROVIDE ( esp_rom_spi_flash_update_id = 0x4004de64 ); -PROVIDE ( esp_rom_spi_reset_rw_mode = 0x40051084 ); -PROVIDE ( esp_rom_spi_set_dtr_swap_mode = 0x40051274 ); -PROVIDE ( esp_rom_spi_set_op_mode = 0x400510e8 ); -PROVIDE ( esp_vendor_cmd = 0x3fcef4c0 ); -PROVIDE ( _etext = 0x400568d0 ); -PROVIDE ( ets_aes_block = 0x40042ed0 ); -PROVIDE ( ets_aes_disable = 0x40042e30 ); -PROVIDE ( ets_aes_enable = 0x40042e04 ); -PROVIDE ( ets_aes_setkey = 0x40042e64 ); -PROVIDE ( ets_aes_setkey_dec = 0x40042eb0 ); -PROVIDE ( ets_aes_setkey_enc = 0x40042ea0 ); -PROVIDE ( ets_bigint_disable = 0x40043010 ); -PROVIDE ( ets_bigint_enable = 0x40042fc8 ); -PROVIDE ( ets_bigint_getz = 0x40043118 ); -PROVIDE ( ets_bigint_modexp = 0x400430d8 ); -PROVIDE ( ets_bigint_modmult = 0x400430b4 ); -PROVIDE ( ets_bigint_multiply = 0x40043050 ); -PROVIDE ( ets_bigint_wait_finish = 0x40043100 ); -PROVIDE ( ets_config_flash_by_image_hdr = 0x40046b10 ); -PROVIDE ( ets_delay_us = 0x40043148 ); -PROVIDE ( ets_ds_disable = 0x400431d0 ); -PROVIDE ( ets_ds_enable = 0x400431a4 ); -PROVIDE ( ets_ds_encrypt_params = 0x40043320 ); -PROVIDE ( ets_ds_finish_sign = 0x400432b8 ); -PROVIDE ( ets_ds_is_busy = 0x400431fc ); -PROVIDE ( ets_ds_start_sign = 0x4004322c ); -PROVIDE ( ets_ecc_flash_disable = 0x40054ef0 ); -PROVIDE ( ets_ecc_flash_disable_all = 0x40054f10 ); -PROVIDE ( ets_ecc_flash_enable = 0x40054eb4 ); -PROVIDE ( ets_ecc_flash_enable_all = 0x40054ed4 ); -PROVIDE ( ets_ecc_get_flash_byte_mode = 0x40054fc4 ); -PROVIDE ( ets_ecc_get_flash_page_size = 0x40054f30 ); -PROVIDE ( ets_ecc_get_flash_range = 0x40055008 ); -PROVIDE ( ets_ecc_get_sram_byte_mode = 0x4005514c ); -PROVIDE ( ets_ecc_get_sram_page_size = 0x400550a4 ); -PROVIDE ( ets_ecc_get_sram_range = 0x40055160 ); -PROVIDE ( ets_ecc_set_flash_byte_mode = 0x40054f90 ); -PROVIDE ( ets_ecc_set_flash_page_size = 0x40054f50 ); -PROVIDE ( ets_ecc_set_flash_range = 0x40054fd8 ); -PROVIDE ( ets_ecc_set_sram_byte_mode = 0x40055118 ); -PROVIDE ( ets_ecc_set_sram_page_size = 0x400550c0 ); -PROVIDE ( ets_ecc_set_sram_range = 0x40055180 ); -PROVIDE ( ets_ecc_sram_disable = 0x4005504c ); -PROVIDE ( ets_ecc_sram_disable_all = 0x40055088 ); -PROVIDE ( ets_ecc_sram_enable = 0x4005502c ); -PROVIDE ( ets_ecc_sram_enable_all = 0x4005506c ); -PROVIDE ( ets_efuse_cache_encryption_enabled = 0x40043cb8 ); -PROVIDE ( ets_efuse_clear_program_registers = 0x400436c0 ); -PROVIDE ( ets_efuse_count_unused_key_blocks = 0x40043884 ); -PROVIDE ( ets_efuse_download_modes_disabled = 0x40043b94 ); -PROVIDE ( ets_efuse_ecc_16to17_mode = 0x40043c68 ); -PROVIDE ( ets_efuse_ecc_en = 0x40043c78 ); -PROVIDE ( ets_efuse_ecc_flash_page_size = 0x40043c88 ); -PROVIDE ( ets_efuse_find_purpose = 0x400437e4 ); -PROVIDE ( ets_efuse_find_unused_key_block = 0x4004386c ); -PROVIDE ( ets_efuse_flash_octal_mode = 0x40043c48 ); -PROVIDE ( ets_efuse_flash_opi_5pads_power_sel_vddspi = 0x40043c38 ); -PROVIDE ( ets_efuse_force_send_resume = 0x40043c58 ); -PROVIDE ( ets_efuse_get_flash_delay_us = 0x40043cfc ); -PROVIDE ( ets_efuse_get_key_purpose = 0x40043770 ); -PROVIDE ( ets_efuse_get_mac = 0x40043d24 ); -PROVIDE ( ets_efuse_get_opiconfig = 0x40043ac8 ); -PROVIDE ( ets_efuse_get_read_register_address = 0x4004374c ); -PROVIDE ( ets_efuse_get_spiconfig = 0x40043a6c ); -PROVIDE ( ets_efuse_get_uart_print_channel = 0x40043bb4 ); -PROVIDE ( ets_efuse_get_uart_print_control = 0x40043ba4 ); -PROVIDE ( ets_efuse_get_wp_pad = 0x40043a10 ); -PROVIDE ( ets_efuse_jtag_disabled = 0x40043b5c ); -PROVIDE ( ets_efuse_key_block_unused = 0x40043810 ); -PROVIDE ( ets_efuse_legacy_spi_boot_mode_disabled = 0x40043cd8 ); -PROVIDE ( ets_efuse_program = 0x400436f4 ); -PROVIDE ( ets_efuse_read = 0x40043678 ); -PROVIDE ( ets_efuse_rs_calculate = 0x40043d58 ); -PROVIDE ( ets_efuse_secure_boot_aggressive_revoke_enabled = 0x40043ca8 ); -PROVIDE ( ets_efuse_secure_boot_enabled = 0x40043c98 ); -PROVIDE ( ets_efuse_security_download_modes_enabled = 0x40043bd4 ); -PROVIDE ( ets_efuse_set_timing = 0x40043648 ); -PROVIDE ( ets_efuse_usb_download_mode_disabled = 0x40043bf4 ); -PROVIDE ( ets_efuse_usb_force_nopersist = 0x40043c30 ); -PROVIDE ( ets_efuse_usb_module_disabled = 0x40043bc4 ); -PROVIDE ( ets_efuse_usb_use_ext_phy = 0x40043c20 ); -PROVIDE ( ets_efuse_write_key = 0x400438bc ); -PROVIDE ( ets_emsa_pss_verify = 0x40047554 ); -PROVIDE ( ets_get_apb_freq = 0x40046918 ); -PROVIDE ( ets_get_cpu_frequency = 0x40043170 ); -PROVIDE ( ets_get_printf_channel = 0x40045a28 ); -PROVIDE ( ets_get_stack_info = 0x40045118 ); -PROVIDE ( ets_get_xtal_div = 0x400468b8 ); -PROVIDE ( ets_get_xtal_freq = 0x400468f4 ); -PROVIDE ( ets_hmac_calculate_downstream = 0x400447b4 ); -PROVIDE ( ets_hmac_calculate_message = 0x400446b4 ); -PROVIDE ( ets_hmac_disable = 0x40044688 ); -PROVIDE ( ets_hmac_enable = 0x4004466c ); -PROVIDE ( ets_hmac_invalidate_downstream = 0x400447d4 ); -PROVIDE ( ets_install_lock = 0x40045980 ); -PROVIDE ( ets_install_putc1 = 0x40045990 ); -PROVIDE ( ets_install_putc2 = 0x400459b0 ); -PROVIDE ( ets_install_uart_printf = 0x400459a0 ); -PROVIDE ( ets_intr_count = 0x3fced910 ); -PROVIDE ( ets_intr_lock = 0x400447fc ); -PROVIDE ( ets_intr_unlock = 0x40044810 ); -PROVIDE ( ets_is_print_boot = 0x40044e50 ); -PROVIDE ( ets_isr_attach = 0x40044838 ); -PROVIDE ( ets_isr_mask = 0x40044848 ); -PROVIDE ( ets_isr_unmask = 0x40044854 ); -PROVIDE ( ets_jtag_enable_temporarily = 0x40043b14 ); -PROVIDE ( ets_loader_map_range = 0x40046a24 ); -PROVIDE ( ets_mgf1_sha256 = 0x400474ec ); -PROVIDE ( ets_printf = 0x400459c0 ); -PROVIDE ( ets_printf_lock = 0x3fcefcb4 ); -PROVIDE ( ets_printf_uart = 0x3fcefcac ); -PROVIDE ( ets_printf_unlock = 0x3fcefcb0 ); -PROVIDE ( ets_rsa_pss_verify = 0x40047660 ); -PROVIDE ( ets_run_flash_bootloader = 0x40046c38 ); -PROVIDE ( ets_secure_boot_read_key_digests = 0x40045da4 ); -PROVIDE ( ets_secure_boot_revoke_public_key_digest = 0x40045e54 ); -PROVIDE ( ets_secure_boot_verify_bootloader_with_keys = 0x400460a0 ); -PROVIDE ( ets_secure_boot_verify_signature = 0x40046024 ); -PROVIDE ( ets_secure_boot_verify_stage_bootloader = 0x4004637c ); -PROVIDE ( ets_set_appcpu_boot_addr = 0x40044e08 ); -PROVIDE ( ets_set_printf_channel = 0x40045a1c ); -PROVIDE ( ets_set_user_start = 0x40044df8 ); -PROVIDE ( ets_set_xtal_div = 0x400468d4 ); -PROVIDE ( ets_sha_clone = 0x40046618 ); -PROVIDE ( ets_sha_disable = 0x40046470 ); -PROVIDE ( ets_sha_enable = 0x40046444 ); -PROVIDE ( ets_sha_finish = 0x40046774 ); -PROVIDE ( ets_sha_get_state = 0x400465f0 ); -PROVIDE ( ets_sha_init = 0x4004649c ); -PROVIDE ( ets_sha_process = 0x40046644 ); -PROVIDE ( ets_sha_starts = 0x400464e4 ); -PROVIDE ( ets_sha_update = 0x400466b4 ); -PROVIDE ( ets_startup_callback = 0x3fced918 ); -PROVIDE ( ets_unpack_flash_code_legacy = 0x4004716c ); -PROVIDE ( ets_update_cpu_frequency = 0x40043164 ); -PROVIDE ( ets_vprintf = 0x4004551c ); -PROVIDE ( ets_waiti0 = 0x40044824 ); -PROVIDE ( ets_wdt_reset_cpu = 0x400551c0 ); -PROVIDE ( ets_write_char = 0x40045454 ); -PROVIDE ( ets_write_char_uart = 0x40045478 ); -PROVIDE ( event_empty = 0x3fcef5cc ); -PROVIDE ( _exit_r = 0x40054628 ); -PROVIDE ( __extendsfdf2 = 0x4003c400 ); -PROVIDE ( fclose = 0x40054e9c ); -PROVIDE ( _fclose_r = 0x40054da4 ); -PROVIDE ( fflush = 0x40033fd8 ); -PROVIDE ( _fflush_r = 0x40033f50 ); -PROVIDE ( __ffsdi2 = 0x40055b98 ); -PROVIDE ( __ffssi2 = 0x40055914 ); -PROVIDE ( FilePacketSendDeflatedReqMsgProc = 0x40048a2c ); -PROVIDE ( FilePacketSendReqMsgProc = 0x40048708 ); -PROVIDE ( fiprintf = 0x40032cdc ); -PROVIDE ( _fiprintf_r = 0x40032cac ); -PROVIDE ( __fixdfdi = 0x4003c290 ); -PROVIDE ( __fixdfsi = 0x4003c244 ); -PROVIDE ( fixed_tx_time = 0x3ff08d3c ); -PROVIDE ( __fixsfdi = 0x4003bc18 ); -PROVIDE ( __fixsfsi = 0x4003bbd8 ); -PROVIDE ( __fixunsdfsi = 0x4003c2fc ); -PROVIDE ( __fixunssfdi = 0x4003bcd0 ); -PROVIDE ( __fixunssfsi = 0x4003bc78 ); -PROVIDE ( flash2spiram_instruction_offset = 0x40052e14 ); -PROVIDE ( flash2spiram_rodata_offset = 0x40052e24 ); -PROVIDE ( flashchip = 0x3fcefbac ); -PROVIDE ( FlashDwnLdDeflatedStartMsgProc = 0x400489d4 ); -PROVIDE ( FlashDwnLdParamCfgMsgProc = 0x400487f0 ); -PROVIDE ( FlashDwnLdStartMsgProc = 0x400486a4 ); -PROVIDE ( FlashDwnLdStopDeflatedReqMsgProc = 0x40048b28 ); -PROVIDE ( FlashDwnLdStopReqMsgProc = 0x400487c0 ); -PROVIDE ( flash_instr_rodata_end_page = 0x40052e4c ); -PROVIDE ( flash_instr_rodata_start_page = 0x40052e30 ); -PROVIDE ( __floatdidf = 0x40055af4 ); -PROVIDE ( __floatdisf = 0x40055a2c ); -PROVIDE ( __floatsidf = 0x40055ab0 ); -PROVIDE ( __floatsisf = 0x400559dc ); -PROVIDE ( __floatundidf = 0x40055ae4 ); -PROVIDE ( __floatundisf = 0x40055a1c ); -PROVIDE ( __floatunsidf = 0x40055aa4 ); -PROVIDE ( __floatunsisf = 0x400559d0 ); -PROVIDE ( __fp_lock_all = 0x40054cbc ); -PROVIDE ( fprintf = 0x40032cdc ); -PROVIDE ( _fprintf_r = 0x40032cac ); -PROVIDE ( __fp_unlock_all = 0x40054cd4 ); -PROVIDE ( fputwc = 0x40033c40 ); -PROVIDE ( __fputwc = 0x40033b2c ); -PROVIDE ( _fputwc_r = 0x40033bc0 ); -PROVIDE ( free = 0x400547b8 ); -PROVIDE ( _free_r = 0x400544cc ); -PROVIDE ( _fstat_r = 0x400545cc ); -PROVIDE ( _fwalk = 0x40056670 ); -PROVIDE ( _fwalk_reent = 0x400566b0 ); -PROVIDE ( g_bt_plf_log_level = 0x3fcef394 ); -PROVIDE ( __gcc_bcmp = 0x40039100 ); -PROVIDE ( __gedf2 = 0x40037e00 ); -PROVIDE ( general_device_descr = 0x3fcef0b2 ); -PROVIDE ( _GeneralException = 0x40039758 ); -PROVIDE ( __gesf2 = 0x40037aa4 ); -PROVIDE ( get_id = 0x4004d0dc ); -PROVIDE ( _getpid_r = 0x400545fc ); -PROVIDE ( __getreent = 0x4005478c ); -PROVIDE ( GetSecurityInfoProc = 0x40048bf4 ); -PROVIDE ( _gettimeofday_r = 0x40054558 ); -PROVIDE ( GetUartDevice = 0x40049cb4 ); -PROVIDE ( g_flash_guard_ops = 0x3fcefc34 ); -PROVIDE ( _global_impure_ptr = 0x3fcefcdc ); -PROVIDE ( __global_locale_ptr = 0x3fcefccc ); -PROVIDE ( g_phyFuns = 0x3fcefce0 ); -PROVIDE ( g_phyFuns_instance = 0x3fcefce4 ); -PROVIDE ( gpio_bypass_matrix_in = 0x4005370c ); -PROVIDE ( gpio_input_get = 0x40053680 ); -PROVIDE ( gpio_input_get_high = 0x40053694 ); -PROVIDE ( gpio_matrix_in = 0x4005372c ); -PROVIDE ( gpio_matrix_out = 0x4005375c ); -PROVIDE ( gpio_output_disable = 0x400537dc ); -PROVIDE ( gpio_output_enable = 0x400537b0 ); -PROVIDE ( gpio_output_set = 0x4005361c ); -PROVIDE ( gpio_output_set_high = 0x40053654 ); -PROVIDE ( gpio_pad_hold = 0x40053950 ); -PROVIDE ( gpio_pad_input_disable = 0x400538ec ); -PROVIDE ( gpio_pad_input_enable = 0x400538c8 ); -PROVIDE ( gpio_pad_pulldown = 0x40053894 ); -PROVIDE ( gpio_pad_pullup = 0x40053860 ); -PROVIDE ( gpio_pad_select_gpio = 0x4005380c ); -PROVIDE ( gpio_pad_set_drv = 0x40053834 ); -PROVIDE ( gpio_pad_unhold = 0x40053918 ); -PROVIDE ( gpio_pin_wakeup_disable = 0x400536e0 ); -PROVIDE ( gpio_pin_wakeup_enable = 0x400536a8 ); -PROVIDE ( g_rw_controller_task_handle = 0x3fcef8b8 ); -PROVIDE ( g_rw_init_sem = 0x3fcef8c0 ); -PROVIDE ( g_rw_schd_queue = 0x3fcef8bc ); -PROVIDE ( g_shared_buffers = 0x3fcd8004 ); -PROVIDE ( __gtdf2 = 0x40037d74 ); -PROVIDE ( g_ticks_per_us = 0x3fcefcc0 ); -PROVIDE ( __gtsf2 = 0x40037a38 ); -PROVIDE ( hci_acl_data_handler = 0x4000ed70 ); -PROVIDE ( hci_cmd_desc_root_tab = 0x3ff08434 ); -PROVIDE ( hci_cmd_desc_tab_ctrl_bb = 0x3ff08974 ); -PROVIDE ( hci_cmd_desc_tab_info_par = 0x3ff08944 ); -PROVIDE ( hci_cmd_desc_tab_le = 0x3ff0859c ); -PROVIDE ( hci_cmd_desc_tab_lk_ctrl = 0x3ff089e0 ); -PROVIDE ( hci_cmd_desc_tab_stat_par = 0x3ff08938 ); -PROVIDE ( hci_cmd_desc_tab_vs = 0x3ff08464 ); -PROVIDE ( hci_cmd_desc_tab_vs_esp = 0x3fcef3c4 ); -PROVIDE ( hci_dbg_llcp_discard_cmd_handler = 0x4000c3a0 ); -PROVIDE ( hci_dbg_send_llcp_cmd_handler = 0x4000f934 ); -PROVIDE ( hci_disconnect_cmd_handler = 0x4000c824 ); -PROVIDE ( hci_env = 0x3fcef99d ); -PROVIDE ( hci_evt_dbg_desc_tab = 0x3ff083e4 ); -PROVIDE ( hci_evt_desc_tab = 0x3ff083ec ); -PROVIDE ( hci_evt_le_desc_tab = 0x3ff08344 ); -PROVIDE ( hci_evt_le_desc_tab_esp = 0x3ff0833c ); -PROVIDE ( hci_ext_host = 0x3fcef99c ); -PROVIDE ( hci_le_add_dev_to_per_adv_list_cmd_handler = 0x4002ca68 ); -PROVIDE ( hci_le_clear_adv_sets_cmd_handler = 0x40028e6c ); -PROVIDE ( hci_le_clear_per_adv_list_cmd_handler = 0x4002cc74 ); -PROVIDE ( hci_le_con_upd_cmd_handler = 0x4000bbb8 ); -PROVIDE ( hci_le_create_con_cancel_cmd_handler = 0x4002b060 ); -PROVIDE ( hci_le_create_con_cmd_handler = 0x4002a914 ); -PROVIDE ( hci_le_ext_create_con_cmd_handler = 0x4002ac78 ); -PROVIDE ( hci_le_ltk_req_neg_reply_cmd_handler = 0x4000e278 ); -PROVIDE ( hci_le_ltk_req_reply_cmd_handler = 0x4000e1d8 ); -PROVIDE ( hci_le_per_adv_create_sync_cancel_cmd_handler = 0x4002c87c ); -PROVIDE ( hci_le_per_adv_create_sync_cmd_handler = 0x4002c710 ); -PROVIDE ( hci_le_per_adv_term_sync_cmd_handler = 0x4002c9dc ); -PROVIDE ( hci_le_rd_adv_ch_tx_pw_cmd_handler = 0x40026f30 ); -PROVIDE ( hci_le_rd_chnl_map_cmd_handler = 0x4000aaa4 ); -PROVIDE ( hci_le_rd_max_adv_data_len_cmd_handler = 0x40028d04 ); -PROVIDE ( hci_le_rd_nb_supp_adv_sets_cmd_handler = 0x40028d4c ); -PROVIDE ( hci_le_rd_per_adv_list_size_cmd_handler = 0x4002cd08 ); -PROVIDE ( hci_le_rd_phy_cmd_handler = 0x40010eb0 ); -PROVIDE ( hci_le_rd_rem_feats_cmd_handler = 0x4000e8f8 ); -PROVIDE ( hci_le_rem_con_param_req_neg_reply_cmd_handler = 0x4000bdd0 ); -PROVIDE ( hci_le_rem_con_param_req_reply_cmd_handler = 0x4000bd20 ); -PROVIDE ( hci_le_rmv_adv_set_cmd_handler = 0x40028dd0 ); -PROVIDE ( hci_le_rmv_dev_from_per_adv_list_cmd_handler = 0x4002cb7c ); -PROVIDE ( hci_le_set_adv_data_cmd_handler = 0x400271c0 ); -PROVIDE ( hci_le_set_adv_en_cmd_handler = 0x400273c8 ); -PROVIDE ( hci_le_set_adv_param_cmd_handler = 0x40026f94 ); -PROVIDE ( hci_le_set_adv_set_rand_addr_cmd_handler = 0x40027970 ); -PROVIDE ( hci_le_set_data_len_cmd_handler = 0x4000cf90 ); -PROVIDE ( hci_le_set_ext_adv_data_cmd_handler = 0x40027a2c ); -PROVIDE ( hci_le_set_ext_adv_en_cmd_handler = 0x40028038 ); -PROVIDE ( hci_le_set_ext_adv_param_cmd_handler = 0x4002768c ); -PROVIDE ( hci_le_set_ext_scan_en_cmd_handler = 0x4002c368 ); -PROVIDE ( hci_le_set_ext_scan_param_cmd_handler = 0x4002c1f0 ); -PROVIDE ( hci_le_set_ext_scan_rsp_data_cmd_handler = 0x40027d44 ); -PROVIDE ( hci_le_set_per_adv_data_cmd_handler = 0x40028844 ); -PROVIDE ( hci_le_set_per_adv_en_cmd_handler = 0x40028a88 ); -PROVIDE ( hci_le_set_per_adv_param_cmd_handler = 0x400286bc ); -PROVIDE ( hci_le_set_phy_cmd_handler = 0x40010f1c ); -PROVIDE ( hci_le_set_scan_en_cmd_handler = 0x4002bf34 ); -PROVIDE ( hci_le_set_scan_param_cmd_handler = 0x4002bda0 ); -PROVIDE ( hci_le_set_scan_rsp_data_cmd_handler = 0x400272c4 ); -PROVIDE ( hci_le_start_enc_cmd_handler = 0x4000e0dc ); -PROVIDE ( hci_rd_auth_payl_to_cmd_handler = 0x4000f0ec ); -PROVIDE ( hci_rd_rem_ver_info_cmd_handler = 0x4001157c ); -PROVIDE ( hci_rd_rssi_cmd_handler = 0x4000eb18 ); -PROVIDE ( hci_rd_tx_pwr_lvl_cmd_handler = 0x4000ea74 ); -PROVIDE ( hci_tl_env = 0x3fcef9c0 ); -PROVIDE ( hci_vs_set_pref_slave_evt_dur_cmd_handler = 0x4000ec04 ); -PROVIDE ( hci_vs_set_pref_slave_latency_cmd_handler = 0x4000ebb0 ); -PROVIDE ( hci_wr_auth_payl_to_cmd_handler = 0x4000f158 ); -PROVIDE ( hmac_md5 = 0x400378cc ); -PROVIDE ( hmac_md5_vector = 0x400377d4 ); -PROVIDE ( ibus_baseaddrs = 0x3ff0c4d8 ); -PROVIDE ( intr_matrix_set = 0x40044868 ); -PROVIDE ( _iram0_text_end = 0x4000056c ); -PROVIDE ( _iram0_text_start = 0x4000056c ); -PROVIDE ( _iram1_text_end = 0x60021100 ); -PROVIDE ( _iram1_text_start = 0x60021100 ); -PROVIDE ( isalnum = 0x40039d94 ); -PROVIDE ( isalpha = 0x40039da4 ); -PROVIDE ( isascii = 0x4005546c ); -PROVIDE ( _isatty_r = 0x40039d5c ); -PROVIDE ( isblank = 0x40039db4 ); -PROVIDE ( iscntrl = 0x40039dd4 ); -PROVIDE ( isdigit = 0x40039dec ); -PROVIDE ( isgraph = 0x40039e24 ); -PROVIDE ( islower = 0x40039e04 ); -PROVIDE ( isprint = 0x40039e3c ); -PROVIDE ( ispunct = 0x40039e50 ); -PROVIDE ( isspace = 0x40039e68 ); -PROVIDE ( isupper = 0x40039e80 ); -PROVIDE ( itoa = 0x40032974 ); -PROVIDE ( __itoa = 0x40032938 ); -PROVIDE ( jd_decomp = 0x40047e30 ); -PROVIDE ( jd_prepare = 0x400479e0 ); -PROVIDE ( jtag_appcpu_reset = 0x3fcefcc4 ); -PROVIDE ( jtag_cpu_reset_happened = 0x40045a78 ); -PROVIDE ( jtag_procpu_reset = 0x3fcefcc5 ); -PROVIDE ( ke_env = 0x3fcefa04 ); -PROVIDE ( _KernelExceptionVector = 0x40000300 ); -PROVIDE ( _KernelExceptionVector_text_end = 0x40000306 ); -PROVIDE ( _KernelExceptionVector_text_start = 0x40000300 ); -PROVIDE ( _kill_r = 0x40054610 ); -PROVIDE ( labs = 0x40032370 ); -PROVIDE ( ldiv = 0x40032378 ); -PROVIDE ( __ledf2 = 0x40037d9c ); -PROVIDE ( __lesf2 = 0x40037a58 ); -PROVIDE ( _Level2FromVector = 0x400398cc ); -PROVIDE ( _Level2HandlerLabel = 0x00000000 ); -PROVIDE ( _Level2InterruptVector_text_end = 0x40000186 ); -PROVIDE ( _Level2InterruptVector_text_start = 0x40000180 ); -PROVIDE ( _Level2Vector = 0x40000180 ); -PROVIDE ( _Level3FromVector = 0x4003999c ); -PROVIDE ( _Level3HandlerLabel = 0x00000000 ); -PROVIDE ( _Level3InterruptVector_text_end = 0x400001c6 ); -PROVIDE ( _Level3InterruptVector_text_start = 0x400001c0 ); -PROVIDE ( _Level3Vector = 0x400001c0 ); -PROVIDE ( _Level4FromVector = 0x40039a68 ); -PROVIDE ( _Level4HandlerLabel = 0x00000000 ); -PROVIDE ( _Level4InterruptVector_text_end = 0x40000206 ); -PROVIDE ( _Level4InterruptVector_text_start = 0x40000200 ); -PROVIDE ( _Level4Vector = 0x40000200 ); -PROVIDE ( _Level5FromVector = 0x40039bd8 ); -PROVIDE ( _Level5HandlerLabel = 0x00000000 ); -PROVIDE ( _Level5InterruptVector_text_end = 0x40000246 ); -PROVIDE ( _Level5InterruptVector_text_start = 0x40000240 ); -PROVIDE ( _Level5Vector = 0x40000240 ); -PROVIDE ( _LevelOneInterrupt = 0x400397ae ); -PROVIDE ( _link_r = 0x4005459c ); -PROVIDE ( _lit4_end = 0x4000056c ); -PROVIDE ( _lit4_start = 0x4000056c ); -PROVIDE ( llc_auth_payl_nearly_to_handler = 0x4000f234 ); -PROVIDE ( llc_auth_payl_real_to_handler = 0x4000f2b0 ); -PROVIDE ( llc_encrypt_ind_handler = 0x4000e344 ); -PROVIDE ( llc_env = 0x3fcefa64 ); -PROVIDE ( ll_channel_map_ind_handler = 0x4000a934 ); -PROVIDE ( llc_hci_command_handler_wrapper = 0x4000ed44 ); -PROVIDE ( llc_ll_connection_param_req_pdu_send = 0x4000ae9c ); -PROVIDE ( llc_ll_connection_param_rsp_pdu_send = 0x4000b220 ); -PROVIDE ( llc_ll_connection_update_ind_pdu_send = 0x4000ae58 ); -PROVIDE ( llc_llcp_ch_map_update_ind_pdu_send = 0x4000a718 ); -PROVIDE ( llc_llcp_phy_upd_ind_pdu_send = 0x40010584 ); -PROVIDE ( llc_llcp_version_ind_pdu_send = 0x400112cc ); -PROVIDE ( llc_ll_enc_req_pdu_send = 0x4000d2b0 ); -PROVIDE ( llc_ll_enc_rsp_pdu_send = 0x4000d304 ); -PROVIDE ( llc_ll_feature_req_pdu_send = 0x4000e574 ); -PROVIDE ( llc_ll_feature_rsp_pdu_send = 0x4000e5cc ); -PROVIDE ( llc_ll_length_req_pdu_send = 0x4000c99c ); -PROVIDE ( llc_ll_length_rsp_pdu_send = 0x4000c9c8 ); -PROVIDE ( llc_ll_pause_enc_req_pdu_send = 0x4000d270 ); -PROVIDE ( llc_ll_pause_enc_rsp_pdu_send = 0x4000d290 ); -PROVIDE ( llc_ll_phy_req_pdu_send = 0x40010268 ); -PROVIDE ( llc_ll_phy_rsp_pdu_send = 0x40010290 ); -PROVIDE ( llc_ll_ping_req_pdu_send = 0x4000efc4 ); -PROVIDE ( llc_ll_ping_rsp_pdu_send = 0x4000f088 ); -PROVIDE ( llc_ll_start_enc_req_pdu_send = 0x4000d348 ); -PROVIDE ( llc_ll_start_enc_rsp_pdu_send = 0x4000d368 ); -PROVIDE ( llc_ll_terminate_ind_pdu_send = 0x4000c444 ); -PROVIDE ( llc_ll_unknown_rsp_pdu_send = 0x4000f460 ); -PROVIDE ( ll_connection_param_req_handler = 0x4000b9ec ); -PROVIDE ( ll_connection_param_rsp_handler = 0x4000bb0c ); -PROVIDE ( ll_connection_update_ind_handler = 0x4000b850 ); -PROVIDE ( llc_op_ch_map_upd_ind_handler = 0x4000ab10 ); -PROVIDE ( llc_op_con_upd_ind_handler = 0x4000be4c ); -PROVIDE ( llc_op_disconnect_ind_handler = 0x4000c744 ); -PROVIDE ( llc_op_dl_upd_ind_handler = 0x4000d0c8 ); -PROVIDE ( llc_op_encrypt_ind_handler = 0x4000e4e8 ); -PROVIDE ( llc_op_feats_exch_ind_handler = 0x4000e9dc ); -PROVIDE ( llc_op_le_ping_ind_handler = 0x4000f1c4 ); -PROVIDE ( llc_op_phy_upd_ind_handler = 0x400110d4 ); -PROVIDE ( llc_op_ver_exch_ind_handler = 0x4001147c ); -PROVIDE ( llc_stopped_ind_handler = 0x4000c6e8 ); -PROVIDE ( lld_acl_rx_ind_handler = 0x4000ee78 ); -PROVIDE ( lld_acl_tx_cfm_handler = 0x4000ef4c ); -PROVIDE ( lld_adv_end_ind_handler = 0x40028fd4 ); -PROVIDE ( lld_adv_rep_ind_handler = 0x4002cfb0 ); -PROVIDE ( lld_ch_map_upd_cfm_handler = 0x4000ac18 ); -PROVIDE ( lld_con_estab_ind_handler = 0x4000c048 ); -PROVIDE ( lld_con_evt_sd_evt_time_set = 0x4001aa08 ); -PROVIDE ( lld_con_offset_upd_ind_handler = 0x4000c100 ); -PROVIDE ( lld_con_param_upd_cfm_handler = 0x4000bf50 ); -PROVIDE ( lld_disc_ind_handler = 0x4000c608 ); -PROVIDE ( lldesc_build_chain = 0x4003c774 ); -PROVIDE ( lldesc_num2link = 0x4003c864 ); -PROVIDE ( lldesc_set_owner = 0x4003c890 ); -PROVIDE ( lldesc_setup = 0x400543c8 ); -PROVIDE ( lld_exp_sync_pos_tab = 0x3fcefa90 ); -PROVIDE ( lld_init_end_ind_handler = 0x4002b140 ); -PROVIDE ( lld_init_max_aux_dur_tab = 0x3ff08d54 ); -PROVIDE ( lld_llcp_rx_ind_handler_wrapper = 0x4000f88c ); -PROVIDE ( lld_llcp_tx_cfm_handler = 0x4000f8ac ); -PROVIDE ( lld_per_adv_end_ind_handler = 0x40029710 ); -PROVIDE ( lld_per_adv_rep_ind_handler = 0x4002d5e4 ); -PROVIDE ( lld_per_adv_rx_end_ind_handler = 0x4002d9c0 ); -PROVIDE ( lld_phy_coded_500k_get = 0x4001d76c ); -PROVIDE ( lld_phy_upd_cfm_handler = 0x400111cc ); -PROVIDE ( lld_rpa_renew_env = 0x3fcefa8c ); -PROVIDE ( lld_scan_end_ind_handler = 0x4002dbc4 ); -PROVIDE ( lld_scan_map_legacy_pdu_to_evt_type = 0x3ff08d64 ); -PROVIDE ( lld_scan_max_aux_dur_tab = 0x3ff08d6c ); -PROVIDE ( lld_scan_req_ind_handler = 0x40028f2c ); -PROVIDE ( lld_sync_env = 0x3fcefaa0 ); -PROVIDE ( lld_sync_max_aux_dur_tab = 0x3ff08d74 ); -PROVIDE ( lld_sync_start_req_handler = 0x4002d4d0 ); -PROVIDE ( lld_test_end_ind_handler = 0x4002ddb8 ); -PROVIDE ( lld_update_rxbuf_handler = 0x4001e69c ); -PROVIDE ( ll_enc_req_handler = 0x4000de54 ); -PROVIDE ( ll_enc_rsp_handler = 0x4000df64 ); -PROVIDE ( ll_feature_req_handler = 0x4000e7d4 ); -PROVIDE ( ll_feature_rsp_handler = 0x4000e884 ); -PROVIDE ( ll_length_req_handler = 0x4000ce78 ); -PROVIDE ( ll_length_rsp_handler = 0x4000cefc ); -PROVIDE ( LLM_AA_CT1 = 0x3ff08d61 ); -PROVIDE ( LLM_AA_CT2 = 0x3ff08d5f ); -PROVIDE ( llm_ch_map_update_ind_handler = 0x4000ab84 ); -PROVIDE ( llm_hci_command_handler_wrapper = 0x4002a8e8 ); -PROVIDE ( ll_min_used_channels_ind_handler = 0x4000aa08 ); -PROVIDE ( llm_scan_period_to_handler = 0x4002cedc ); -PROVIDE ( ll_pause_enc_req_handler = 0x4000dd50 ); -PROVIDE ( ll_pause_enc_rsp_handler = 0x4000dddc ); -PROVIDE ( ll_phy_req_handler = 0x40010c70 ); -PROVIDE ( ll_phy_rsp_handler = 0x40010d50 ); -PROVIDE ( ll_phy_update_ind_handler = 0x40010de8 ); -PROVIDE ( ll_ping_req_handler = 0x4000f0a8 ); -PROVIDE ( ll_ping_rsp_handler = 0x4000f0b8 ); -PROVIDE ( ll_slave_feature_req_handler = 0x4000e82c ); -PROVIDE ( ll_start_enc_req_handler = 0x4000e004 ); -PROVIDE ( ll_start_enc_rsp_handler = 0x4000e070 ); -PROVIDE ( ll_terminate_ind_handler = 0x4000c5b4 ); -PROVIDE ( ll_version_ind_handler = 0x4001150c ); -PROVIDE ( __locale_ctype_ptr = 0x40034050 ); -PROVIDE ( __locale_ctype_ptr_l = 0x40034048 ); -PROVIDE ( __locale_mb_cur_max = 0x40034030 ); -PROVIDE ( _lock_acquire = 0x40054714 ); -PROVIDE ( _lock_acquire_recursive = 0x40054728 ); -PROVIDE ( _lock_close = 0x400546ec ); -PROVIDE ( _lock_close_recursive = 0x40054700 ); -PROVIDE ( _lock_init = 0x400546c4 ); -PROVIDE ( _lock_init_recursive = 0x400546d8 ); -PROVIDE ( _lock_release = 0x40054764 ); -PROVIDE ( _lock_release_recursive = 0x40054778 ); -PROVIDE ( _lock_try_acquire = 0x4005473c ); -PROVIDE ( _lock_try_acquire_recursive = 0x40054750 ); -PROVIDE ( longjmp = 0x400322d0 ); -PROVIDE ( _lseek_r = 0x4005468c ); -PROVIDE ( __lshrdi3 = 0x4005595c ); -PROVIDE ( __ltdf2 = 0x40037e28 ); -PROVIDE ( __ltsf2 = 0x40037ac4 ); -PROVIDE ( mac_addr_to_serial_str_desc = 0x4004b6f8 ); -PROVIDE ( main = 0x40045170 ); -PROVIDE ( malloc = 0x400547a0 ); -PROVIDE ( _malloc_r = 0x400544b4 ); -PROVIDE ( max_data_tx_time = 0x3ff08d34 ); -PROVIDE ( maxSecretKey_256 = 0x3ff081f8 ); -PROVIDE ( _mbtowc_r = 0x40039e9c ); -PROVIDE ( MD5Final = 0x40037740 ); -PROVIDE ( MD5Init = 0x400376a0 ); -PROVIDE ( MD5Update = 0x400376c0 ); -PROVIDE ( md5_vector = 0x400377a8 ); -PROVIDE ( memccpy = 0x40039ee8 ); -PROVIDE ( memchr = 0x40039f5c ); -PROVIDE ( memcmp = 0x40055480 ); -PROVIDE ( memcpy = 0x40055528 ); -PROVIDE ( MemDwnLdStartMsgProc = 0x4004881c ); -PROVIDE ( MemDwnLdStopReqMsgProc = 0x400488b0 ); -PROVIDE ( _memmap_cacheattr_bp_allvalid = 0x22222222 ); -PROVIDE ( _memmap_cacheattr_bp_base = 0x00000220 ); -PROVIDE ( _memmap_cacheattr_bp_strict = 0xfffff22f ); -PROVIDE ( _memmap_cacheattr_bp_trapnull = 0x2222222f ); -PROVIDE ( _memmap_cacheattr_reset = 0x2222211f ); -PROVIDE ( _memmap_cacheattr_unused_mask = 0xfffff00f ); -PROVIDE ( _memmap_cacheattr_wb_allvalid = 0x22222112 ); -PROVIDE ( _memmap_cacheattr_wba_trapnull = 0x2222211f ); -PROVIDE ( _memmap_cacheattr_wb_base = 0x00000110 ); -PROVIDE ( _memmap_cacheattr_wbna_trapnull = 0x2222211f ); -PROVIDE ( _memmap_cacheattr_wb_strict = 0xfffff11f ); -PROVIDE ( _memmap_cacheattr_wb_trapnull = 0x2222211f ); -PROVIDE ( _memmap_cacheattr_wt_allvalid = 0x22222112 ); -PROVIDE ( _memmap_cacheattr_wt_base = 0x00000110 ); -PROVIDE ( _memmap_cacheattr_wt_strict = 0xfffff11f ); -PROVIDE ( _memmap_cacheattr_wt_trapnull = 0x2222211f ); -PROVIDE ( _memmap_vecbase_reset = 0x40000000 ); -PROVIDE ( memmove = 0x40055620 ); -PROVIDE ( MemPacketSendReqMsgProc = 0x4004884c ); -PROVIDE ( memrchr = 0x40039ff8 ); -PROVIDE ( memset = 0x40055710 ); -PROVIDE ( memspi_host_erase_block = 0x4004ca10 ); -PROVIDE ( memspi_host_erase_chip = 0x4004c9c8 ); -PROVIDE ( memspi_host_erase_sector = 0x4004c9e8 ); -PROVIDE ( memspi_host_flush_cache = 0x4004c9ac ); -PROVIDE ( memspi_host_program_page = 0x4004ca38 ); -PROVIDE ( memspi_host_read = 0x4004ca64 ); -PROVIDE ( memspi_host_read_data_slicer = 0x4004cae8 ); -PROVIDE ( memspi_host_read_id_hs = 0x4004c90c ); -PROVIDE ( memspi_host_read_status_hs = 0x4004c974 ); -PROVIDE ( memspi_host_set_write_protect = 0x4004ca90 ); -PROVIDE ( memspi_host_write_data_slicer = 0x4004cab8 ); -PROVIDE ( __moddi3 = 0x40055eb8 ); -PROVIDE ( __modsi3 = 0x400558d0 ); -PROVIDE ( __muldc3 = 0x4003829c ); -PROVIDE ( __muldf3 = 0x40037c24 ); -PROVIDE ( __muldi3 = 0x40055b68 ); -PROVIDE ( __mulsc3 = 0x40037fd8 ); -PROVIDE ( __mulsf3 = 0x40037960 ); -PROVIDE ( __mulsi3 = 0x400558c0 ); -PROVIDE ( multofup = 0x40056664 ); -PROVIDE ( __mulvdi3 = 0x4003c548 ); -PROVIDE ( __mulvsi3 = 0x4003c530 ); -PROVIDE ( must_reset = 0x3fcef34c ); -PROVIDE ( mz_adler32 = 0x400352c4 ); -PROVIDE ( mz_crc32 = 0x4003538c ); -PROVIDE ( mz_free = 0x400353d8 ); -PROVIDE ( __nedf2 = 0x40037d40 ); -PROVIDE ( __negdf2 = 0x40037b38 ); -PROVIDE ( __negdi2 = 0x40055b80 ); -PROVIDE ( __negsf2 = 0x4003b9c8 ); -PROVIDE ( __negvdi2 = 0x4003c664 ); -PROVIDE ( __negvsi2 = 0x4003c644 ); -PROVIDE ( __nesf2 = 0x40037a0c ); -PROVIDE ( _NMIExceptionVector = 0x400002c0 ); -PROVIDE ( _NMIExceptionVector_text_end = 0x400002c3 ); -PROVIDE ( _NMIExceptionVector_text_start = 0x400002c0 ); -PROVIDE ( __nsau_data = 0x3ff07430 ); -PROVIDE ( one_bits = 0x3ff07802 ); -PROVIDE ( open = 0x4003b900 ); -PROVIDE ( _open_r = 0x40054654 ); -PROVIDE ( opi_flash_conf_cmd = 0x400515a0 ); -PROVIDE ( opi_flash_cpu_read = 0x40051b4c ); -PROVIDE ( opi_flash_erase_internal = 0x40051a04 ); -PROVIDE ( opi_flash_page_program_internal = 0x40051c18 ); -PROVIDE ( opi_flash_set_lock_func = 0x40051590 ); -PROVIDE ( _opi_flash_wren = 0x40051844 ); -PROVIDE ( opi_flash_wren = 0x40051874 ); -PROVIDE ( _opi_flash_write = 0x40051c98 ); -PROVIDE ( __packed = 0x3fcef344 ); -PROVIDE ( __paritysi2 = 0x4003c730 ); -PROVIDE ( _PathLocale = 0x3fcefcd0 ); -PROVIDE ( p_ble_util_buf_env = 0x3fcef8e0 ); -PROVIDE ( p_dbg_trc_mem_env = 0x3fcef96c ); -PROVIDE ( phy_get_romfuncs = 0x4003edd0 ); -PROVIDE ( p_lld_env = 0x3fcefa98 ); -PROVIDE ( p_llm_env = 0x3fcefac8 ); -PROVIDE ( __popcountdi2 = 0x4003c6d8 ); -PROVIDE ( __popcountsi2 = 0x4003c6a0 ); -PROVIDE ( __popcount_tab = 0x3ff07430 ); -PROVIDE ( __powidf2 = 0x40037f74 ); -PROVIDE ( __powisf2 = 0x40037f34 ); -PROVIDE ( _Pri_4_HandlerAddress = 0x3fcee37c ); -PROVIDE ( _Pri_5_HandlerAddress = 0x3fcee380 ); -PROVIDE ( _printf_common = 0x40033114 ); -PROVIDE ( _printf_float = 0x400547fc ); -PROVIDE ( _printf_i = 0x40033214 ); -PROVIDE ( print_other_reset_reason = 0x400450e4 ); -PROVIDE ( privacy_en = 0x3fcef3f4 ); -PROVIDE ( pthread_setcancelstate = 0x40054498 ); -PROVIDE ( _putc1 = 0x3fcefcbc ); -PROVIDE ( _putc2 = 0x3fcefcb8 ); -PROVIDE ( qsort = 0x4003239c ); -PROVIDE ( r_Add2SelfBigHex256 = 0x400041e0 ); -PROVIDE ( r_AddBigHex256 = 0x40004128 ); -PROVIDE ( r_AddBigHexModP256 = 0x4000417c ); -PROVIDE ( r_AddP256 = 0x400042c4 ); -PROVIDE ( r_AddPdiv2_256 = 0x400042f4 ); -PROVIDE ( r_aes_alloc = 0x40000e78 ); -PROVIDE ( r_aes_ccm_continue = 0x400005e0 ); -PROVIDE ( r_aes_ccm_process_e = 0x400006f8 ); -PROVIDE ( r_aes_ccm_xor_128_lsb = 0x4000056c ); -PROVIDE ( r_aes_ccm_xor_128_msb = 0x400005a4 ); -PROVIDE ( r_aes_cmac_continue = 0x400009b8 ); -PROVIDE ( r_aes_cmac_start = 0x4000097c ); -PROVIDE ( r_aes_k1_continue = 0x40000b20 ); -PROVIDE ( r_aes_k2_continue = 0x40000ba8 ); -PROVIDE ( r_aes_k3_continue = 0x40000d1c ); -PROVIDE ( r_aes_k4_continue = 0x40000da0 ); -PROVIDE ( r_aes_shift_left_128 = 0x40001000 ); -PROVIDE ( r_aes_start = 0x40000e98 ); -PROVIDE ( r_aes_xor_128 = 0x40000fd8 ); -PROVIDE ( _raise_r = 0x40054570 ); -PROVIDE ( rand = 0x4003a0e4 ); -PROVIDE ( rand_r = 0x4003a170 ); -PROVIDE ( r_assert_err = 0x4000106c ); -PROVIDE ( r_assert_param = 0x400010b8 ); -PROVIDE ( r_assert_warn = 0x40001104 ); -PROVIDE ( r_bigHexInversion256 = 0x40005248 ); -PROVIDE ( r_ble_sw_cca_check_isr = 0x4002ebb8 ); -PROVIDE ( r_ble_util_buf_acl_tx_alloc = 0x400015c4 ); -PROVIDE ( r_ble_util_buf_acl_tx_elt_get = 0x40001668 ); -PROVIDE ( r_ble_util_buf_acl_tx_free = 0x400016a4 ); -PROVIDE ( r_ble_util_buf_acl_tx_free_in_isr = 0x40001734 ); -PROVIDE ( r_ble_util_buf_adv_tx_alloc = 0x400017b4 ); -PROVIDE ( r_ble_util_buf_adv_tx_free = 0x40001828 ); -PROVIDE ( r_ble_util_buf_adv_tx_free_in_isr = 0x40001894 ); -PROVIDE ( r_ble_util_buf_env_deinit = 0x40001260 ); -PROVIDE ( r_ble_util_buf_env_init = 0x40001240 ); -PROVIDE ( r_ble_util_buf_get_rx_buf_nb = 0x40001280 ); -PROVIDE ( r_ble_util_buf_get_rx_buf_size = 0x40001290 ); -PROVIDE ( r_ble_util_buf_llcp_tx_alloc = 0x40001308 ); -PROVIDE ( r_ble_util_buf_llcp_tx_free = 0x40001334 ); -PROVIDE ( r_ble_util_buf_rx_alloc = 0x40001420 ); -PROVIDE ( r_ble_util_buf_rx_alloc_in_isr = 0x40001508 ); -PROVIDE ( r_ble_util_buf_rx_free = 0x40001480 ); -PROVIDE ( r_ble_util_buf_rx_free_in_isr = 0x40001564 ); -PROVIDE ( r_ble_util_buf_set_rx_buf_nb = 0x400012a8 ); -PROVIDE ( r_ble_util_buf_set_rx_buf_size = 0x400012dc ); -PROVIDE ( r_ble_util_data_rx_buf_reset = 0x400013a0 ); -PROVIDE ( r_bt_bb_get_intr_mask = 0x400093e8 ); -PROVIDE ( r_bt_bb_intr_clear = 0x400093d8 ); -PROVIDE ( r_bt_bb_intr_mask_set = 0x400093c4 ); -PROVIDE ( r_bt_bb_isr = 0x4000940c ); -PROVIDE ( r_btdm_isr = 0x4000948c ); -PROVIDE ( r_btdm_task_post = 0x40031f44 ); -PROVIDE ( r_btdm_task_post_from_isr = 0x40031f00 ); -PROVIDE ( r_btdm_task_recycle = 0x40031fc0 ); -PROVIDE ( r_bt_rf_coex_cfg_set = 0x4002e4f4 ); -PROVIDE ( r_bt_rf_coex_conn_dynamic_pti_en_get = 0x4002e57c ); -PROVIDE ( r_bt_rf_coex_conn_phy_coded_data_time_limit_en_get = 0x4002e60c ); -PROVIDE ( r_bt_rf_coex_ext_adv_dynamic_pti_en_get = 0x4002e5d4 ); -PROVIDE ( r_bt_rf_coex_ext_scan_dynamic_pti_en_get = 0x4002e598 ); -PROVIDE ( r_bt_rf_coex_legacy_adv_dynamic_pti_en_get = 0x4002e560 ); -PROVIDE ( r_bt_rf_coex_per_adv_dynamic_pti_en_get = 0x4002e5f0 ); -PROVIDE ( r_bt_rf_coex_pti_table_get = 0x4002e62c ); -PROVIDE ( r_bt_rf_coex_st_param_get = 0x4002e544 ); -PROVIDE ( r_bt_rf_coex_st_param_set = 0x4002e520 ); -PROVIDE ( r_bt_rf_coex_sync_scan_dynamic_pti_en_get = 0x4002e5b4 ); -PROVIDE ( r_bt_rma_apply_rule_cs_fmt = 0x4002e840 ); -PROVIDE ( r_bt_rma_apply_rule_cs_idx = 0x4002e910 ); -PROVIDE ( r_bt_rma_configure = 0x4002e764 ); -PROVIDE ( r_bt_rma_deregister_rule_cs_fmt = 0x4002e7f8 ); -PROVIDE ( r_bt_rma_deregister_rule_cs_idx = 0x4002e8d4 ); -PROVIDE ( r_bt_rma_get_ant_by_act = 0x4002e948 ); -PROVIDE ( r_bt_rma_init = 0x4002e74c ); -PROVIDE ( r_bt_rma_register_rule_cs_fmt = 0x4002e798 ); -PROVIDE ( r_bt_rma_register_rule_cs_idx = 0x4002e884 ); -PROVIDE ( r_bt_rtp_apply_rule_cs_fmt = 0x4002ea50 ); -PROVIDE ( r_bt_rtp_apply_rule_cs_idx = 0x4002eb10 ); -PROVIDE ( r_bt_rtp_deregister_rule_cs_fmt = 0x4002ea08 ); -PROVIDE ( r_bt_rtp_deregister_rule_cs_idx = 0x4002ead4 ); -PROVIDE ( r_bt_rtp_get_txpwr_idx_by_act = 0x4002eb40 ); -PROVIDE ( r_bt_rtp_init = 0x4002e9a0 ); -PROVIDE ( r_bt_rtp_register_rule_cs_fmt = 0x4002e9b4 ); -PROVIDE ( r_bt_rtp_register_rule_cs_idx = 0x4002ea8c ); -PROVIDE ( r_cali_phase_match_p = 0x40001af8 ); -PROVIDE ( r_cmp_abs_time = 0x4000a31c ); -PROVIDE ( r_cmp_dest_id = 0x40009de0 ); -PROVIDE ( r_cmp_timer_id = 0x4000a340 ); -PROVIDE ( r_co_bdaddr_compare = 0x400020ac ); -PROVIDE ( r_co_ble_pkt_dur_in_us = 0x400025e8 ); -PROVIDE ( r_co_bytes_to_string = 0x40002074 ); -PROVIDE ( r_co_list_extract = 0x40001d88 ); -PROVIDE ( r_co_list_extract_after = 0x40001e28 ); -PROVIDE ( r_co_list_extract_sublist = 0x40001eac ); -PROVIDE ( r_co_list_find = 0x40001ef0 ); -PROVIDE ( r_co_list_init = 0x40001c4c ); -PROVIDE ( r_co_list_insert_after = 0x40001fa8 ); -PROVIDE ( r_co_list_insert_before = 0x40001f50 ); -PROVIDE ( r_co_list_merge = 0x40001f0c ); -PROVIDE ( r_co_list_pool_init = 0x40001c60 ); -PROVIDE ( r_co_list_pop_front = 0x40001d64 ); -PROVIDE ( r_co_list_push_back = 0x40001c94 ); -PROVIDE ( r_co_list_push_back_sublist = 0x40001cd8 ); -PROVIDE ( r_co_list_push_front = 0x40001d30 ); -PROVIDE ( r_co_list_size = 0x40002000 ); -PROVIDE ( r_co_nb_good_le_channels = 0x400020d0 ); -PROVIDE ( r_co_util_pack = 0x4000210c ); -PROVIDE ( r_co_util_read_array_size = 0x40002020 ); -PROVIDE ( r_co_util_unpack = 0x4000236c ); -PROVIDE ( RcvMsg = 0x40049c64 ); -PROVIDE ( r_dbg_env_deinit = 0x40002650 ); -PROVIDE ( r_dbg_env_init = 0x4000263c ); -PROVIDE ( r_dbg_esp_vendor_hci_command_handler = 0x40002fcc ); -PROVIDE ( r_dbg_hci_cmd_handler_tab_p_get = 0x40002fa8 ); -PROVIDE ( r_dbg_hci_command_handler = 0x40003010 ); -PROVIDE ( r_dbg_init = 0x40002664 ); -PROVIDE ( r_dbg_msg_handler_tab_p_get = 0x40003088 ); -PROVIDE ( r_dbg_platform_reset_complete = 0x400026a8 ); -PROVIDE ( r_dbg_register_esp_vendor_cmd_handler = 0x40002fb8 ); -PROVIDE ( r_dbg_sch_plan_move = 0x40002f98 ); -PROVIDE ( r_dbg_swdiag_init = 0x4000276c ); -PROVIDE ( r_dbg_swdiag_read = 0x400027a4 ); -PROVIDE ( r_dbg_swdiag_update = 0x400026f8 ); -PROVIDE ( r_dbg_swdiag_write = 0x400027cc ); -PROVIDE ( r_dbg_trc_cfg_received = 0x4000405c ); -PROVIDE ( r_dbg_trc_ke_evt_cbk = 0x40003248 ); -PROVIDE ( r_dbg_trc_mem_alloc = 0x400030e4 ); -PROVIDE ( r_dbg_trc_mem_dealloc = 0x400031dc ); -PROVIDE ( r_dbg_trc_mem_read = 0x4000318c ); -PROVIDE ( r_dbg_trc_mem_writing_allowed = 0x40003094 ); -PROVIDE ( r_dbg_trc_pay_buff_get = 0x400040d0 ); -PROVIDE ( r_dbg_trc_req_acl_rx_pdu = 0x40003dac ); -PROVIDE ( r_dbg_trc_req_acl_tx_pdu = 0x40003e08 ); -PROVIDE ( r_dbg_trc_req_adv_rx_pdu = 0x40003974 ); -PROVIDE ( r_dbg_trc_req_adv_tx_pdu = 0x400039fc ); -PROVIDE ( r_dbg_trc_req_cs_ble = 0x400035c4 ); -PROVIDE ( r_dbg_trc_req_custom = 0x40003ed0 ); -PROVIDE ( r_dbg_trc_req_deep_sleep = 0x400033f8 ); -PROVIDE ( r_dbg_trc_req_et_prog = 0x400034b0 ); -PROVIDE ( r_dbg_trc_req_evt_cnt = 0x40003524 ); -PROVIDE ( r_dbg_trc_req_frm_cmp = 0x40003568 ); -PROVIDE ( r_dbg_trc_req_hci_cmd = 0x400038c8 ); -PROVIDE ( r_dbg_trc_req_hci_evt = 0x4000391c ); -PROVIDE ( r_dbg_trc_req_init_rx_pdu = 0x40003ae0 ); -PROVIDE ( r_dbg_trc_req_init_tx_pdu = 0x40003b74 ); -PROVIDE ( r_dbg_trc_req_ke_evt = 0x40003360 ); -PROVIDE ( r_dbg_trc_req_ke_msg_handled = 0x400032ac ); -PROVIDE ( r_dbg_trc_req_ke_msg_send = 0x40003268 ); -PROVIDE ( r_dbg_trc_req_ke_tmr = 0x40003304 ); -PROVIDE ( r_dbg_trc_req_l2cap = 0x400036b0 ); -PROVIDE ( r_dbg_trc_req_l2cap_ack = 0x40003710 ); -PROVIDE ( r_dbg_trc_req_llcp = 0x40003664 ); -PROVIDE ( r_dbg_trc_req_llc_state_trans = 0x40003878 ); -PROVIDE ( r_dbg_trc_req_mem = 0x4000339c ); -PROVIDE ( r_dbg_trc_req_rx_desc = 0x40003610 ); -PROVIDE ( r_dbg_trc_req_scan_rx_pdu = 0x40003c0c ); -PROVIDE ( r_dbg_trc_req_scan_tx_pdu = 0x40003cc8 ); -PROVIDE ( r_dbg_trc_req_sch_arb = 0x400037bc ); -PROVIDE ( r_dbg_trc_req_sch_arb_insert = 0x40003754 ); -PROVIDE ( r_dbg_trc_req_sch_arb_shift = 0x40003800 ); -PROVIDE ( r_dbg_trc_req_sw_ass = 0x40003428 ); -PROVIDE ( r_dbg_trc_tx_done = 0x40004014 ); -PROVIDE ( r_dbg_trc_tx_start = 0x40003fb8 ); -PROVIDE ( r_dbg_trc_tx_trigger = 0x40004040 ); -PROVIDE ( r_dl_upd_proc_start = 0x4000d160 ); -PROVIDE ( r_dump_data = 0x40001144 ); -PROVIDE ( read = 0x4003b94c ); -PROVIDE ( _read_r = 0x400546a8 ); -PROVIDE ( realloc = 0x400547cc ); -PROVIDE ( _realloc_r = 0x400544e0 ); -PROVIDE ( r_ecc_abort_key256_generation = 0x40005fec ); -PROVIDE ( r_ecc_generate_key256 = 0x40005d18 ); -PROVIDE ( r_ecc_gen_new_public_key = 0x4000604c ); -PROVIDE ( r_ecc_gen_new_secret_key = 0x40006070 ); -PROVIDE ( r_ecc_get_debug_Keys = 0x4000618c ); -PROVIDE ( r_ecc_init = 0x40005ca4 ); -PROVIDE ( r_ecc_is_valid_point = 0x40005930 ); -PROVIDE ( r_ecc_multiplication_event_handler = 0x40005a64 ); -PROVIDE ( r_ecc_point_multiplication_win_256 = 0x400054dc ); -PROVIDE ( recv_packet = 0x40049b3c ); -PROVIDE ( r_emi_alloc_em_mapping_by_offset = 0x40006534 ); -PROVIDE ( r_emi_base_reg_lut_show = 0x400062b8 ); -PROVIDE ( r_emi_em_base_reg_show = 0x40006258 ); -PROVIDE ( r_emi_free_em_mapping_by_offset = 0x400066f0 ); -PROVIDE ( r_emi_get_em_mapping_idx_by_offset = 0x400063d8 ); -PROVIDE ( r_emi_get_mem_addr_by_offset = 0x40006300 ); -PROVIDE ( r_emi_overwrite_em_mapping_by_offset = 0x40006424 ); -PROVIDE ( _rename_r = 0x40054528 ); -PROVIDE ( _ResetHandler = 0x40000454 ); -PROVIDE ( _ResetVector = 0x40000400 ); -PROVIDE ( _ResetVector_literal_end = 0x4000056c ); -PROVIDE ( _ResetVector_literal_start = 0x4000056c ); -PROVIDE ( _ResetVector_text_end = 0x40000569 ); -PROVIDE ( _ResetVector_text_start = 0x40000400 ); -PROVIDE ( r_flash_env_deinit = 0x4000696c ); -PROVIDE ( r_flash_env_init = 0x4000693c ); -PROVIDE ( r_flash_erase = 0x40006a34 ); -PROVIDE ( r_flash_identify = 0x400069d4 ); -PROVIDE ( r_flash_init = 0x40006990 ); -PROVIDE ( r_flash_read = 0x40006a9c ); -PROVIDE ( r_flash_unlock = 0x40006928 ); -PROVIDE ( r_flash_unlocksector = 0x40006920 ); -PROVIDE ( r_flash_write = 0x40006a68 ); -PROVIDE ( r_flash_writebyte = 0x40006904 ); -PROVIDE ( r_get_stack_usage = 0x4000118c ); -PROVIDE ( r_GF_Jacobian_Point_Addition256 = 0x400049d0 ); -PROVIDE ( r_GF_Jacobian_Point_Double256 = 0x40004f54 ); -PROVIDE ( r_GF_Point_Jacobian_To_Affine256 = 0x400051b0 ); -PROVIDE ( r_h4tl_acl_hdr_rx_evt_handler = 0x40007074 ); -PROVIDE ( r_h4tl_cmd_hdr_rx_evt_handler = 0x40006fb0 ); -PROVIDE ( r_h4tl_cmd_pld_rx_evt_handler = 0x4000702c ); -PROVIDE ( r_h4tl_eif_io_event_post = 0x40006234 ); -PROVIDE ( r_h4tl_eif_p = 0x3fcef474 ); -PROVIDE ( r_h4tl_eif_register = 0x400061dc ); -PROVIDE ( r_h4tl_init = 0x400070f8 ); -PROVIDE ( r_h4tl_out_of_sync = 0x40006bac ); -PROVIDE ( r_h4tl_out_of_sync_check = 0x40006c04 ); -PROVIDE ( r_h4tl_read_hdr = 0x40006b3c ); -PROVIDE ( r_h4tl_read_next_out_of_sync = 0x40006b88 ); -PROVIDE ( r_h4tl_read_payl = 0x40006b68 ); -PROVIDE ( r_h4tl_read_start = 0x40006b10 ); -PROVIDE ( r_h4tl_rx_acl_hdr_extract = 0x40006aec ); -PROVIDE ( r_h4tl_rx_cmd_hdr_extract = 0x40006ad0 ); -PROVIDE ( r_h4tl_rx_done = 0x40006d84 ); -PROVIDE ( r_h4tl_start = 0x40007200 ); -PROVIDE ( r_h4tl_stop = 0x40007210 ); -PROVIDE ( r_h4tl_tx_done = 0x40006cb0 ); -PROVIDE ( r_h4tl_tx_evt_handler = 0x40006cec ); -PROVIDE ( r_h4tl_write = 0x40007170 ); -PROVIDE ( r_hci_acl_tx_data_alloc = 0x400092a8 ); -PROVIDE ( r_hci_acl_tx_data_received = 0x40009344 ); -PROVIDE ( r_hci_basic_cmd_send_2_controller = 0x400082b0 ); -PROVIDE ( r_hci_ble_adv_report_filter_check = 0x40008420 ); -PROVIDE ( r_hci_ble_adv_report_tx_check = 0x4000866c ); -PROVIDE ( r_hci_ble_conhdl_register = 0x400082dc ); -PROVIDE ( r_hci_ble_conhdl_unregister = 0x40008334 ); -PROVIDE ( r_hci_build_acl_data = 0x40008b60 ); -PROVIDE ( r_hci_build_cc_evt = 0x40008854 ); -PROVIDE ( r_hci_build_cs_evt = 0x40008820 ); -PROVIDE ( r_hci_build_dbg_evt = 0x400089f4 ); -PROVIDE ( r_hci_build_evt = 0x40008918 ); -PROVIDE ( r_hci_build_le_evt = 0x40008aa4 ); -PROVIDE ( r_hci_cmd_get_max_param_size = 0x40009030 ); -PROVIDE ( r_hci_cmd_received = 0x40009054 ); -PROVIDE ( r_hci_cmd_reject = 0x400086f8 ); -PROVIDE ( r_hci_evt_mask_check = 0x40007f28 ); -PROVIDE ( r_hci_evt_mask_set = 0x40008394 ); -PROVIDE ( r_hci_fc_acl_buf_size_set = 0x40007260 ); -PROVIDE ( r_hci_fc_acl_en = 0x40007280 ); -PROVIDE ( r_hci_fc_acl_packet_sent = 0x400072c0 ); -PROVIDE ( r_hci_fc_check_host_available_nb_acl_packets = 0x400072fc ); -PROVIDE ( r_hci_fc_host_nb_acl_pkts_complete = 0x400072d8 ); -PROVIDE ( r_hci_fc_init = 0x4000724c ); -PROVIDE ( r_hci_look_for_cmd_desc = 0x40007e1c ); -PROVIDE ( r_hci_look_for_dbg_evt_desc = 0x40007ec8 ); -PROVIDE ( r_hci_look_for_evt_desc = 0x40007e9c ); -PROVIDE ( r_hci_look_for_le_evt_desc = 0x40007ee0 ); -PROVIDE ( r_hci_look_for_le_evt_desc_esp = 0x40007f0c ); -PROVIDE ( r_hci_pack_bytes = 0x40007de4 ); -PROVIDE ( r_hci_register_vendor_desc_tab = 0x40007dd0 ); -PROVIDE ( r_hci_send_2_controller = 0x400081d0 ); -PROVIDE ( r_hci_send_2_host = 0x40007fe4 ); -PROVIDE ( r_hci_tl_c2h_data_flow_on = 0x40008dfc ); -PROVIDE ( r_hci_tl_cmd_hdr_rx_evt_handler = 0x40008ec8 ); -PROVIDE ( r_hci_tl_cmd_pld_rx_evt_handler = 0x40008f1c ); -PROVIDE ( r_hci_tl_get_pkt = 0x40008ebc ); -PROVIDE ( r_hci_tl_hci_pkt_handler = 0x40008f74 ); -PROVIDE ( r_hci_tl_hci_tx_done_evt_handler = 0x40009010 ); -PROVIDE ( r_hci_tl_inc_nb_h2c_cmd_pkts = 0x40008e6c ); -PROVIDE ( r_hci_tl_save_pkt = 0x40008e88 ); -PROVIDE ( r_hci_tl_send = 0x40008e14 ); -PROVIDE ( r_hci_tx_done = 0x40008d1c ); -PROVIDE ( r_hci_tx_start = 0x40008b90 ); -PROVIDE ( r_hci_tx_trigger = 0x40008de0 ); -PROVIDE ( r_hli_funcs_p = 0x3fcef4c8 ); -PROVIDE ( r_ip_funcs_p = 0x3fcef4cc ); -PROVIDE ( r_isValidSecretKey_256 = 0x400040dc ); -PROVIDE ( r_ke_check_malloc = 0x40009740 ); -PROVIDE ( r_ke_event_callback_set = 0x400094d4 ); -PROVIDE ( r_ke_event_clear = 0x40009568 ); -PROVIDE ( r_ke_event_flush = 0x4000960c ); -PROVIDE ( r_ke_event_get = 0x400095b4 ); -PROVIDE ( r_ke_event_get_all = 0x40009600 ); -PROVIDE ( r_ke_event_init = 0x400094bc ); -PROVIDE ( r_ke_event_schedule = 0x4000961c ); -PROVIDE ( r_ke_event_set = 0x4000950c ); -PROVIDE ( r_ke_flush = 0x40009d4c ); -PROVIDE ( r_ke_free = 0x400099b4 ); -PROVIDE ( r_ke_get_max_mem_usage = 0x40009b9c ); -PROVIDE ( r_ke_get_mem_usage = 0x40009b74 ); -PROVIDE ( r_ke_handler_search = 0x40009e54 ); -PROVIDE ( r_ke_init = 0x40009cf4 ); -PROVIDE ( r_ke_is_free = 0x40009b58 ); -PROVIDE ( r_ke_malloc = 0x40009808 ); -PROVIDE ( r_ke_mem_init = 0x400096b8 ); -PROVIDE ( r_ke_mem_is_empty = 0x400096f0 ); -PROVIDE ( r_ke_msg_alloc = 0x40009bb4 ); -PROVIDE ( r_ke_msg_dest_id_get = 0x40009cbc ); -PROVIDE ( r_ke_msg_discard = 0x4000a258 ); -PROVIDE ( r_ke_msg_forward = 0x40009c6c ); -PROVIDE ( r_ke_msg_forward_new_id = 0x40009c88 ); -PROVIDE ( r_ke_msg_free = 0x40009ca8 ); -PROVIDE ( r_ke_msg_in_queue = 0x40009cd4 ); -PROVIDE ( r_ke_msg_save = 0x4000a260 ); -PROVIDE ( r_ke_msg_send = 0x40009c08 ); -PROVIDE ( r_ke_msg_send_basic = 0x40009c48 ); -PROVIDE ( r_ke_msg_src_id_get = 0x40009cc8 ); -PROVIDE ( r_ke_queue_extract = 0x400320d8 ); -PROVIDE ( r_ke_queue_insert = 0x40032128 ); -PROVIDE ( r_ke_sleep_check = 0x40009da8 ); -PROVIDE ( r_ke_state_get = 0x4000a1d8 ); -PROVIDE ( r_ke_state_set = 0x4000a134 ); -PROVIDE ( r_ke_stats_get = 0x40009dc0 ); -PROVIDE ( r_ke_task_check = 0x4000a2ac ); -PROVIDE ( r_ke_task_create = 0x4000a0b4 ); -PROVIDE ( r_ke_task_delete = 0x4000a100 ); -PROVIDE ( r_ke_task_handler_get = 0x40009ec0 ); -PROVIDE ( r_ke_task_init = 0x4000a090 ); -PROVIDE ( r_ke_task_msg_flush = 0x4000a268 ); -PROVIDE ( r_ke_task_saved_update = 0x40009df4 ); -PROVIDE ( r_ke_task_schedule = 0x40009f34 ); -PROVIDE ( r_ke_time = 0x4000a458 ); -PROVIDE ( r_ke_time_cmp = 0x4000a2e0 ); -PROVIDE ( r_ke_time_past = 0x4000a300 ); -PROVIDE ( r_ke_timer_active = 0x4000a600 ); -PROVIDE ( r_ke_timer_adjust_all = 0x4000a628 ); -PROVIDE ( r_ke_timer_clear = 0x4000a574 ); -PROVIDE ( r_ke_timer_init = 0x4000a440 ); -PROVIDE ( r_ke_timer_schedule = 0x4000a360 ); -PROVIDE ( r_ke_timer_set = 0x4000a490 ); -PROVIDE ( r_led_init = 0x40032160 ); -PROVIDE ( r_led_set_all = 0x40032168 ); -PROVIDE ( r_llc_aes_res_cb = 0x4000d1e8 ); -PROVIDE ( r_llc_ch_map_up_proc_err_cb = 0x4000a8c0 ); -PROVIDE ( r_llc_cleanup = 0x4000fa20 ); -PROVIDE ( r_llc_cmd_cmp_send = 0x4000ec9c ); -PROVIDE ( r_llc_cmd_stat_send = 0x4000ecd0 ); -PROVIDE ( r_llc_con_move_cbk = 0x4000c1e8 ); -PROVIDE ( r_llc_con_plan_set_update = 0x4000b534 ); -PROVIDE ( r_llc_con_upd_param_in_range = 0x4000ac70 ); -PROVIDE ( r_llc_disconnect = 0x4000c8fc ); -PROVIDE ( r_llc_disconnect_end = 0x4000c40c ); -PROVIDE ( r_llc_disconnect_proc_continue = 0x4000c46c ); -PROVIDE ( r_llc_disconnect_proc_err_cb = 0x4000c57c ); -PROVIDE ( r_llc_dl_chg_check = 0x40010b7c ); -PROVIDE ( r_llc_dle_proc_err_cb = 0x4000cdec ); -PROVIDE ( r_llc_feats_exch_proc_err_cb = 0x4000e758 ); -PROVIDE ( r_llc_hci_cmd_handler_tab_p_get = 0x4000ed00 ); -PROVIDE ( r_llc_hci_command_handler = 0x4000ed08 ); -PROVIDE ( r_llc_hci_con_param_req_evt_send = 0x4000b4e4 ); -PROVIDE ( r_llc_hci_con_upd_info_send = 0x4000b674 ); -PROVIDE ( r_llc_hci_disconnected_dis = 0x4000c808 ); -PROVIDE ( r_llc_hci_dl_upd_info_send = 0x4000c9f4 ); -PROVIDE ( r_llc_hci_enc_evt_send = 0x4000dc08 ); -PROVIDE ( r_llc_hci_feats_info_send = 0x4000e624 ); -PROVIDE ( r_llc_hci_le_phy_upd_cmp_evt_send = 0x40010a3c ); -PROVIDE ( r_llc_hci_ltk_request_evt_send = 0x4000dbc4 ); -PROVIDE ( r_llc_hci_nb_cmp_pkts_evt_send = 0x4000ec64 ); -PROVIDE ( r_llc_hci_version_info_send = 0x40011300 ); -PROVIDE ( r_llc_init_term_proc = 0x4000c940 ); -PROVIDE ( r_llc_iv_skd_rand_gen = 0x4000d228 ); -PROVIDE ( r_llc_le_ping_proc_continue = 0x4000efe4 ); -PROVIDE ( r_llc_le_ping_proc_err_cb = 0x4000ef6c ); -PROVIDE ( r_llc_le_ping_restart = 0x4000f314 ); -PROVIDE ( r_llc_le_ping_set = 0x4000f358 ); -PROVIDE ( r_llc_llcp_send = 0x4000f4f8 ); -PROVIDE ( r_llc_llcp_state_set = 0x4000fd84 ); -PROVIDE ( r_llc_llcp_trans_timer_set = 0x4000f9a8 ); -PROVIDE ( r_llc_llcp_tx_check = 0x4000f5bc ); -PROVIDE ( r_llc_ll_pause_enc_rsp_ack_handler = 0x4000db34 ); -PROVIDE ( r_llc_ll_reject_ind_ack_handler = 0x4000db94 ); -PROVIDE ( r_llc_ll_reject_ind_pdu_send = 0x4000f494 ); -PROVIDE ( r_llc_ll_start_enc_rsp_ack_handler = 0x4000db64 ); -PROVIDE ( r_llc_ll_terminate_ind_ack = 0x4000c564 ); -PROVIDE ( r_llc_ll_unknown_ind_handler = 0x4000f484 ); -PROVIDE ( r_llc_loc_ch_map_proc_continue = 0x4000a748 ); -PROVIDE ( r_llc_loc_con_upd_proc_continue = 0x4000af0c ); -PROVIDE ( r_llc_loc_con_upd_proc_err_cb = 0x4000b770 ); -PROVIDE ( r_llc_loc_dl_upd_proc_continue = 0x4000ca4c ); -PROVIDE ( r_llc_loc_encrypt_proc_continue = 0x4000d38c ); -PROVIDE ( r_llc_loc_encrypt_proc_err_cb = 0x4000dc58 ); -PROVIDE ( r_llc_loc_feats_exch_proc_continue = 0x4000e66c ); -PROVIDE ( r_llc_loc_phy_upd_proc_continue = 0x400105b0 ); -PROVIDE ( r_llc_loc_phy_upd_proc_err_cb = 0x40010ab8 ); -PROVIDE ( r_llc_msg_handler_tab_p_get = 0x400112c4 ); -PROVIDE ( r_llcp_pdu_handler_tab_p_get = 0x4000f458 ); -PROVIDE ( r_llc_pref_param_compute = 0x4000acf4 ); -PROVIDE ( r_llc_proc_collision_check = 0x4001022c ); -PROVIDE ( r_llc_proc_err_ind = 0x40010080 ); -PROVIDE ( r_llc_proc_get = 0x4001004c ); -PROVIDE ( r_llc_proc_id_get = 0x4000ffe8 ); -PROVIDE ( r_llc_proc_reg = 0x4000fea4 ); -PROVIDE ( r_llc_proc_state_get = 0x40010020 ); -PROVIDE ( r_llc_proc_state_set = 0x40010028 ); -PROVIDE ( r_llc_proc_timer_pause_set = 0x4001017c ); -PROVIDE ( r_llc_proc_timer_set = 0x400100c4 ); -PROVIDE ( r_llc_proc_unreg = 0x4000ff44 ); -PROVIDE ( r_llc_rem_ch_map_proc_continue = 0x4000a64c ); -PROVIDE ( r_llc_rem_con_upd_proc_continue = 0x4000b288 ); -PROVIDE ( r_llc_rem_con_upd_proc_err_cb = 0x4000b810 ); -PROVIDE ( r_llc_rem_dl_upd_proc = 0x4000cc74 ); -PROVIDE ( r_llc_rem_encrypt_proc_continue = 0x4000d734 ); -PROVIDE ( r_llc_rem_encrypt_proc_err_cb = 0x4000dcf4 ); -PROVIDE ( r_llc_rem_phy_upd_proc_continue = 0x400102c4 ); -PROVIDE ( r_llc_rem_phy_upd_proc_err_cb = 0x40010b44 ); -PROVIDE ( r_llc_role_get = 0x4000fd48 ); -PROVIDE ( r_llc_sk_gen = 0x4000d248 ); -PROVIDE ( r_llc_start = 0x4000fb10 ); -PROVIDE ( r_llc_stop = 0x4000fab4 ); -PROVIDE ( r_llc_ver_exch_loc_proc_continue = 0x4001134c ); -PROVIDE ( r_llc_ver_proc_err_cb = 0x40011444 ); -PROVIDE ( r_lld_aa_gen = 0x4001e1c4 ); -PROVIDE ( r_lld_adv_adv_data_set = 0x4001349c ); -PROVIDE ( r_lld_adv_adv_data_update = 0x40016978 ); -PROVIDE ( r_lld_adv_aux_ch_idx_set = 0x400124dc ); -PROVIDE ( r_lld_adv_aux_evt_canceled_cbk = 0x400148f8 ); -PROVIDE ( r_lld_adv_aux_evt_start_cbk = 0x400144ac ); -PROVIDE ( r_lld_adv_coex_check_ext_adv_synced = 0x40016c7c ); -PROVIDE ( r_lld_adv_coex_env_reset = 0x4001163c ); -PROVIDE ( r_lld_adv_duration_update = 0x40016a80 ); -PROVIDE ( r_lld_adv_dynamic_pti_process = 0x400116bc ); -PROVIDE ( r_lld_adv_end = 0x400121e0 ); -PROVIDE ( r_lld_adv_evt_canceled_cbk = 0x4001479c ); -PROVIDE ( r_lld_adv_evt_start_cbk = 0x4001411c ); -PROVIDE ( r_lld_adv_ext_chain_construct = 0x40012c7c ); -PROVIDE ( r_lld_adv_ext_pkt_prepare = 0x40012688 ); -PROVIDE ( r_lld_adv_frm_cbk = 0x40015060 ); -PROVIDE ( r_lld_adv_frm_isr = 0x40014aac ); -PROVIDE ( r_lld_adv_frm_skip_isr = 0x40014ea8 ); -PROVIDE ( r_lld_adv_init = 0x400150b0 ); -PROVIDE ( r_lld_adv_pkt_rx = 0x40014040 ); -PROVIDE ( r_lld_adv_pkt_rx_connect_ind = 0x400139ac ); -PROVIDE ( r_lld_adv_pkt_rx_send_scan_req_evt = 0x40013ee8 ); -PROVIDE ( r_lld_adv_rand_addr_update = 0x40016af0 ); -PROVIDE ( r_lld_adv_restart = 0x40016bb4 ); -PROVIDE ( r_lld_adv_scan_rsp_data_set = 0x40013730 ); -PROVIDE ( r_lld_adv_scan_rsp_data_update = 0x400169fc ); -PROVIDE ( r_lld_adv_set_tx_power = 0x4001217c ); -PROVIDE ( r_lld_adv_start = 0x4001519c ); -PROVIDE ( r_lld_adv_stop = 0x40016890 ); -PROVIDE ( r_lld_adv_sync_info_set = 0x400122a4 ); -PROVIDE ( r_lld_adv_sync_info_update = 0x40016c2c ); -PROVIDE ( r_lld_calc_aux_rx = 0x4001e27c ); -PROVIDE ( r_lld_cca_alloc = 0x4001e944 ); -PROVIDE ( r_lld_cca_data_reset = 0x4001ea04 ); -PROVIDE ( r_lld_cca_free = 0x4001e9a0 ); -PROVIDE ( r_lld_channel_assess = 0x4001d704 ); -PROVIDE ( r_lld_ch_assess_data_get = 0x4001d830 ); -PROVIDE ( r_lld_ch_idx_get = 0x4001e454 ); -PROVIDE ( r_lld_ch_map_set = 0x4001e408 ); -PROVIDE ( r_lld_con_activity_act_offset_compute = 0x4001a3c0 ); -PROVIDE ( r_lld_con_activity_offset_compute = 0x4001a4b0 ); -PROVIDE ( r_lld_con_ch_map_update = 0x4001a18c ); -PROVIDE ( r_lld_con_cleanup = 0x40017368 ); -PROVIDE ( r_lld_con_current_tx_power_get = 0x4001a77c ); -PROVIDE ( r_lld_con_data_flow_set = 0x40019fe4 ); -PROVIDE ( r_lld_con_data_len_update = 0x4001a1e8 ); -PROVIDE ( r_lld_con_data_tx = 0x40019e34 ); -PROVIDE ( r_lld_con_enc_key_load = 0x4001a654 ); -PROVIDE ( r_lld_con_event_counter_get = 0x4001a38c ); -PROVIDE ( r_lld_con_evt_canceled_cbk = 0x40018c5c ); -PROVIDE ( r_lld_con_evt_duration_min_get = 0x40017330 ); -PROVIDE ( r_lld_con_evt_max_eff_time_cal = 0x4001702c ); -PROVIDE ( r_lld_con_evt_sd_evt_time_get = 0x4001aa70 ); -PROVIDE ( r_lld_con_evt_start_cbk = 0x400187d0 ); -PROVIDE ( r_lld_con_evt_time_update = 0x40017060 ); -PROVIDE ( r_lld_con_free_all_tx_buf = 0x4001a9ac ); -PROVIDE ( r_lld_con_frm_cbk = 0x40019160 ); -PROVIDE ( r_lld_con_frm_isr = 0x40018d40 ); -PROVIDE ( r_lld_con_frm_skip_isr = 0x40019050 ); -PROVIDE ( r_lld_con_init = 0x4001a95c ); -PROVIDE ( r_lld_con_llcp_tx = 0x40019c74 ); -PROVIDE ( r_lld_con_max_lat_calc = 0x40016f04 ); -PROVIDE ( r_lld_conn_dynamic_pti_process = 0x40016cb0 ); -PROVIDE ( r_lld_con_offset_get = 0x4001a830 ); -PROVIDE ( r_lld_con_param_update = 0x4001a0dc ); -PROVIDE ( r_lld_con_phys_update = 0x4001a24c ); -PROVIDE ( r_lld_con_pref_slave_evt_dur_set = 0x4001a8f4 ); -PROVIDE ( r_lld_con_pref_slave_latency_set = 0x4001a8a4 ); -PROVIDE ( r_lld_con_rssi_get = 0x4001a7ec ); -PROVIDE ( r_lld_con_rx = 0x40017de4 ); -PROVIDE ( r_lld_con_rx_channel_assess = 0x4001798c ); -PROVIDE ( r_lld_con_rx_enc = 0x4001a5e8 ); -PROVIDE ( r_lld_con_rx_isr = 0x40018f14 ); -PROVIDE ( r_lld_con_rx_link_info_check = 0x40017bcc ); -PROVIDE ( r_lld_con_rx_llcp_check = 0x40017a0c ); -PROVIDE ( r_lld_con_rx_sync_time_update = 0x40017c94 ); -PROVIDE ( r_lld_con_sched = 0x400175c8 ); -PROVIDE ( r_lld_con_set_tx_power = 0x40016e94 ); -PROVIDE ( r_lld_con_start = 0x400191f8 ); -PROVIDE ( r_lld_con_stop = 0x40019be8 ); -PROVIDE ( r_lld_continue_scan_rx_isr_end_process = 0x40021060 ); -PROVIDE ( r_lld_con_tx = 0x40017f50 ); -PROVIDE ( r_lld_con_tx_enc = 0x4001a578 ); -PROVIDE ( r_lld_con_tx_isr = 0x40018fa4 ); -PROVIDE ( r_lld_con_tx_len_update = 0x40016f98 ); -PROVIDE ( r_lld_con_tx_len_update_for_intv = 0x4001a2d4 ); -PROVIDE ( r_lld_con_tx_len_update_for_rate = 0x4001a31c ); -PROVIDE ( r_lld_con_tx_prog = 0x400182d0 ); -PROVIDE ( r_lld_ext_scan_dynamic_pti_process = 0x40020bb4 ); -PROVIDE ( r_lld_hw_cca_end_isr = 0x4001eb90 ); -PROVIDE ( r_lld_hw_cca_evt_handler = 0x4001eb44 ); -PROVIDE ( r_lld_hw_cca_isr = 0x4001eb64 ); -PROVIDE ( r_lld_init_cal_anchor_point = 0x4001b6d4 ); -PROVIDE ( r_lld_init_compute_winoffset = 0x4001ac0c ); -PROVIDE ( r_lld_init_connect_req_pack = 0x4001c134 ); -PROVIDE ( r_lld_init_end = 0x4001aafc ); -PROVIDE ( r_lld_init_evt_canceled_cbk = 0x4001c010 ); -PROVIDE ( r_lld_init_evt_start_cbk = 0x4001bda4 ); -PROVIDE ( r_lld_init_frm_cbk = 0x4001bcc4 ); -PROVIDE ( r_lld_init_frm_eof_isr = 0x4001ba0c ); -PROVIDE ( r_lld_init_frm_skip_isr = 0x4001bb84 ); -PROVIDE ( r_lld_init_init = 0x4001c1c0 ); -PROVIDE ( r_lld_init_process_pkt_rx = 0x4001b51c ); -PROVIDE ( r_lld_init_process_pkt_rx_adv_ext_ind = 0x4001b1b4 ); -PROVIDE ( r_lld_init_process_pkt_rx_adv_ind_or_direct_ind = 0x4001aff4 ); -PROVIDE ( r_lld_init_process_pkt_rx_aux_connect_rsp = 0x4001b33c ); -PROVIDE ( r_lld_init_process_pkt_tx = 0x4001b7b0 ); -PROVIDE ( r_lld_init_process_pkt_tx_cal_con_timestamp = 0x4001b6e4 ); -PROVIDE ( r_lld_init_sched = 0x4001ac68 ); -PROVIDE ( r_lld_init_set_tx_power = 0x4001aab4 ); -PROVIDE ( r_lld_init_start = 0x4001c270 ); -PROVIDE ( r_lld_init_stop = 0x4001d0d0 ); -PROVIDE ( r_lld_instant_proc_end = 0x400174f8 ); -PROVIDE ( r_lld_llcp_rx_ind_handler = 0x4000f6d0 ); -PROVIDE ( r_lld_per_adv_chain_construct = 0x4001f50c ); -PROVIDE ( r_lld_per_adv_ch_map_update = 0x40020b48 ); -PROVIDE ( r_lld_per_adv_cleanup = 0x4001ef68 ); -PROVIDE ( r_lld_per_adv_coex_env_reset = 0x4001eb9c ); -PROVIDE ( r_lld_per_adv_data_set = 0x4001f730 ); -PROVIDE ( r_lld_per_adv_data_update = 0x40020a2c ); -PROVIDE ( r_lld_per_adv_dynamic_pti_process = 0x4001ebd4 ); -PROVIDE ( r_lld_per_adv_evt_canceled_cbk = 0x4001fbf4 ); -PROVIDE ( r_lld_per_adv_evt_start_cbk = 0x4001f7b4 ); -PROVIDE ( r_lld_per_adv_ext_pkt_prepare = 0x4001f0a0 ); -PROVIDE ( r_lld_per_adv_frm_cbk = 0x40020094 ); -PROVIDE ( r_lld_per_adv_frm_isr = 0x4001fca0 ); -PROVIDE ( r_lld_per_adv_frm_skip_isr = 0x4001ff88 ); -PROVIDE ( r_lld_per_adv_init = 0x400200e4 ); -PROVIDE ( r_lld_per_adv_init_info_get = 0x40020ae8 ); -PROVIDE ( r_lld_per_adv_list_add = 0x4001db28 ); -PROVIDE ( r_lld_per_adv_list_rem = 0x4001dc8c ); -PROVIDE ( r_lld_per_adv_sched = 0x4001eff0 ); -PROVIDE ( r_lld_per_adv_set_tx_power = 0x4001ef8c ); -PROVIDE ( r_lld_per_adv_start = 0x40020164 ); -PROVIDE ( r_lld_per_adv_stop = 0x4002096c ); -PROVIDE ( r_lld_per_adv_sync_info_get = 0x40020a94 ); -PROVIDE ( r_lld_process_cca_data = 0x4001ea5c ); -PROVIDE ( r_lld_ral_search = 0x4001d160 ); -PROVIDE ( r_lld_read_clock = 0x4001d81c ); -PROVIDE ( r_lld_reg_rd = 0x4001e188 ); -PROVIDE ( r_lld_reg_wr = 0x4001e1a0 ); -PROVIDE ( r_lld_reset_reg = 0x4001d7b0 ); -PROVIDE ( r_lld_res_list_add = 0x4001ddc8 ); -PROVIDE ( r_lld_res_list_clear = 0x4001dd70 ); -PROVIDE ( r_lld_res_list_is_empty = 0x4001e154 ); -PROVIDE ( r_lld_res_list_local_rpa_get = 0x4001e0ec ); -PROVIDE ( r_lld_res_list_peer_rpa_get = 0x4001e084 ); -PROVIDE ( r_lld_res_list_peer_update = 0x4001e014 ); -PROVIDE ( r_lld_res_list_priv_mode_update = 0x4001df9c ); -PROVIDE ( r_lld_res_list_rem = 0x4001df40 ); -PROVIDE ( r_lld_rpa_renew = 0x4001d844 ); -PROVIDE ( r_lld_rpa_renew_evt_canceled_cbk = 0x4001d370 ); -PROVIDE ( r_lld_rpa_renew_evt_start_cbk = 0x4001d2ec ); -PROVIDE ( r_lld_rpa_renew_instant_cbk = 0x4001d1e4 ); -PROVIDE ( r_lld_rxdesc_check = 0x4001d5ac ); -PROVIDE ( r_lld_rxdesc_free = 0x4001d3c4 ); -PROVIDE ( r_lld_scan_create_sync = 0x40024240 ); -PROVIDE ( r_lld_scan_create_sync_cancel = 0x400242ac ); -PROVIDE ( r_lld_scan_end = 0x40020f40 ); -PROVIDE ( r_lld_scan_evt_canceled_cbk = 0x400231d8 ); -PROVIDE ( r_lld_scan_evt_start_cbk = 0x40022fa0 ); -PROVIDE ( r_lld_scan_frm_cbk = 0x40022f20 ); -PROVIDE ( r_lld_scan_frm_eof_isr = 0x40022b80 ); -PROVIDE ( r_lld_scan_frm_rx_isr = 0x40022d24 ); -PROVIDE ( r_lld_scan_frm_skip_isr = 0x40022dc4 ); -PROVIDE ( r_lld_scan_init = 0x40023314 ); -PROVIDE ( r_lld_scan_params_update = 0x400241ec ); -PROVIDE ( r_lld_scan_process_pkt_rx = 0x40021fec ); -PROVIDE ( r_lld_scan_process_pkt_rx_adv_rep = 0x400211e8 ); -PROVIDE ( r_lld_scan_process_pkt_rx_aux_adv_ind = 0x40021684 ); -PROVIDE ( r_lld_scan_process_pkt_rx_aux_chain_ind = 0x40021cf8 ); -PROVIDE ( r_lld_scan_process_pkt_rx_aux_scan_rsp = 0x40021b64 ); -PROVIDE ( r_lld_scan_process_pkt_rx_ext_adv = 0x40021eac ); -PROVIDE ( r_lld_scan_process_pkt_rx_ext_adv_ind = 0x40021414 ); -PROVIDE ( r_lld_scan_process_pkt_rx_legacy_adv = 0x400210b4 ); -PROVIDE ( r_lld_scan_restart = 0x4002337c ); -PROVIDE ( r_lld_scan_sched = 0x40022544 ); -PROVIDE ( r_lld_scan_set_tx_power = 0x40020edc ); -PROVIDE ( r_lld_scan_start = 0x4002349c ); -PROVIDE ( r_lld_scan_stop = 0x40024160 ); -PROVIDE ( r_lld_scan_sync_accept = 0x4002232c ); -PROVIDE ( r_lld_scan_sync_info_unpack = 0x40022230 ); -PROVIDE ( r_lld_scan_trunc_ind = 0x400221dc ); -PROVIDE ( r_lld_sw_cca_evt_handler = 0x4001eaf8 ); -PROVIDE ( r_lld_sw_cca_isr = 0x4001eb18 ); -PROVIDE ( r_lld_sync_ch_map_update = 0x40025e84 ); -PROVIDE ( r_lld_sync_cleanup = 0x40024520 ); -PROVIDE ( r_lld_sync_evt_canceled_cbk = 0x4002568c ); -PROVIDE ( r_lld_sync_evt_start_cbk = 0x400254e0 ); -PROVIDE ( r_lld_sync_frm_cbk = 0x4002545c ); -PROVIDE ( r_lld_sync_frm_eof_isr = 0x400251a8 ); -PROVIDE ( r_lld_sync_frm_rx_isr = 0x400252fc ); -PROVIDE ( r_lld_sync_frm_skip_isr = 0x4002538c ); -PROVIDE ( r_lld_sync_init = 0x40025754 ); -PROVIDE ( r_lld_sync_process_pkt_rx = 0x40024ad0 ); -PROVIDE ( r_lld_sync_process_pkt_rx_aux_sync_ind = 0x400245d4 ); -PROVIDE ( r_lld_sync_process_pkt_rx_pkt_check = 0x40024720 ); -PROVIDE ( r_lld_sync_scan_dynamic_pti_process = 0x40024304 ); -PROVIDE ( r_lld_sync_sched = 0x40024bd8 ); -PROVIDE ( r_lld_sync_start = 0x400257bc ); -PROVIDE ( r_lld_sync_stop = 0x40025ec4 ); -PROVIDE ( r_lld_sync_trunc_ind = 0x40024574 ); -PROVIDE ( r_lld_test_cleanup = 0x40025fdc ); -PROVIDE ( r_lld_test_evt_canceled_cbk = 0x400261a8 ); -PROVIDE ( r_lld_test_evt_start_cbk = 0x40026060 ); -PROVIDE ( r_lld_test_freq2chnl = 0x4002601c ); -PROVIDE ( r_lld_test_frm_cbk = 0x40026344 ); -PROVIDE ( r_lld_test_frm_isr = 0x40026268 ); -PROVIDE ( r_lld_test_init = 0x40026aec ); -PROVIDE ( r_lld_test_rx_isr = 0x40026228 ); -PROVIDE ( r_lld_test_set_tx_power = 0x40025f78 ); -PROVIDE ( r_lld_test_start = 0x400263b4 ); -PROVIDE ( r_lld_test_stop = 0x40026a1c ); -PROVIDE ( r_lld_update_rxbuf = 0x4001e4ac ); -PROVIDE ( r_lld_update_rxbuf_isr = 0x4001e638 ); -PROVIDE ( r_lld_white_list_add = 0x4001d8e0 ); -PROVIDE ( r_lld_white_list_rem = 0x4001da40 ); -PROVIDE ( r_llm_activity_free_get = 0x4002bb5c ); -PROVIDE ( r_llm_activity_free_set = 0x4002bc20 ); -PROVIDE ( r_llm_activity_syncing_get = 0x4002bc60 ); -PROVIDE ( r_llm_adv_con_len_check = 0x40026cd8 ); -PROVIDE ( r_llm_adv_hdl_to_id = 0x40026ebc ); -PROVIDE ( r_llm_adv_rep_flow_control_check = 0x4002cf3c ); -PROVIDE ( r_llm_adv_rep_flow_control_update = 0x4002cf78 ); -PROVIDE ( r_llm_adv_reports_list_check = 0x4002cdf0 ); -PROVIDE ( r_llm_adv_set_all_release = 0x4002975c ); -PROVIDE ( r_llm_adv_set_dft_params = 0x40026dc8 ); -PROVIDE ( r_llm_adv_set_release = 0x40026b18 ); -PROVIDE ( r_llm_aes_res_cb = 0x4002a870 ); -PROVIDE ( r_llm_ble_update_adv_flow_control = 0x4002cdd8 ); -PROVIDE ( r_llm_ch_map_update = 0x4002b9c4 ); -PROVIDE ( r_llm_cmd_cmp_send = 0x4002b674 ); -PROVIDE ( r_llm_cmd_stat_send = 0x4002b6bc ); -PROVIDE ( r_llm_dev_list_empty_entry = 0x4002b7f8 ); -PROVIDE ( r_llm_dev_list_search = 0x4002b81c ); -PROVIDE ( r_llm_env_adv_dup_filt_deinit = 0x4002dd90 ); -PROVIDE ( r_llm_env_adv_dup_filt_init = 0x4002dd38 ); -PROVIDE ( r_llm_hci_cmd_handler_tab_p_get = 0x4002a8a8 ); -PROVIDE ( r_llm_hci_command_handler = 0x4002a8b0 ); -PROVIDE ( r_llm_init_ble_adv_report_flow_contol = 0x4002cda4 ); -PROVIDE ( r_llm_is_dev_connected = 0x4002b6e8 ); -PROVIDE ( r_llm_is_dev_synced = 0x4002b76c ); -PROVIDE ( r_llm_is_non_con_act_ongoing_check = 0x4002a7d4 ); -PROVIDE ( r_llm_is_wl_accessible = 0x4002a76c ); -PROVIDE ( r_llm_le_evt_mask_check = 0x4002b958 ); -PROVIDE ( r_llm_le_features_get = 0x4002b980 ); -PROVIDE ( r_llm_link_disc = 0x4002b868 ); -PROVIDE ( r_llm_master_ch_map_get = 0x4002b948 ); -PROVIDE ( r_llm_msg_handler_tab_p_get = 0x4002df30 ); -PROVIDE ( r_llm_no_activity = 0x4002a820 ); -PROVIDE ( r_llm_per_adv_slot_dur = 0x40026d3c ); -PROVIDE ( r_llm_plan_elt_get = 0x4002b9a8 ); -PROVIDE ( r_llm_rx_path_comp_get = 0x4002b998 ); -PROVIDE ( r_llm_scan_start = 0x4002bca0 ); -PROVIDE ( r_llm_scan_sync_acad_attach = 0x4002dcb0 ); -PROVIDE ( r_llm_scan_sync_acad_detach = 0x4002dcf8 ); -PROVIDE ( r_llm_send_adv_lost_event_to_host = 0x4002cd54 ); -PROVIDE ( r_llm_tx_path_comp_get = 0x4002b988 ); -PROVIDE ( r_misc_deinit = 0x4002df94 ); -PROVIDE ( r_misc_free_em_buf_in_isr = 0x4002dfa8 ); -PROVIDE ( r_misc_init = 0x4002df78 ); -PROVIDE ( r_misc_msg_handler_tab_p_get = 0x4002df6c ); -PROVIDE ( r_modules_funcs_p = 0x3fcef66c ); -PROVIDE ( r_MultiplyBigHexByUint32_256 = 0x400047fc ); -PROVIDE ( r_MultiplyBigHexModP256 = 0x40004698 ); -PROVIDE ( r_MultiplyByU16ModP256 = 0x40004948 ); -PROVIDE ( r_notEqual256 = 0x400049a4 ); -PROVIDE ( r_nvds_browse_tag = 0x4002e088 ); -PROVIDE ( r_nvds_del = 0x4002e314 ); -PROVIDE ( r_nvds_erase = 0x4002e164 ); -PROVIDE ( r_nvds_get = 0x4002e2c4 ); -PROVIDE ( r_nvds_init = 0x4002e240 ); -PROVIDE ( r_nvds_init_memory = 0x4002e184 ); -PROVIDE ( r_nvds_is_magic_number_ok = 0x4002e010 ); -PROVIDE ( r_nvds_lock = 0x4002e35c ); -PROVIDE ( r_nvds_null_init = 0x4002e0cc ); -PROVIDE ( r_nvds_purge = 0x4002e1a8 ); -PROVIDE ( r_nvds_put = 0x4002e3a4 ); -PROVIDE ( r_nvds_read = 0x4002e0f4 ); -PROVIDE ( r_nvds_walk_tag = 0x4002e040 ); -PROVIDE ( r_nvds_write = 0x4002e12c ); -PROVIDE ( _rodata_end = 0x3ff0fff0 ); -PROVIDE ( rodata_reserved_end = 0x3fcefca0 ); -PROVIDE ( rodata_reserved_start = 0x3fcefc9c ); -PROVIDE ( _rodata_start = 0x3ff071c0 ); -PROVIDE ( rom_abs_temp = 0x40041394 ); -PROVIDE ( rom_agc_reg_init = 0x4003de00 ); -PROVIDE ( rom_ant_btrx_cfg = 0x4003e44c ); -PROVIDE ( rom_ant_bttx_cfg = 0x4003e410 ); -PROVIDE ( rom_ant_dft_cfg = 0x4003e320 ); -PROVIDE ( rom_ant_wifirx_cfg = 0x4003e388 ); -PROVIDE ( rom_ant_wifitx_cfg = 0x4003e348 ); -PROVIDE ( rom_bb_bss_cbw40 = 0x4003ea3c ); -PROVIDE ( rom_bb_bss_cbw40_ana = 0x4003f91c ); -PROVIDE ( rom_bb_bss_cbw40_dig = 0x4003d564 ); -PROVIDE ( rom_bb_reg_init = 0x4003e07c ); -PROVIDE ( rom_bb_wdg_cfg = 0x4003e174 ); -PROVIDE ( rom_bb_wdg_test_en = 0x4003d528 ); -PROVIDE ( rom_bb_wdt_get_status = 0x4003d9d8 ); -PROVIDE ( rom_bb_wdt_int_enable = 0x4003d994 ); -PROVIDE ( rom_bb_wdt_rst_enable = 0x4003d974 ); -PROVIDE ( rom_bb_wdt_timeout_clear = 0x4003d9bc ); -PROVIDE ( rom_bt_bb_to_index = 0x4003ce5c ); -PROVIDE ( rom_bt_correct_rf_ana_gain = 0x40042874 ); -PROVIDE ( rom_bt_index_to_bb = 0x4003ce40 ); -PROVIDE ( rom_cbw2040_cfg = 0x4003e9d4 ); -PROVIDE ( rom_chan_to_freq = 0x4003f9d4 ); -PROVIDE ( rom_check_noise_floor = 0x4003d62c ); -PROVIDE ( rom_chip_i2c_readReg = 0x4003ee28 ); -PROVIDE ( rom_chip_i2c_writeReg = 0x4003eea0 ); -PROVIDE ( rom_chip_wait_idle_interval = 0x3fcefc04 ); -PROVIDE ( rom_code_to_temp = 0x40040648 ); -PROVIDE ( rom_config_data_cache_mode = 0x4004f188 ); -PROVIDE ( rom_config_instruction_cache_mode = 0x4004f138 ); -PROVIDE ( rom_correct_rf_ana_gain = 0x40042758 ); -PROVIDE ( rom_correct_rfpll_offset = 0x4003fd3c ); -PROVIDE ( rom_dac_rate_set = 0x4003fc44 ); -PROVIDE ( rom_dc_iq_est = 0x40041470 ); -PROVIDE ( rom_disable_agc = 0x4003c8c4 ); -PROVIDE ( rom_disable_wifi_agc = 0x4003c944 ); -PROVIDE ( rom_enable_agc = 0x4003c8ec ); -PROVIDE ( rom_enable_cache_flash_wrap = 0x4004f0c0 ); -PROVIDE ( rom_enable_cache_spiram_wrap = 0x4004f0fc ); -PROVIDE ( rom_enable_wifi_agc = 0x4003c98c ); -PROVIDE ( rom_en_pwdet = 0x40040eac ); -PROVIDE ( rom_esp_flash_default_chip = 0x3fcefc14 ); -PROVIDE ( rom_fe_reg_init = 0x4003dc84 ); -PROVIDE ( rom_fe_txrx_reset = 0x4003e1a8 ); -PROVIDE ( rom_flash_chip_dummy = 0x3fcefc0c ); -PROVIDE ( rom_force_txon = 0x4003ebbc ); -PROVIDE ( rom_freq_get_i2c_data = 0x40040778 ); -PROVIDE ( rom_freq_i2c_write_set = 0x4003fe9c ); -PROVIDE ( rom_gen_rx_gain_table = 0x4003e7a8 ); -PROVIDE ( rom_get_bbgain_db = 0x4003ce78 ); -PROVIDE ( rom_get_bias_ref_code = 0x4004297c ); -PROVIDE ( rom_get_data_sat = 0x4003cb08 ); -PROVIDE ( rom_get_fm_sar_dout = 0x400410fc ); -PROVIDE ( rom_get_i2c_read_mask = 0x4003ee04 ); -PROVIDE ( rom_get_phy_target_power = 0x40042c20 ); -PROVIDE ( rom_get_pll_ref_code = 0x40040914 ); -PROVIDE ( rom_get_pll_vol = 0x40042adc ); -PROVIDE ( rom_get_power_atten = 0x40041f0c ); -PROVIDE ( rom_get_power_db = 0x40042044 ); -PROVIDE ( rom_get_pwctrl_correct = 0x40042ba8 ); -PROVIDE ( rom_get_rate_fcc_index = 0x400425fc ); -PROVIDE ( rom_get_rate_target_power = 0x4004267c ); -PROVIDE ( rom_get_rc_dout = 0x40041c50 ); -PROVIDE ( rom_get_rfcal_rxiq_data = 0x40041b64 ); -PROVIDE ( rom_get_rf_gain_qdb = 0x40042740 ); -PROVIDE ( rom_get_sar2_vol = 0x40042a08 ); -PROVIDE ( rom_get_sar_sig_ref = 0x40040fc4 ); -PROVIDE ( rom_get_target_power_offset = 0x40042498 ); -PROVIDE ( rom_get_tone_sar_dout = 0x40041088 ); -PROVIDE ( rom_host_delay_interval = 0x3fcefc08 ); -PROVIDE ( rom_i2c_bbtop_init = 0x4003f774 ); -PROVIDE ( rom_i2c_clk_sel = 0x4003ecd4 ); -PROVIDE ( rom_i2cmst_reg_init = 0x4003daf8 ); -PROVIDE ( rom_i2c_readReg = 0x4003ee84 ); -PROVIDE ( rom_i2c_readReg_Mask = 0x4003ef04 ); -PROVIDE ( rom_i2c_sar2_init_code = 0x4003fbe8 ); -PROVIDE ( rom_i2c_writeReg = 0x4003eee8 ); -PROVIDE ( rom_i2c_writeReg_Mask = 0x4003ef40 ); -PROVIDE ( rom_index_to_txbbgain = 0x40040b10 ); -PROVIDE ( rom_iq_corr_enable = 0x4003dc10 ); -PROVIDE ( rom_iq_est_disable = 0x40041434 ); -PROVIDE ( rom_iq_est_enable = 0x400413b4 ); -PROVIDE ( rom_linear_to_db = 0x40041fd8 ); -PROVIDE ( rom_loopback_mode_en = 0x4003cad4 ); -PROVIDE ( rom_mac_enable_bb = 0x4003e134 ); -PROVIDE ( rom_mac_tx_chan_offset = 0x4003e9fc ); -PROVIDE ( rom_meas_tone_pwr_db = 0x40042080 ); -PROVIDE ( rom_mhz2ieee = 0x4003e990 ); -PROVIDE ( rom_noise_floor_auto_set = 0x4003d594 ); -PROVIDE ( rom_open_i2c_xpd = 0x4003fc1c ); -PROVIDE ( rom_pbus_debugmode = 0x4003f1b4 ); -PROVIDE ( rom_pbus_force_mode = 0x4003efb0 ); -PROVIDE ( rom_pbus_force_test = 0x4003f114 ); -PROVIDE ( rom_pbus_rd = 0x4003f170 ); -PROVIDE ( rom_pbus_rd_addr = 0x4003f078 ); -PROVIDE ( rom_pbus_rd_shift = 0x4003f0c4 ); -PROVIDE ( rom_pbus_rx_dco_cal = 0x400414f8 ); -PROVIDE ( rom_pbus_set_dco = 0x4003f370 ); -PROVIDE ( rom_pbus_set_rxgain = 0x4003f1dc ); -PROVIDE ( rom_pbus_workmode = 0x4003f1c8 ); -PROVIDE ( rom_pbus_xpd_rx_off = 0x4003f240 ); -PROVIDE ( rom_pbus_xpd_rx_on = 0x4003f274 ); -PROVIDE ( rom_pbus_xpd_tx_off = 0x4003f2c8 ); -PROVIDE ( rom_pbus_xpd_tx_on = 0x4003f318 ); -PROVIDE ( rom_phy_ant_init = 0x4003e2d4 ); -PROVIDE ( rom_phy_byte_to_word = 0x4003da20 ); -PROVIDE ( rom_phy_chan_dump_cfg = 0x4003e548 ); -PROVIDE ( rom_phy_chan_filt_set = 0x4003eb28 ); -PROVIDE ( rom_phy_close_pa = 0x4003ed54 ); -PROVIDE ( rom_phy_disable_cca = 0x4003c9dc ); -PROVIDE ( rom_phy_disable_low_rate = 0x4003e760 ); -PROVIDE ( rom_phy_dis_hw_set_freq = 0x400408d8 ); -PROVIDE ( rom_phy_enable_cca = 0x4003ca08 ); -PROVIDE ( rom_phy_enable_low_rate = 0x4003e728 ); -PROVIDE ( rom_phy_freq_correct = 0x4003f5dc ); -PROVIDE ( rom_phy_get_fetx_delay = 0x4003fa08 ); -PROVIDE ( rom_phy_get_noisefloor = 0x4003d5e4 ); -PROVIDE ( rom_phy_get_rx_freq = 0x4003ec10 ); -PROVIDE ( rom_phy_get_tx_rate = 0x4003da10 ); -PROVIDE ( rom_phy_get_vdd33 = 0x400428f4 ); -PROVIDE ( rom_phy_i2c_init = 0x4003fac8 ); -PROVIDE ( rom_phy_pwdet_always_en = 0x40042c90 ); -PROVIDE ( rom_phy_pwdet_onetime_en = 0x40042ccc ); -PROVIDE ( rom_phy_rx11blr_cfg = 0x4003d91c ); -PROVIDE ( rom_phy_rx_sense_set = 0x4003ec58 ); -PROVIDE ( rom_phy_set_bbfreq_init = 0x40042b30 ); -PROVIDE ( rom_pll_correct_dcap = 0x400406ec ); -PROVIDE ( rom_pll_vol_cal = 0x40040948 ); -PROVIDE ( rom_pocket_sar_power = 0x40042b60 ); -PROVIDE ( rom_pow_usr = 0x4003ca20 ); -PROVIDE ( rom_pwdet_force_start = 0x40040ff0 ); -PROVIDE ( rom_pwdet_sar2_init = 0x40040e08 ); -PROVIDE ( rom_read_hw_noisefloor = 0x4003d6d0 ); -PROVIDE ( rom_read_sar2_code = 0x400429e8 ); -PROVIDE ( rom_read_sar_dout = 0x40040fb4 ); -PROVIDE ( rom_restart_cal = 0x4003f3c0 ); -PROVIDE ( rom_rfcal_pwrctrl = 0x400422b4 ); -PROVIDE ( rom_rfcal_rxiq = 0x40041af0 ); -PROVIDE ( rom_rfcal_txcap = 0x40041dfc ); -PROVIDE ( rom_rfpll_init = 0x4003f3b8 ); -PROVIDE ( rom_rfpll_set_freq = 0x4003f4cc ); -PROVIDE ( rom_rftx_init = 0x4003fa28 ); -PROVIDE ( rom_rtc_sar2_init = 0x40040d48 ); -PROVIDE ( rom_rxdc_est_min = 0x40041820 ); -PROVIDE ( rom_rx_gain_force = 0x4003d038 ); -PROVIDE ( rom_rxiq_cover_mg_mp = 0x40041a0c ); -PROVIDE ( rom_rxiq_get_mis = 0x40041874 ); -PROVIDE ( rom_rxiq_set_reg = 0x40041988 ); -PROVIDE ( rom_set_adc_rand = 0x4003e5dc ); -PROVIDE ( rom_set_cal_rxdc = 0x4003ca94 ); -PROVIDE ( rom_set_cca = 0x4003eac4 ); -PROVIDE ( rom_set_chan_cal_interp = 0x40041d20 ); -PROVIDE ( rom_set_channel_freq = 0x4003f534 ); -PROVIDE ( rom_set_loopback_gain = 0x4003ca38 ); -PROVIDE ( rom_set_noise_floor = 0x4003d6e8 ); -PROVIDE ( rom_set_pbus_mem = 0x4003cb78 ); -PROVIDE ( rom_set_pbus_reg = 0x4003e25c ); -PROVIDE ( rom_set_rf_freq_offset = 0x4003f73c ); -PROVIDE ( rom_set_rfpll_freq = 0x4003fce8 ); -PROVIDE ( rom_set_rxclk_en = 0x4003d0ac ); -PROVIDE ( rom_set_rx_comp = 0x4003e1d4 ); -PROVIDE ( rom_set_rx_sense = 0x4003d75c ); -PROVIDE ( rom_set_txcap_reg = 0x40041d74 ); -PROVIDE ( rom_set_txclk_en = 0x4003d07c ); -PROVIDE ( rom_set_tx_dig_gain = 0x4003cff4 ); -PROVIDE ( rom_set_tx_gain_table = 0x4003cd94 ); -PROVIDE ( rom_set_xpd_sar = 0x4003e290 ); -PROVIDE ( rom_spiflash_api_funcs = 0x3fcefbf4 ); -PROVIDE ( rom_spi_flash_cache2phys = 0x400505cc ); -PROVIDE ( rom_spi_flash_cache_enabled = 0x4004f08c ); -PROVIDE ( rom_spi_flash_check_and_flush_cache = 0x4005070c ); -PROVIDE ( rom_spi_flash_disable_cache = 0x4004f054 ); -PROVIDE ( rom_spi_flash_dump_counters = 0x40050850 ); -PROVIDE ( rom_spi_flash_enable_cache = 0x4004f0ac ); -PROVIDE ( rom_spi_flash_erase_range = 0x40050974 ); -PROVIDE ( rom_spi_flash_erase_sector = 0x40050a7c ); -PROVIDE ( rom_spi_flash_get_chip_size = 0x4005087c ); -PROVIDE ( rom_spi_flash_get_counters = 0x40050820 ); -PROVIDE ( rom_spi_flash_guard_get = 0x400508bc ); -PROVIDE ( rom_spi_flash_guard_set = 0x400508b0 ); -PROVIDE ( rom_spi_flash_hal_max_read_len = 0x3fcefba8 ); -PROVIDE ( rom_spi_flash_mmap = 0x400503b0 ); -PROVIDE ( rom_spi_flash_mmap_dump = 0x400504f4 ); -PROVIDE ( rom_spi_flash_mmap_get_free_pages = 0x40050550 ); -PROVIDE ( rom_spi_flash_mmap_os_func_set = 0x4005016c ); -PROVIDE ( rom_spi_flash_mmap_page_num_init = 0x4005017c ); -PROVIDE ( rom_spi_flash_mmap_pages = 0x400501cc ); -PROVIDE ( rom_spi_flash_munmap = 0x40050444 ); -PROVIDE ( rom_spi_flash_op_counters_config = 0x40050810 ); -PROVIDE ( rom_spi_flash_phys2cache = 0x40050660 ); -PROVIDE ( rom_spi_flash_read = 0x40050c4c ); -PROVIDE ( rom_spi_flash_read_encrypted = 0x40050f00 ); -PROVIDE ( rom_spi_flash_reset_counters = 0x40050828 ); -PROVIDE ( rom_spi_flash_restore_cache = 0x4004f070 ); -PROVIDE ( rom_spi_flash_safe_write_address_func_set = 0x400508c8 ); -PROVIDE ( rom_spi_flash_unlock = 0x400508d8 ); -PROVIDE ( rom_spi_flash_write = 0x40050a90 ); -PROVIDE ( rom_spi_flash_write_config_get = 0x400508a8 ); -PROVIDE ( rom_spi_flash_write_config_set = 0x4005088c ); -PROVIDE ( rom_spi_flash_write_encrypted = 0x40050e7c ); -PROVIDE ( rom_spur_cal = 0x4003e924 ); -PROVIDE ( rom_spur_reg_write_one_tone = 0x4003d2a4 ); -PROVIDE ( rom_start_tx_tone = 0x4003d1d0 ); -PROVIDE ( rom_start_tx_tone_step = 0x4003d0e8 ); -PROVIDE ( rom_stop_tx_tone = 0x4003e8d0 ); -PROVIDE ( _rom_store = 0x400568d0 ); -PROVIDE ( _rom_store_table = 0x40056700 ); -PROVIDE ( rom_target_power_add_backoff = 0x4004271c ); -PROVIDE ( rom_temp_to_power = 0x40042c5c ); -PROVIDE ( rom_test_rx_gain_cal = 0x40042d14 ); -PROVIDE ( rom_tsens_code_read = 0x40040554 ); -PROVIDE ( rom_tsens_dac_cal = 0x400405cc ); -PROVIDE ( rom_tsens_index_to_dac = 0x40040590 ); -PROVIDE ( rom_tsens_index_to_offset = 0x400405ac ); -PROVIDE ( rom_tsens_read_init = 0x40040434 ); -PROVIDE ( rom_txbbgain_to_index = 0x40040ae0 ); -PROVIDE ( rom_txcal_work_mode = 0x40040f14 ); -PROVIDE ( rom_txdc_cal_init = 0x40040b2c ); -PROVIDE ( rom_txdc_cal_v70 = 0x40040bc0 ); -PROVIDE ( rom_txiq_cover = 0x40041218 ); -PROVIDE ( rom_txiq_get_mis_pwr = 0x4004116c ); -PROVIDE ( rom_txiq_set_reg = 0x40040f44 ); -PROVIDE ( rom_tx_paon_set = 0x4003da6c ); -PROVIDE ( rom_tx_pwctrl_bg_init = 0x40042bfc ); -PROVIDE ( rom_tx_pwr_backoff = 0x400420d4 ); -PROVIDE ( rom_tx_state_set = 0x4003e4dc ); -PROVIDE ( rom_txtone_linear_pwr = 0x4004111c ); -PROVIDE ( rom_wait_rfpll_cal_end = 0x4003f488 ); -PROVIDE ( rom_wifi_11g_rate_chg = 0x4004247c ); -PROVIDE ( rom_wifi_rifs_mode_en = 0x4003d9ec ); -PROVIDE ( rom_wr_bt_tx_atten = 0x4003ceb0 ); -PROVIDE ( rom_wr_bt_tx_gain_mem = 0x4003cf48 ); -PROVIDE ( rom_write_dac_gain2 = 0x4003e6b8 ); -PROVIDE ( rom_write_gain_mem = 0x4003cd60 ); -PROVIDE ( rom_write_pll_cap_mem = 0x40040688 ); -PROVIDE ( rom_write_rfpll_sdm = 0x4003f420 ); -PROVIDE ( rom_write_txrate_power_offset = 0x40042510 ); -PROVIDE ( rom_write_wifi_dig_gain = 0x400426b8 ); -PROVIDE ( rom_wr_rf_freq_mem = 0x4003fdd0 ); -PROVIDE ( r_osi_funcs_p = 0x3fcef68c ); -PROVIDE ( roundup2 = 0x40056654 ); -PROVIDE ( r_phy_upd_proc_start = 0x40011220 ); -PROVIDE ( r_platform_reset = 0x400011a4 ); -PROVIDE ( r_plf_funcs_p = 0x3fcef690 ); -PROVIDE ( r_readbyte = 0x400068f4 ); -PROVIDE ( r_rf_em_init = 0x4002e65c ); -PROVIDE ( r_rf_force_agc_enable = 0x4002e714 ); -PROVIDE ( r_rf_reg_rd = 0x4002e648 ); -PROVIDE ( r_rf_reg_wr = 0x4002e650 ); -PROVIDE ( r_rf_reset = 0x4002e70c ); -PROVIDE ( r_rf_rssi_convert = 0x4002e69c ); -PROVIDE ( r_rf_rw_v9_le_disable = 0x40001ac8 ); -PROVIDE ( r_rf_rw_v9_le_enable = 0x40001ab0 ); -PROVIDE ( r_rf_sleep = 0x4002e730 ); -PROVIDE ( r_rf_txpwr_cs_get = 0x4002e6a8 ); -PROVIDE ( r_rf_txpwr_dbm_get = 0x4002e71c ); -PROVIDE ( r_rf_util_cs_fmt_convert = 0x4002eb88 ); -PROVIDE ( r_rwble_isr = 0x4002ec44 ); -PROVIDE ( r_rwble_sleep_enter = 0x4002f014 ); -PROVIDE ( r_rwble_sleep_wakeup_end = 0x4002f058 ); -PROVIDE ( r_rwbtdm_isr_wrapper = 0x4000949c ); -PROVIDE ( r_rw_crypto_aes_ccm = 0x400008c8 ); -PROVIDE ( r_rw_crypto_aes_encrypt = 0x40000ecc ); -PROVIDE ( r_rw_crypto_aes_init = 0x40000e34 ); -PROVIDE ( r_rw_crypto_aes_k1 = 0x40000b68 ); -PROVIDE ( r_rw_crypto_aes_k2 = 0x40000cc0 ); -PROVIDE ( r_rw_crypto_aes_k3 = 0x40000d68 ); -PROVIDE ( r_rw_crypto_aes_k4 = 0x40000dfc ); -PROVIDE ( r_rw_crypto_aes_rand = 0x40000f3c ); -PROVIDE ( r_rw_crypto_aes_result_handler = 0x40000f70 ); -PROVIDE ( r_rw_crypto_aes_s1 = 0x40001030 ); -PROVIDE ( r_rw_cryto_aes_cmac = 0x40000948 ); -PROVIDE ( r_rwip_active_check = 0x4002f90c ); -PROVIDE ( r_rwip_aes_encrypt = 0x4002faf8 ); -PROVIDE ( r_rwip_assert = 0x40030080 ); -PROVIDE ( r_rwip_crypt_evt_handler = 0x4002f1d8 ); -PROVIDE ( r_rwip_crypt_isr_handler = 0x4002f214 ); -PROVIDE ( r_rwip_eif_get = 0x400011f4 ); -PROVIDE ( r_rwip_half_slot_2_lpcycles = 0x4002f114 ); -PROVIDE ( r_rwip_hus_2_lpcycles = 0x4002f0dc ); -PROVIDE ( r_rwip_isr = 0x4002fc4c ); -PROVIDE ( r_rwip_lpcycles_2_hus = 0x4002f084 ); -PROVIDE ( r_rwip_prevent_sleep_clear = 0x4002f8e0 ); -PROVIDE ( r_rwip_prevent_sleep_set = 0x4002f8b8 ); -PROVIDE ( r_rwip_schedule = 0x4002ffd4 ); -PROVIDE ( r_rwip_sleep = 0x4002f520 ); -PROVIDE ( r_rwip_sw_int_handler = 0x4002f244 ); -PROVIDE ( r_rwip_sw_int_req = 0x4002fc08 ); -PROVIDE ( r_rwip_time_get = 0x4002f4c0 ); -PROVIDE ( r_rwip_timer_10ms_handler = 0x4002f1ac ); -PROVIDE ( r_rwip_timer_10ms_set = 0x4002f924 ); -PROVIDE ( r_rwip_timer_hs_handler = 0x4002f150 ); -PROVIDE ( r_rwip_timer_hs_set = 0x4002f9b0 ); -PROVIDE ( r_rwip_timer_hus_handler = 0x4002f17c ); -PROVIDE ( r_rwip_timer_hus_set = 0x4002fa30 ); -PROVIDE ( r_rwip_wakeup = 0x4002f288 ); -PROVIDE ( r_rwip_wakeup_end = 0x4002f3a0 ); -PROVIDE ( r_rwip_wlcoex_set = 0x4002fffc ); -PROVIDE ( r_rw_v9_init_em_radio_table = 0x40001900 ); -PROVIDE ( r_sch_alarm_clear = 0x40030234 ); -PROVIDE ( r_sch_alarm_init = 0x40030100 ); -PROVIDE ( r_sch_alarm_prog = 0x400300a4 ); -PROVIDE ( r_sch_alarm_set = 0x40030190 ); -PROVIDE ( r_sch_alarm_timer_isr = 0x40030124 ); -PROVIDE ( r_sch_arb_conflict_check = 0x4003028c ); -PROVIDE ( r_sch_arb_elt_cancel = 0x4003039c ); -PROVIDE ( r_sch_arb_event_start_isr = 0x40030a50 ); -PROVIDE ( r_sch_arb_init = 0x40030604 ); -PROVIDE ( r_sch_arb_insert = 0x40030640 ); -PROVIDE ( r_sch_arb_prog_timer = 0x4003052c ); -PROVIDE ( r_sch_arb_remove = 0x40030970 ); -PROVIDE ( r_sch_arb_sw_isr = 0x40030bd0 ); -PROVIDE ( r_sch_plan_chk = 0x400310c8 ); -PROVIDE ( r_sch_plan_clock_wrap_offset_update = 0x40030c98 ); -PROVIDE ( r_sch_plan_init = 0x40030fbc ); -PROVIDE ( r_sch_plan_interval_req = 0x40030f40 ); -PROVIDE ( r_sch_plan_offset_max_calc = 0x40030ccc ); -PROVIDE ( r_sch_plan_offset_req = 0x40030d68 ); -PROVIDE ( r_sch_plan_position_range_compute = 0x400310e8 ); -PROVIDE ( r_sch_plan_rem = 0x4003106c ); -PROVIDE ( r_sch_plan_req = 0x40031080 ); -PROVIDE ( r_sch_plan_set = 0x40030fe4 ); -PROVIDE ( r_sch_prog_end_isr = 0x4003159c ); -PROVIDE ( r_sch_prog_init = 0x400311f4 ); -PROVIDE ( r_sch_prog_push = 0x40031770 ); -PROVIDE ( r_sch_prog_rx_isr = 0x40031288 ); -PROVIDE ( r_sch_prog_skip_isr = 0x40031434 ); -PROVIDE ( r_sch_prog_tx_isr = 0x4003135c ); -PROVIDE ( r_sch_slice_bg_add = 0x40031cf4 ); -PROVIDE ( r_sch_slice_bg_remove = 0x40031d1c ); -PROVIDE ( r_sch_slice_compute = 0x40031bec ); -PROVIDE ( r_sch_slice_fg_add = 0x40031d48 ); -PROVIDE ( r_sch_slice_fg_remove = 0x40031d90 ); -PROVIDE ( r_sch_slice_init = 0x40031ca8 ); -PROVIDE ( r_sch_slice_per_add = 0x40031df0 ); -PROVIDE ( r_sch_slice_per_remove = 0x40031e44 ); -PROVIDE ( r_sdk_config_get_bt_sleep_enable = 0x40031ef0 ); -PROVIDE ( r_sdk_config_get_hl_derived_opts = 0x40031e9c ); -PROVIDE ( r_sdk_config_get_opts = 0x40031ebc ); -PROVIDE ( r_sdk_config_get_priv_opts = 0x40031ed8 ); -PROVIDE ( r_sdk_config_set_bt_sleep_enable = 0x40031ee4 ); -PROVIDE ( r_sdk_config_set_hl_derived_opts = 0x40031ea4 ); -PROVIDE ( r_sdk_config_set_opts = 0x40031ec4 ); -PROVIDE ( r_specialModP256 = 0x40004854 ); -PROVIDE ( r_SubtractBigHex256 = 0x40004224 ); -PROVIDE ( r_SubtractBigHexMod256 = 0x400044c4 ); -PROVIDE ( r_SubtractBigHexUint32_256 = 0x40004630 ); -PROVIDE ( r_SubtractFromSelfBigHex256 = 0x40004278 ); -PROVIDE ( r_SubtractFromSelfBigHexSign256 = 0x400043d4 ); -PROVIDE ( rtc_boot_control = 0x40045b90 ); -PROVIDE ( rtc_get_reset_reason = 0x40045abc ); -PROVIDE ( rtc_get_wakeup_cause = 0x40045ae0 ); -PROVIDE ( rtc_select_apb_bridge = 0x40045c24 ); -PROVIDE ( r_unloaded_area_init = 0x40001060 ); -PROVIDE ( r_vhci_flow_off = 0x4003200c ); -PROVIDE ( r_vhci_flow_on = 0x40032034 ); -PROVIDE ( r_vhci_notify_host_send_available = 0x40031fdc ); -PROVIDE ( r_vhci_send_to_host = 0x40032084 ); -PROVIDE ( r_vnd_hci_command_handler = 0x4000304c ); -PROVIDE ( rwble_env = 0x3fcefb20 ); -PROVIDE ( rwip_coex_cfg = 0x3ff091bb ); -PROVIDE ( rwip_env = 0x3fcefb28 ); -PROVIDE ( rwip_param = 0x3fcefb84 ); -PROVIDE ( rwip_priority = 0x3ff091c0 ); -PROVIDE ( rwip_prog_delay = 0x3fcefb44 ); -PROVIDE ( rwip_rf = 0x3fcefb4c ); -PROVIDE ( r_writebyte = 0x400068e4 ); -PROVIDE ( sbrk = 0x4003b964 ); -PROVIDE ( _sbrk_r = 0x400545e4 ); -PROVIDE ( _scanf_float = 0x40054818 ); -PROVIDE ( s_cdcacm_old_rts = 0x3fcef38c ); -PROVIDE ( sch_slice_params = 0x3fcefb94 ); -PROVIDE ( __sclose = 0x40054d90 ); -PROVIDE ( sdk_cfg_priv_opts = 0x3fcef40c ); -PROVIDE ( SelectSpiFunction = 0x4004cd2c ); -PROVIDE ( SelectSpiQIO = 0x4004cbb4 ); -PROVIDE ( SendMsg = 0x40049a44 ); -PROVIDE ( send_packet = 0x40049a00 ); -PROVIDE ( __seofread = 0x40054d1c ); -PROVIDE ( setjmp = 0x4003226c ); -PROVIDE ( setlocale = 0x40034068 ); -PROVIDE ( _setlocale_r = 0x40033ffc ); -PROVIDE ( set_rtc_memory_crc = 0x40045b74 ); -PROVIDE ( SetSpiDrvs = 0x4004cc48 ); -PROVIDE ( __sf_fake_stderr = 0x3ff0c524 ); -PROVIDE ( __sf_fake_stdin = 0x3ff0c564 ); -PROVIDE ( __sf_fake_stdout = 0x3ff0c544 ); -PROVIDE ( __sflush_r = 0x40033dc8 ); -PROVIDE ( __sfmoreglue = 0x40054ab4 ); -PROVIDE ( __sfp = 0x40054bdc ); -PROVIDE ( __sfp_lock_acquire = 0x40054c8c ); -PROVIDE ( __sfp_lock_release = 0x40054c98 ); -PROVIDE ( __sfputs_r = 0x40032d44 ); -PROVIDE ( __sfvwrite_r = 0x40033674 ); -PROVIDE ( sig_matrix = 0x3fcefc13 ); -PROVIDE ( __sinit = 0x40054af4 ); -PROVIDE ( __sinit_lock_acquire = 0x40054ca4 ); -PROVIDE ( __sinit_lock_release = 0x40054cb0 ); -PROVIDE ( __smakebuf_r = 0x40033d28 ); -PROVIDE ( software_reset = 0x40045bec ); -PROVIDE ( software_reset_cpu = 0x40045c04 ); -PROVIDE ( SPI_block_erase = 0x4004d214 ); -PROVIDE ( spi_cache_mode_switch = 0x4004d9f0 ); -PROVIDE ( SPI_chip_erase = 0x4004d188 ); -PROVIDE ( SPIClkConfig = 0x4004e198 ); -PROVIDE ( SPI_Common_Command = 0x4004d2bc ); -PROVIDE ( spi_common_set_dummy_output = 0x4004dcac ); -PROVIDE ( spi_common_set_flash_cs_timing = 0x4004dbf8 ); -PROVIDE ( spi_dummy_len_fix = 0x4004cb30 ); -PROVIDE ( SPI_Encrypt_Write = 0x4004fa5c ); -PROVIDE ( SPI_Encrypt_Write_Dest = 0x4004f908 ); -PROVIDE ( SPIEraseArea = 0x4004e5cc ); -PROVIDE ( SPIEraseBlock = 0x4004e204 ); -PROVIDE ( SPIEraseChip = 0x4004e1e4 ); -PROVIDE ( SPIEraseSector = 0x4004e278 ); -PROVIDE ( spi_flash_attach = 0x4004e100 ); -PROVIDE ( spi_flash_boot_attach = 0x4004e0a0 ); -PROVIDE ( SPI_flashchip_data = 0x3fcefbdc ); -PROVIDE ( spi_flash_chip_gd_get_io_mode = 0x4004f248 ); -PROVIDE ( spi_flash_chip_gd_probe = 0x4004f1d8 ); -PROVIDE ( spi_flash_chip_gd_set_io_mode = 0x4004f20c ); -PROVIDE ( spi_flash_chip_generic_config_host_io_mode = 0x4004f6e0 ); -PROVIDE ( spi_flash_chip_generic_detect_size = 0x4004f368 ); -PROVIDE ( spi_flash_chip_generic_erase_block = 0x4004f454 ); -PROVIDE ( spi_flash_chip_generic_erase_chip = 0x4004f39c ); -PROVIDE ( spi_flash_chip_generic_erase_sector = 0x4004f3f8 ); -PROVIDE ( spi_flash_chip_generic_get_io_mode = 0x4004f7d4 ); -PROVIDE ( spi_flash_chip_generic_get_write_protect = 0x4004f5e0 ); -PROVIDE ( spi_flash_chip_generic_page_program = 0x4004f4b0 ); -PROVIDE ( spi_flash_chip_generic_probe = 0x4004f30c ); -PROVIDE ( spi_flash_chip_generic_read = 0x4004f740 ); -PROVIDE ( spi_flash_chip_generic_reset = 0x4004f314 ); -PROVIDE ( spi_flash_chip_generic_set_io_mode = 0x4004f898 ); -PROVIDE ( spi_flash_chip_generic_set_write_protect = 0x4004f594 ); -PROVIDE ( spi_flash_chip_generic_wait_idle = 0x4004f660 ); -PROVIDE ( spi_flash_chip_generic_write = 0x4004f4e4 ); -PROVIDE ( spi_flash_chip_generic_write_encrypted = 0x4004f58c ); -PROVIDE ( spi_flash_common_read_status_16b_rdsr_rdsr2 = 0x4004f2dc ); -PROVIDE ( spi_flash_common_read_status_8b_rdsr = 0x4004f7f0 ); -PROVIDE ( spi_flash_common_read_status_8b_rdsr2 = 0x4004f7c4 ); -PROVIDE ( spi_flash_common_set_io_mode = 0x4004f828 ); -PROVIDE ( spi_flash_common_write_status_16b_wrsr = 0x4004f294 ); -PROVIDE ( spi_flash_common_write_status_8b_wrsr = 0x4004f800 ); -PROVIDE ( spi_flash_common_write_status_8b_wrsr2 = 0x4004f814 ); -PROVIDE ( SPI_flash_func = 0x3fcefbb0 ); -PROVIDE ( spi_flash_generic_wait_host_idle = 0x4004f61c ); -PROVIDE ( spi_flash_hal_common_command = 0x4004fd8c ); -PROVIDE ( spi_flash_hal_configure_host_io_mode = 0x4004fbac ); -PROVIDE ( spi_flash_hal_device_config = 0x4004fb44 ); -PROVIDE ( spi_flash_hal_erase_block = 0x4004ff94 ); -PROVIDE ( spi_flash_hal_erase_chip = 0x4004ff1c ); -PROVIDE ( spi_flash_hal_erase_sector = 0x4004ff40 ); -PROVIDE ( spi_flash_hal_host_idle = 0x40050088 ); -PROVIDE ( spi_flash_hal_poll_cmd_done = 0x4004fb1c ); -PROVIDE ( spi_flash_hal_program_page = 0x4004ffe0 ); -PROVIDE ( spi_flash_hal_read = 0x4004fe8c ); -PROVIDE ( spi_flash_hal_set_write_protect = 0x40050054 ); -PROVIDE ( spi_flash_set_check_suspend_cb = 0x4004cb1c ); -PROVIDE ( SPI_init = 0x4004dcf0 ); -PROVIDE ( SPILock = 0x4004dfb0 ); -PROVIDE ( SPIMasterReadModeCnfig = 0x4004e110 ); -PROVIDE ( SPIMEM0 = 0x60003000 ); -PROVIDE ( SPIMEM1 = 0x60002000 ); -PROVIDE ( SPI_page_program = 0x4004d584 ); -PROVIDE ( SPIParamCfg = 0x4004e670 ); -PROVIDE ( SPIRead = 0x4004e3cc ); -PROVIDE ( SPI_read_data = 0x4004cea8 ); -PROVIDE ( SPIReadModeCnfig = 0x4004dff8 ); -PROVIDE ( SPI_read_status = 0x4004d054 ); -PROVIDE ( SPI_read_status_high = 0x4004d258 ); -PROVIDE ( SPI_sector_erase = 0x4004d1c0 ); -PROVIDE ( spi_set_dummy_output = 0x4004cb64 ); -PROVIDE ( spi_slave_download = 0x40053df0 ); -PROVIDE ( spi_slave_rom_check_conn = 0x40053a60 ); -PROVIDE ( spi_slave_rom_init = 0x40053ab0 ); -PROVIDE ( spi_slave_rom_init_hw = 0x40053fd8 ); -PROVIDE ( spi_slave_rom_intr_enable = 0x40053fa0 ); -PROVIDE ( spi_slave_rom_rxdma_load = 0x400542a4 ); -PROVIDE ( spi_slave_rom_txdma_load = 0x4005433c ); -PROVIDE ( SPIUnlock = 0x4004df54 ); -PROVIDE ( SPI_user_command_read = 0x4004cf98 ); -PROVIDE ( SPI_Wait_Idle = 0x4004d664 ); -PROVIDE ( SPI_WakeUp = 0x4004d0c4 ); -PROVIDE ( SPIWrite = 0x4004e2ec ); -PROVIDE ( SPI_write_enable = 0x4004d530 ); -PROVIDE ( SPI_Write_Encrypt_Disable = 0x4004f8d0 ); -PROVIDE ( SPI_Write_Encrypt_Enable = 0x4004f8b4 ); -PROVIDE ( SPI_write_status = 0x4004d278 ); -PROVIDE ( __sprint_r = 0x40032d90 ); -PROVIDE ( srand = 0x4003a094 ); -PROVIDE ( __sread = 0x40054cec ); -PROVIDE ( __sseek = 0x40054d5c ); -PROVIDE ( __stack = 0x3fceb910 ); -PROVIDE ( __stack_app = 0x3fced910 ); -PROVIDE ( _stack_sentry = 0x3fce9910 ); -PROVIDE ( _stack_sentry_app = 0x3fceb910 ); -PROVIDE ( _start = 0x4003959c ); -PROVIDE ( _stat_r = 0x400545b4 ); -PROVIDE ( _stext = 0x40039438 ); -PROVIDE ( strcasecmp = 0x4003a1bc ); -PROVIDE ( strcasestr = 0x4003a850 ); -PROVIDE ( strcat = 0x4003aba8 ); -PROVIDE ( strchr = 0x4003abec ); -PROVIDE ( strcmp = 0x4003acd8 ); -PROVIDE ( strcoll = 0x4003adfc ); -PROVIDE ( strcpy = 0x4003ae10 ); -PROVIDE ( strcspn = 0x4005575c ); -PROVIDE ( strdup = 0x4003aea0 ); -PROVIDE ( _strdup_r = 0x4003aeb4 ); -PROVIDE ( string0_descr = 0x3ff0c1f6 ); -PROVIDE ( strlcat = 0x4003aed4 ); -PROVIDE ( strlcpy = 0x40055798 ); -PROVIDE ( strlen = 0x4003af3c ); -PROVIDE ( strlwr = 0x4003afa0 ); -PROVIDE ( str_manu_descr = 0x3ff0c1e2 ); -PROVIDE ( strncasecmp = 0x4003afd0 ); -PROVIDE ( strncat = 0x4003b028 ); -PROVIDE ( strncmp = 0x4003b088 ); -PROVIDE ( strncpy = 0x4003b178 ); -PROVIDE ( strndup = 0x4003b254 ); -PROVIDE ( _strndup_r = 0x4003b268 ); -PROVIDE ( strnlen = 0x400557d8 ); -PROVIDE ( str_prod_descr = 0x3ff0c1d0 ); -PROVIDE ( strrchr = 0x4003b2b8 ); -PROVIDE ( strsep = 0x4003b2e4 ); -PROVIDE ( str_serial_descr = 0x3fcef08c ); -PROVIDE ( strspn = 0x4005580c ); -PROVIDE ( strstr = 0x4003b674 ); -PROVIDE ( __strtok_r = 0x40055848 ); -PROVIDE ( strtok_r = 0x400558a4 ); -PROVIDE ( strtol = 0x40032b14 ); -PROVIDE ( strtol_l = 0x40032afc ); -PROVIDE ( _strtol_r = 0x40032ad8 ); -PROVIDE ( strtoul = 0x40032c84 ); -PROVIDE ( strtoul_l = 0x40032c6c ); -PROVIDE ( _strtoul_r = 0x40032c48 ); -PROVIDE ( strupr = 0x4003b8bc ); -PROVIDE ( __subdf3 = 0x4003beb0 ); -PROVIDE ( __subsf3 = 0x4003bad8 ); -PROVIDE ( __subvdi3 = 0x4003c4ec ); -PROVIDE ( __subvsi3 = 0x4003c4c8 ); -PROVIDE ( s_usb_osglue = 0x3fcef334 ); -PROVIDE ( __swbuf = 0x40033a34 ); -PROVIDE ( __swbuf_r = 0x4003396c ); -PROVIDE ( __swhatbuf_r = 0x40033cd4 ); -PROVIDE ( __swrite = 0x40054d24 ); -PROVIDE ( __swsetup_r = 0x40033a48 ); -PROVIDE ( sw_to_hw = 0x3fcef8e4 ); -PROVIDE ( _SyscallException = 0x40039677 ); -PROVIDE ( syscall_table_ptr = 0x3fcefcc8 ); -PROVIDE ( _system_r = 0x40054510 ); -PROVIDE ( TASK_DESC_DBG = 0x3fcef3a0 ); -PROVIDE ( TASK_DESC_LLC = 0x3fcef3e8 ); -PROVIDE ( TASK_DESC_LLM = 0x3fcef3f8 ); -PROVIDE ( TASK_DESC_MISC = 0x3ff090d8 ); -PROVIDE ( tdefl_compress = 0x40036610 ); -PROVIDE ( tdefl_compress_buffer = 0x40036d6c ); -PROVIDE ( tdefl_compress_mem_to_mem = 0x40036e84 ); -PROVIDE ( tdefl_compress_mem_to_output = 0x40036e64 ); -PROVIDE ( tdefl_get_adler32 = 0x40036e5c ); -PROVIDE ( tdefl_get_prev_return_status = 0x40036e54 ); -PROVIDE ( tdefl_init = 0x40036d88 ); -PROVIDE ( tdefl_write_image_to_png_file_in_memory = 0x40036e98 ); -PROVIDE ( tdefl_write_image_to_png_file_in_memory_ex = 0x40036e8c ); -PROVIDE ( _text_end = 0x400568d0 ); -PROVIDE ( _text_end_btdm_rom = 0x40032170 ); -PROVIDE ( _text_start = 0x40039438 ); -PROVIDE ( _text_start_btdm_rom = 0x4000056c ); -PROVIDE ( timer_env = 0x3fcefb9c ); -PROVIDE ( _times_r = 0x40054540 ); -PROVIDE ( tinfl_decompress = 0x4003542c ); -PROVIDE ( tinfl_decompress_mem_to_callback = 0x400365e4 ); -PROVIDE ( tinfl_decompress_mem_to_mem = 0x400365a4 ); -PROVIDE ( toascii = 0x400558b8 ); -PROVIDE ( tolower = 0x4003b990 ); -PROVIDE ( toupper = 0x4003b9ac ); -PROVIDE ( __truncdfsf2 = 0x4003c35c ); -PROVIDE ( uart_acm_dev = 0x3fcef350 ); -PROVIDE ( uartAttach = 0x40049414 ); -PROVIDE ( uart_baudrate_detect = 0x40049474 ); -PROVIDE ( uart_buff_switch = 0x40049a9c ); -PROVIDE ( UartConnCheck = 0x400485d8 ); -PROVIDE ( UartConnectProc = 0x400488d8 ); -PROVIDE ( UartDev = 0x3fcef354 ); -PROVIDE ( uart_div_modify = 0x40049568 ); -PROVIDE ( uart_div_reinit = 0x400495e0 ); -PROVIDE ( UartDwnLdProc = 0x40048d10 ); -PROVIDE ( UartGetCmdLn = 0x40049c7c ); -PROVIDE ( Uart_Init = 0x40049624 ); -PROVIDE ( Uart_Init_USB = 0x4004939c ); -PROVIDE ( UartRegReadProc = 0x4004893c ); -PROVIDE ( UartRegWriteProc = 0x400488e8 ); -PROVIDE ( uart_rx_intr_handler = 0x400491ec ); -PROVIDE ( uart_rx_one_char = 0x40049918 ); -PROVIDE ( uart_rx_one_char_block = 0x400498bc ); -PROVIDE ( uart_rx_readbuff = 0x40049a54 ); -PROVIDE ( UartRxString = 0x400499bc ); -PROVIDE ( UartSecureDwnLdProc = 0x40048fd8 ); -PROVIDE ( UartSetBaudProc = 0x400489b0 ); -PROVIDE ( UartSpiAttachProc = 0x40048964 ); -PROVIDE ( UartSpiReadProc = 0x40048980 ); -PROVIDE ( uart_tx_flush = 0x40049850 ); -PROVIDE ( uart_tx_one_char = 0x40049820 ); -PROVIDE ( uart_tx_one_char2 = 0x40049838 ); -PROVIDE ( uart_tx_switch = 0x40049468 ); -PROVIDE ( uart_tx_wait_idle = 0x40049884 ); -PROVIDE ( uart_usb_enable_reset_on_rts = 0x400493dc ); -PROVIDE ( Uart_USB_Send_Testament = 0x4004935c ); -PROVIDE ( __ucmpdi2 = 0x40037ed8 ); -PROVIDE ( __udivdi3 = 0x40056160 ); -PROVIDE ( __udivmoddi4 = 0x40039140 ); -PROVIDE ( __udivsi3 = 0x400558d8 ); -PROVIDE ( __udiv_w_sdiv = 0x40039138 ); -PROVIDE ( __umoddi3 = 0x400563e4 ); -PROVIDE ( __umodsi3 = 0x400558e0 ); -PROVIDE ( __umulsidi3 = 0x400558e8 ); -PROVIDE ( _unlink_r = 0x40054584 ); -PROVIDE ( unloaded_area = 0x3fcef8dc ); -PROVIDE ( __unorddf2 = 0x40037e8c ); -PROVIDE ( __unordsf2 = 0x40037b10 ); -PROVIDE ( usb_cancel_transfer = 0x4004bfd0 ); -PROVIDE ( usb_data_stuff = 0x3ff0938c ); -PROVIDE ( usb_dc_attach = 0x4004ac1c ); -PROVIDE ( usb_dc_check_poll_for_interrupts = 0x4004b6d0 ); -PROVIDE ( usb_dc_detach = 0x4004ad60 ); -PROVIDE ( usb_dc_ep_check_cap = 0x4004ade4 ); -PROVIDE ( usb_dc_ep_clear_stall = 0x4004b040 ); -PROVIDE ( usb_dc_ep_configure = 0x4004ae28 ); -PROVIDE ( usb_dc_ep_disable = 0x4004b23c ); -PROVIDE ( usb_dc_ep_enable = 0x4004b17c ); -PROVIDE ( usb_dc_ep_flush = 0x4004b308 ); -PROVIDE ( usb_dc_ep_halt = 0x4004b0ac ); -PROVIDE ( usb_dc_ep_is_stalled = 0x4004b10c ); -PROVIDE ( usb_dc_ep_mps = 0x4004b6a8 ); -PROVIDE ( usb_dc_ep_read = 0x4004b628 ); -PROVIDE ( usb_dc_ep_read_continue = 0x4004b5e8 ); -PROVIDE ( usb_dc_ep_read_wait = 0x4004b50c ); -PROVIDE ( usb_dc_ep_set_callback = 0x4004b660 ); -PROVIDE ( usb_dc_ep_set_stall = 0x4004afe0 ); -PROVIDE ( usb_dc_ep_write = 0x4004b3d4 ); -PROVIDE ( usb_dc_ep_write_would_block = 0x4004b374 ); -PROVIDE ( usb_dc_prepare_persist = 0x4004a92c ); -PROVIDE ( usb_dc_reset = 0x4004ad94 ); -PROVIDE ( usb_dc_set_address = 0x4004adac ); -PROVIDE ( usb_dc_set_status_callback = 0x4004b69c ); -PROVIDE ( usb_deconfig = 0x4004bd70 ); -PROVIDE ( usb_dev_get_configuration = 0x4004bd14 ); -PROVIDE ( usb_dev_resume = 0x4004bd00 ); -PROVIDE ( usb_dfu_force_detach = 0x4004c380 ); -PROVIDE ( usb_dfu_init = 0x4004c368 ); -PROVIDE ( usb_dfu_set_detach_cb = 0x4004c0ac ); -PROVIDE ( usb_disable = 0x4004be20 ); -PROVIDE ( usb_dw_isr_handler = 0x4004a98c ); -PROVIDE ( usb_enable = 0x4004bd90 ); -PROVIDE ( usb_ep_clear_stall = 0x4004be90 ); -PROVIDE ( usb_ep_read_continue = 0x4004beb8 ); -PROVIDE ( usb_ep_read_wait = 0x4004bea0 ); -PROVIDE ( usb_ep_set_stall = 0x4004be80 ); -PROVIDE ( usb_get_descriptor = 0x4004b77c ); -PROVIDE ( usb_read = 0x4004be68 ); -PROVIDE ( usb_set_config = 0x4004bd2c ); -PROVIDE ( usb_set_current_descriptor = 0x4004b764 ); -PROVIDE ( usb_transfer = 0x4004bf1c ); -PROVIDE ( usb_transfer_ep_callback = 0x4004bec8 ); -PROVIDE ( usb_transfer_sync = 0x4004c020 ); -PROVIDE ( usb_write = 0x4004be50 ); -PROVIDE ( usb_write_would_block = 0x4004be40 ); -PROVIDE ( user_code_start = 0x3fced914 ); -PROVIDE ( _UserExceptionVector = 0x40000340 ); -PROVIDE ( _UserExceptionVector_text_end = 0x40000365 ); -PROVIDE ( _UserExceptionVector_text_start = 0x40000340 ); -PROVIDE ( utoa = 0x4003225c ); -PROVIDE ( __utoa = 0x400321f4 ); -PROVIDE ( VerifyFlashMd5Proc = 0x40048b58 ); -PROVIDE ( veryBigHexP256 = 0x3ff080f4 ); -PROVIDE ( vfiprintf = 0x400330f4 ); -PROVIDE ( _vfiprintf_r = 0x40032df8 ); -PROVIDE ( vflash_mem = 0x3fcef998 ); -PROVIDE ( vfprintf = 0x400330f4 ); -PROVIDE ( _vfprintf_r = 0x40032df8 ); -PROVIDE ( vhci_env_p = 0x3fcefba4 ); -PROVIDE ( vnd_hci_command_handler_wrapper = 0x40002f20 ); -PROVIDE ( Wait_SPI_Idle = 0x4004d158 ); -PROVIDE ( wcrtomb = 0x40033618 ); -PROVIDE ( _wcrtomb_r = 0x400335c0 ); -PROVIDE ( _wctomb_r = 0x40033c88 ); -PROVIDE ( _WindowOverflow12 = 0x40000100 ); -PROVIDE ( _WindowOverflow4 = 0x40000000 ); -PROVIDE ( _WindowOverflow8 = 0x40000080 ); -PROVIDE ( _WindowUnderflow12 = 0x40000140 ); -PROVIDE ( _WindowUnderflow4 = 0x40000040 ); -PROVIDE ( _WindowUnderflow8 = 0x400000c0 ); -PROVIDE ( _WindowVectors_text_end = 0x40000170 ); -PROVIDE ( _WindowVectors_text_start = 0x40000000 ); -PROVIDE ( write = 0x4003b978 ); -PROVIDE ( _write_r = 0x40054670 ); -PROVIDE ( __XT_EXCEPTION_DESCS__ = 0x3ff0fff0 ); -PROVIDE ( __XT_EXCEPTION_DESCS_END__ = 0x3ff0fff0 ); -PROVIDE ( __XT_EXCEPTION_TABLE__ = 0x3ff0ff00 ); -PROVIDE ( xthal_bcopy = 0x400552ac ); -PROVIDE ( xthal_copy123 = 0x40055338 ); -PROVIDE ( xthal_get_ccompare = 0x4005543c ); -PROVIDE ( xthal_get_ccount = 0x40055410 ); -PROVIDE ( xthal_get_interrupt = 0x4005545c ); -PROVIDE ( Xthal_intlevel = 0x3ff0c504 ); -PROVIDE ( xthal_memcpy = 0x400552d0 ); -PROVIDE ( xthal_set_ccompare = 0x40055418 ); -PROVIDE ( xthal_set_intclear = 0x40055464 ); -PROVIDE ( xthals_hw_configid0 = 0xc2f0fffe ); -PROVIDE ( xthals_hw_configid1 = 0x23086d67 ); -PROVIDE ( xthal_spill_registers_into_stack_nw = 0x400548f8 ); -PROVIDE ( xthals_release_major = 0x00002ee0 ); -PROVIDE ( xthals_release_minor = 0x0000000c ); -PROVIDE ( xthal_window_spill = 0x40054a0c ); -PROVIDE ( xthal_window_spill_nw = 0x400548f8 ); -PROVIDE ( _xtos_alloca_handler = 0x40000010 ); -PROVIDE ( xtos_cause3_handler = 0x400396bc ); -PROVIDE ( xtos_c_handler_table = 0x3fcee27c ); -PROVIDE ( xtos_c_wrapper_handler = 0x400396cc ); -PROVIDE ( _xtos_enabled = 0x3fcee388 ); -PROVIDE ( xtos_exc_handler_table = 0x3fcee17c ); -PROVIDE ( xtos_interrupt_mask_table = 0x3fcee490 ); -PROVIDE ( xtos_interrupt_table = 0x3fcee390 ); -PROVIDE ( _xtos_ints_off = 0x400548d0 ); -PROVIDE ( _xtos_ints_on = 0x400548ac ); -PROVIDE ( _xtos_intstruct = 0x3fcee388 ); -PROVIDE ( _xtos_l1int_handler = 0x40039790 ); -PROVIDE ( xtos_p_none = 0x40055234 ); -PROVIDE ( _xtos_restore_intlevel = 0x400398a0 ); -PROVIDE ( _xtos_return_from_exc = 0x4005523c ); -PROVIDE ( _xtos_set_exception_handler = 0x400395f0 ); -PROVIDE ( _xtos_set_interrupt_handler = 0x40054870 ); -PROVIDE ( _xtos_set_interrupt_handler_arg = 0x40054834 ); -PROVIDE ( _xtos_set_intlevel = 0x40055254 ); -PROVIDE ( _xtos_set_min_intlevel = 0x40055270 ); -PROVIDE ( _xtos_set_vpri = 0x400398ac ); -PROVIDE ( _xtos_syscall_handler = 0x40039638 ); -PROVIDE ( xtos_unhandled_exception = 0x40055294 ); -PROVIDE ( xtos_unhandled_interrupt = 0x400552a4 ); -PROVIDE ( _xtos_vectors_ref_ = 0x00000000 ); -PROVIDE ( _xtos_vpri_enabled = 0x3fcee38c ); diff --git a/flasher_stub/ld/rom_8266.ld b/flasher_stub/ld/rom_8266.ld deleted file mode 100644 index 9269fa2de..000000000 --- a/flasher_stub/ld/rom_8266.ld +++ /dev/null @@ -1,351 +0,0 @@ -PROVIDE ( Cache_Read_Disable = 0x400047f0 ); -PROVIDE ( Cache_Read_Enable = 0x40004678 ); -PROVIDE ( FilePacketSendReqMsgProc = 0x400035a0 ); -PROVIDE ( FlashDwnLdParamCfgMsgProc = 0x4000368c ); -PROVIDE ( FlashDwnLdStartMsgProc = 0x40003538 ); -PROVIDE ( FlashDwnLdStopReqMsgProc = 0x40003658 ); -PROVIDE ( GetUartDevice = 0x40003f4c ); -PROVIDE ( MD5Final = 0x40009900 ); -PROVIDE ( MD5Init = 0x40009818 ); -PROVIDE ( MD5Update = 0x40009834 ); -PROVIDE ( MemDwnLdStartMsgProc = 0x400036c4 ); -PROVIDE ( MemDwnLdStopReqMsgProc = 0x4000377c ); -PROVIDE ( MemPacketSendReqMsgProc = 0x400036f0 ); -PROVIDE ( RcvMsg = 0x40003eac ); -PROVIDE ( SHA1Final = 0x4000b648 ); -PROVIDE ( SHA1Init = 0x4000b584 ); -PROVIDE ( SHA1Transform = 0x4000a364 ); -PROVIDE ( SHA1Update = 0x4000b5a8 ); -PROVIDE ( SPI_read_status = 0x400043c8 ); -PROVIDE ( SPI_write_status = 0x40004400 ); -PROVIDE ( SPI_write_enable = 0x4000443c ); -PROVIDE ( Wait_SPI_Idle = 0x4000448c ); -PROVIDE ( Enable_QMode = 0x400044c0 ); -PROVIDE ( SPIEraseArea = 0x40004b44 ); -PROVIDE ( SPIEraseBlock = 0x400049b4 ); -PROVIDE ( SPIEraseChip = 0x40004984 ); -PROVIDE ( SPIEraseSector = 0x40004a00 ); -PROVIDE ( SPILock = 0x400048a8 ); -PROVIDE ( SPIParamCfg = 0x40004c2c ); -PROVIDE ( SPIRead = 0x40004b1c ); -PROVIDE ( SPIReadModeCnfig = 0x400048ec ); -PROVIDE ( SPIUnlock = 0x40004878 ); -PROVIDE ( SPIWrite = 0x40004a4c ); -PROVIDE ( SelectSpiFunction = 0x40003f58 ); -PROVIDE ( SendMsg = 0x40003cf4 ); -PROVIDE ( UartConnCheck = 0x40003230 ); -PROVIDE ( UartConnectProc = 0x400037a0 ); -PROVIDE ( UartDwnLdProc = 0x40003368 ); -PROVIDE ( UartGetCmdLn = 0x40003ef4 ); -PROVIDE ( UartRegReadProc = 0x4000381c ); -PROVIDE ( UartRegWriteProc = 0x400037ac ); -PROVIDE ( UartRxString = 0x40003c30 ); -PROVIDE ( Uart_Init = 0x40003a14 ); -PROVIDE ( _DebugExceptionVector = 0x40000010 ); -PROVIDE ( _DoubleExceptionVector = 0x40000070 ); -PROVIDE ( _KernelExceptionVector = 0x40000030 ); -PROVIDE ( _NMIExceptionVector = 0x40000020 ); -PROVIDE ( _ResetHandler = 0x400000a4 ); -PROVIDE ( _ResetVector = 0x40000080 ); -PROVIDE ( _UserExceptionVector = 0x40000050 ); -PROVIDE ( __adddf3 = 0x4000c538 ); -PROVIDE ( __addsf3 = 0x4000c180 ); -PROVIDE ( __divdf3 = 0x4000cb94 ); -PROVIDE ( __divdi3 = 0x4000ce60 ); -PROVIDE ( __divsi3 = 0x4000dc88 ); -PROVIDE ( __extendsfdf2 = 0x4000cdfc ); -PROVIDE ( __fixdfsi = 0x4000ccb8 ); -PROVIDE ( __fixunsdfsi = 0x4000cd00 ); -PROVIDE ( __fixunssfsi = 0x4000c4c4 ); -PROVIDE ( __floatsidf = 0x4000e2f0 ); -PROVIDE ( __floatsisf = 0x4000e2ac ); -PROVIDE ( __floatunsidf = 0x4000e2e8 ); -PROVIDE ( __floatunsisf = 0x4000e2a4 ); -PROVIDE ( __muldf3 = 0x4000c8f0 ); -PROVIDE ( __muldi3 = 0x40000650 ); -PROVIDE ( __mulsf3 = 0x4000c3dc ); -PROVIDE ( __subdf3 = 0x4000c688 ); -PROVIDE ( __subsf3 = 0x4000c268 ); -PROVIDE ( __truncdfsf2 = 0x4000cd5c ); -PROVIDE ( __udivdi3 = 0x4000d310 ); -PROVIDE ( __udivsi3 = 0x4000e21c ); -PROVIDE ( __umoddi3 = 0x4000d770 ); -PROVIDE ( __umodsi3 = 0x4000e268 ); -PROVIDE ( __umulsidi3 = 0x4000dcf0 ); -PROVIDE ( _rom_store = 0x4000e388 ); -PROVIDE ( _rom_store_table = 0x4000e328 ); -PROVIDE ( _start = 0x4000042c ); -PROVIDE ( _xtos_alloca_handler = 0x4000dbe0 ); -PROVIDE ( _xtos_c_wrapper_handler = 0x40000598 ); -PROVIDE ( _xtos_cause3_handler = 0x40000590 ); -PROVIDE ( _xtos_ints_off = 0x4000bda4 ); -PROVIDE ( _xtos_ints_on = 0x4000bd84 ); -PROVIDE ( _xtos_l1int_handler = 0x4000048c ); -PROVIDE ( _xtos_p_none = 0x4000dbf8 ); -PROVIDE ( _xtos_restore_intlevel = 0x4000056c ); -PROVIDE ( _xtos_return_from_exc = 0x4000dc54 ); -PROVIDE ( _xtos_set_exception_handler = 0x40000454 ); -PROVIDE ( _xtos_set_interrupt_handler = 0x4000bd70 ); -PROVIDE ( _xtos_set_interrupt_handler_arg = 0x4000bd28 ); -PROVIDE ( _xtos_set_intlevel = 0x4000dbfc ); -PROVIDE ( _xtos_set_min_intlevel = 0x4000dc18 ); -PROVIDE ( _xtos_set_vpri = 0x40000574 ); -PROVIDE ( _xtos_syscall_handler = 0x4000dbe4 ); -PROVIDE ( _xtos_unhandled_exception = 0x4000dc44 ); -PROVIDE ( _xtos_unhandled_interrupt = 0x4000dc3c ); -PROVIDE ( aes_decrypt = 0x400092d4 ); -PROVIDE ( aes_decrypt_deinit = 0x400092e4 ); -PROVIDE ( aes_decrypt_init = 0x40008ea4 ); -PROVIDE ( aes_unwrap = 0x40009410 ); -PROVIDE ( base64_decode = 0x40009648 ); -PROVIDE ( base64_encode = 0x400094fc ); -PROVIDE ( bzero = 0x4000de84 ); -PROVIDE ( cmd_parse = 0x40000814 ); -PROVIDE ( conv_str_decimal = 0x40000b24 ); -PROVIDE ( conv_str_hex = 0x40000cb8 ); -PROVIDE ( convert_para_str = 0x40000a60 ); -PROVIDE ( dtm_get_intr_mask = 0x400026d0 ); -PROVIDE ( dtm_params_init = 0x4000269c ); -PROVIDE ( dtm_set_intr_mask = 0x400026c8 ); -PROVIDE ( dtm_set_params = 0x400026dc ); -PROVIDE ( eprintf = 0x40001d14 ); -PROVIDE ( eprintf_init_buf = 0x40001cb8 ); -PROVIDE ( eprintf_to_host = 0x40001d48 ); -PROVIDE ( est_get_printf_buf_remain_len = 0x40002494 ); -PROVIDE ( est_reset_printf_buf_len = 0x4000249c ); -PROVIDE ( ets_bzero = 0x40002ae8 ); -PROVIDE ( ets_char2xdigit = 0x40002b74 ); -PROVIDE ( ets_delay_us = 0x40002ecc ); -PROVIDE ( ets_enter_sleep = 0x400027b8 ); -PROVIDE ( ets_external_printf = 0x40002578 ); -PROVIDE ( ets_get_cpu_frequency = 0x40002f0c ); -PROVIDE ( ets_getc = 0x40002bcc ); -PROVIDE ( ets_install_external_printf = 0x40002450 ); -PROVIDE ( ets_install_putc1 = 0x4000242c ); -PROVIDE ( ets_install_putc2 = 0x4000248c ); -PROVIDE ( ets_install_uart_printf = 0x40002438 ); -PROVIDE ( ets_intr_lock = 0x40000f74 ); -PROVIDE ( ets_intr_unlock = 0x40000f80 ); -PROVIDE ( ets_isr_attach = 0x40000f88 ); -PROVIDE ( ets_isr_mask = 0x40000f98 ); -PROVIDE ( ets_isr_unmask = 0x40000fa8 ); -PROVIDE ( ets_memcmp = 0x400018d4 ); -PROVIDE ( ets_memcpy = 0x400018b4 ); -PROVIDE ( ets_memmove = 0x400018c4 ); -PROVIDE ( ets_memset = 0x400018a4 ); -PROVIDE ( ets_post = 0x40000e24 ); -PROVIDE ( ets_printf = 0x400024cc ); -PROVIDE ( ets_putc = 0x40002be8 ); -PROVIDE ( ets_rtc_int_register = 0x40002a40 ); -PROVIDE ( ets_run = 0x40000e04 ); -PROVIDE ( ets_set_idle_cb = 0x40000dc0 ); -PROVIDE ( ets_set_user_start = 0x40000fbc ); -PROVIDE ( ets_str2macaddr = 0x40002af8 ); -PROVIDE ( ets_strcmp = 0x40002aa8 ); -PROVIDE ( ets_strcpy = 0x40002a88 ); -PROVIDE ( ets_strlen = 0x40002ac8 ); -PROVIDE ( ets_strncmp = 0x40002ab8 ); -PROVIDE ( ets_strncpy = 0x40002a98 ); -PROVIDE ( ets_strstr = 0x40002ad8 ); -PROVIDE ( ets_task = 0x40000dd0 ); -PROVIDE ( ets_timer_arm = 0x40002cc4 ); -PROVIDE ( ets_timer_disarm = 0x40002d40 ); -PROVIDE ( ets_timer_done = 0x40002d80 ); -PROVIDE ( ets_timer_handler_isr = 0x40002da8 ); -PROVIDE ( ets_timer_init = 0x40002e68 ); -PROVIDE ( ets_timer_setfn = 0x40002c48 ); -PROVIDE ( ets_uart_printf = 0x40002544 ); -PROVIDE ( ets_update_cpu_frequency = 0x40002f04 ); -PROVIDE ( ets_vprintf = 0x40001f00 ); -PROVIDE ( ets_wdt_disable = 0x400030f0 ); -PROVIDE ( ets_wdt_enable = 0x40002fa0 ); -PROVIDE ( ets_wdt_get_mode = 0x40002f34 ); -PROVIDE ( ets_wdt_init = 0x40003170 ); -PROVIDE ( ets_wdt_restore = 0x40003158 ); -PROVIDE ( ets_write_char = 0x40001da0 ); -PROVIDE ( get_first_seg = 0x4000091c ); -PROVIDE ( gpio_init = 0x40004c50 ); -PROVIDE ( gpio_input_get = 0x40004cf0 ); -PROVIDE ( gpio_intr_ack = 0x40004dcc ); -PROVIDE ( gpio_intr_handler_register = 0x40004e28 ); -PROVIDE ( gpio_intr_pending = 0x40004d88 ); -PROVIDE ( gpio_intr_test = 0x40004efc ); -PROVIDE ( gpio_output_set = 0x40004cd0 ); -PROVIDE ( gpio_pin_intr_state_set = 0x40004d90 ); -PROVIDE ( gpio_pin_wakeup_disable = 0x40004ed4 ); -PROVIDE ( gpio_pin_wakeup_enable = 0x40004e90 ); -PROVIDE ( gpio_register_get = 0x40004d5c ); -PROVIDE ( gpio_register_set = 0x40004d04 ); -PROVIDE ( hmac_md5 = 0x4000a2cc ); -PROVIDE ( hmac_md5_vector = 0x4000a160 ); -PROVIDE ( hmac_sha1 = 0x4000ba28 ); -PROVIDE ( hmac_sha1_vector = 0x4000b8b4 ); -PROVIDE ( lldesc_build_chain = 0x40004f40 ); -PROVIDE ( lldesc_num2link = 0x40005050 ); -PROVIDE ( lldesc_set_owner = 0x4000507c ); -PROVIDE ( main = 0x40000fec ); -PROVIDE ( md5_vector = 0x400097ac ); -PROVIDE ( mem_calloc = 0x40001c2c ); -PROVIDE ( mem_free = 0x400019e0 ); -PROVIDE ( mem_init = 0x40001998 ); -PROVIDE ( mem_malloc = 0x40001b40 ); -PROVIDE ( mem_realloc = 0x40001c6c ); -PROVIDE ( mem_trim = 0x40001a14 ); -PROVIDE ( mem_zalloc = 0x40001c58 ); -PROVIDE ( memcmp = 0x4000dea8 ); -PROVIDE ( memcpy = 0x4000df48 ); -PROVIDE ( memmove = 0x4000e04c ); -PROVIDE ( memset = 0x4000e190 ); -PROVIDE ( multofup = 0x400031c0 ); -PROVIDE ( pbkdf2_sha1 = 0x4000b840 ); -PROVIDE ( phy_get_romfuncs = 0x40006b08 ); -PROVIDE ( rand = 0x40000600 ); -PROVIDE ( rc4_skip = 0x4000dd68 ); -PROVIDE ( recv_packet = 0x40003d08 ); -PROVIDE ( remove_head_space = 0x40000a04 ); -PROVIDE ( rijndaelKeySetupDec = 0x40008dd0 ); -PROVIDE ( rijndaelKeySetupEnc = 0x40009300 ); -PROVIDE ( rom_abs_temp = 0x400060c0 ); -PROVIDE ( rom_ana_inf_gating_en = 0x40006b10 ); -PROVIDE ( rom_cal_tos_v50 = 0x40007a28 ); -PROVIDE ( rom_chip_50_set_channel = 0x40006f84 ); -PROVIDE ( rom_chip_v5_disable_cca = 0x400060d0 ); -PROVIDE ( rom_chip_v5_enable_cca = 0x400060ec ); -PROVIDE ( rom_chip_v5_rx_init = 0x4000711c ); -PROVIDE ( rom_chip_v5_sense_backoff = 0x4000610c ); -PROVIDE ( rom_chip_v5_tx_init = 0x4000718c ); -PROVIDE ( rom_dc_iq_est = 0x4000615c ); -PROVIDE ( rom_en_pwdet = 0x400061b8 ); -PROVIDE ( rom_get_bb_atten = 0x40006238 ); -PROVIDE ( rom_get_corr_power = 0x40006260 ); -PROVIDE ( rom_get_fm_sar_dout = 0x400062dc ); -PROVIDE ( rom_get_noisefloor = 0x40006394 ); -PROVIDE ( rom_get_power_db = 0x400063b0 ); -PROVIDE ( rom_i2c_readReg = 0x40007268 ); -PROVIDE ( rom_i2c_readReg_Mask = 0x4000729c ); -PROVIDE ( rom_i2c_writeReg = 0x400072d8 ); -PROVIDE ( rom_i2c_writeReg_Mask = 0x4000730c ); -PROVIDE ( rom_iq_est_disable = 0x40006400 ); -PROVIDE ( rom_iq_est_enable = 0x40006430 ); -PROVIDE ( rom_linear_to_db = 0x40006484 ); -PROVIDE ( rom_mhz2ieee = 0x400065a4 ); -PROVIDE ( rom_pbus_dco___SA2 = 0x40007bf0 ); -PROVIDE ( rom_pbus_debugmode = 0x4000737c ); -PROVIDE ( rom_pbus_enter_debugmode = 0x40007410 ); -PROVIDE ( rom_pbus_exit_debugmode = 0x40007448 ); -PROVIDE ( rom_pbus_force_test = 0x4000747c ); -PROVIDE ( rom_pbus_rd = 0x400074d8 ); -PROVIDE ( rom_pbus_set_rxgain = 0x4000754c ); -PROVIDE ( rom_pbus_set_txgain = 0x40007610 ); -PROVIDE ( rom_pbus_workmode = 0x40007648 ); -PROVIDE ( rom_pbus_xpd_rx_off = 0x40007688 ); -PROVIDE ( rom_pbus_xpd_rx_on = 0x400076cc ); -PROVIDE ( rom_pbus_xpd_tx_off = 0x400076fc ); -PROVIDE ( rom_pbus_xpd_tx_on = 0x40007740 ); -PROVIDE ( rom_pbus_xpd_tx_on__low_gain = 0x400077a0 ); -PROVIDE ( rom_phy_reset_req = 0x40007804 ); -PROVIDE ( rom_restart_cal = 0x4000781c ); -PROVIDE ( rom_rfcal_pwrctrl = 0x40007eb4 ); -PROVIDE ( rom_rfcal_rxiq = 0x4000804c ); -PROVIDE ( rom_rfcal_rxiq_set_reg = 0x40008264 ); -PROVIDE ( rom_rfcal_txcap = 0x40008388 ); -PROVIDE ( rom_rfcal_txiq = 0x40008610 ); -PROVIDE ( rom_rfcal_txiq_cover = 0x400088b8 ); -PROVIDE ( rom_rfcal_txiq_set_reg = 0x40008a70 ); -PROVIDE ( rom_rfpll_reset = 0x40007868 ); -PROVIDE ( rom_rfpll_set_freq = 0x40007968 ); -PROVIDE ( rom_rxiq_cover_mg_mp = 0x40008b6c ); -PROVIDE ( rom_rxiq_get_mis = 0x40006628 ); -PROVIDE ( rom_sar_init = 0x40006738 ); -PROVIDE ( rom_set_ana_inf_tx_scale = 0x4000678c ); -PROVIDE ( rom_set_channel_freq = 0x40006c50 ); -PROVIDE ( rom_set_loopback_gain = 0x400067c8 ); -PROVIDE ( rom_set_noise_floor = 0x40006830 ); -PROVIDE ( rom_set_rxclk_en = 0x40006550 ); -PROVIDE ( rom_set_txbb_atten = 0x40008c6c ); -PROVIDE ( rom_set_txclk_en = 0x4000650c ); -PROVIDE ( rom_set_txiq_cal = 0x40008d34 ); -PROVIDE ( rom_start_noisefloor = 0x40006874 ); -PROVIDE ( rom_start_tx_tone = 0x400068b4 ); -PROVIDE ( rom_stop_tx_tone = 0x4000698c ); -PROVIDE ( rom_tx_mac_disable = 0x40006a98 ); -PROVIDE ( rom_tx_mac_enable = 0x40006ad4 ); -PROVIDE ( rom_txtone_linear_pwr = 0x40006a1c ); -PROVIDE ( rom_write_rfpll_sdm = 0x400078dc ); -PROVIDE ( roundup2 = 0x400031b4 ); -PROVIDE ( rtc_enter_sleep = 0x40002870 ); -PROVIDE ( rtc_get_reset_reason = 0x400025e0 ); -PROVIDE ( rtc_intr_handler = 0x400029ec ); -PROVIDE ( rtc_set_sleep_mode = 0x40002668 ); -PROVIDE ( save_rxbcn_mactime = 0x400027a4 ); -PROVIDE ( save_tsf_us = 0x400027ac ); -PROVIDE ( send_packet = 0x40003c80 ); -PROVIDE ( sha1_prf = 0x4000ba48 ); -PROVIDE ( sha1_vector = 0x4000a2ec ); -PROVIDE ( sip_alloc_to_host_evt = 0x40005180 ); -PROVIDE ( sip_get_ptr = 0x400058a8 ); -PROVIDE ( sip_get_state = 0x40005668 ); -PROVIDE ( sip_init_attach = 0x4000567c ); -PROVIDE ( sip_install_rx_ctrl_cb = 0x4000544c ); -PROVIDE ( sip_install_rx_data_cb = 0x4000545c ); -PROVIDE ( sip_post = 0x400050fc ); -PROVIDE ( sip_post_init = 0x400056c4 ); -PROVIDE ( sip_reclaim_from_host_cmd = 0x4000534c ); -PROVIDE ( sip_reclaim_tx_data_pkt = 0x400052c0 ); -PROVIDE ( sip_send = 0x40005808 ); -PROVIDE ( sip_to_host_chain_append = 0x40005864 ); -PROVIDE ( sip_to_host_evt_send_done = 0x40005234 ); -PROVIDE ( slc_add_credits = 0x400060ac ); -PROVIDE ( slc_enable = 0x40005d90 ); -PROVIDE ( slc_from_host_chain_fetch = 0x40005f24 ); -PROVIDE ( slc_from_host_chain_recycle = 0x40005e94 ); -PROVIDE ( slc_init_attach = 0x40005c50 ); -PROVIDE ( slc_init_credit = 0x4000608c ); -PROVIDE ( slc_pause_from_host = 0x40006014 ); -PROVIDE ( slc_reattach = 0x40005c1c ); -PROVIDE ( slc_resume_from_host = 0x4000603c ); -PROVIDE ( slc_select_tohost_gpio = 0x40005dc0 ); -PROVIDE ( slc_select_tohost_gpio_mode = 0x40005db8 ); -PROVIDE ( slc_send_to_host_chain = 0x40005de4 ); -PROVIDE ( slc_set_host_io_max_window = 0x40006068 ); -PROVIDE ( slc_to_host_chain_recycle = 0x40005f10 ); -PROVIDE ( software_reset = 0x4000264c ); -PROVIDE ( spi_flash_attach = 0x40004644 ); -PROVIDE ( srand = 0x400005f0 ); -PROVIDE ( strcmp = 0x4000bdc8 ); -PROVIDE ( strcpy = 0x4000bec8 ); -PROVIDE ( strlen = 0x4000bf4c ); -PROVIDE ( strncmp = 0x4000bfa8 ); -PROVIDE ( strncpy = 0x4000c0a0 ); -PROVIDE ( strstr = 0x4000e1e0 ); -PROVIDE ( timer_insert = 0x40002c64 ); -PROVIDE ( uartAttach = 0x4000383c ); -PROVIDE ( uart_baudrate_detect = 0x40003924 ); -PROVIDE ( uart_buff_switch = 0x400038a4 ); -PROVIDE ( uart_div_modify = 0x400039d8 ); -PROVIDE ( uart_rx_intr_handler = 0x40003bbc ); -PROVIDE ( uart_rx_one_char = 0x40003b8c ); -PROVIDE ( uart_rx_one_char_block = 0x40003b64 ); -PROVIDE ( uart_rx_readbuff = 0x40003ec8 ); -PROVIDE ( uart_tx_one_char = 0x40003b30 ); -PROVIDE ( wepkey_128 = 0x4000bc40 ); -PROVIDE ( wepkey_64 = 0x4000bb3c ); -PROVIDE ( xthal_bcopy = 0x40000688 ); -PROVIDE ( xthal_copy123 = 0x4000074c ); -PROVIDE ( xthal_get_ccompare = 0x4000dd4c ); -PROVIDE ( xthal_get_ccount = 0x4000dd38 ); -PROVIDE ( xthal_get_interrupt = 0x4000dd58 ); -PROVIDE ( xthal_get_intread = 0x4000dd58 ); -PROVIDE ( xthal_memcpy = 0x400006c4 ); -PROVIDE ( xthal_set_ccompare = 0x4000dd40 ); -PROVIDE ( xthal_set_intclear = 0x4000dd60 ); -PROVIDE ( xthal_spill_registers_into_stack_nw = 0x4000e320 ); -PROVIDE ( xthal_window_spill = 0x4000e324 ); -PROVIDE ( xthal_window_spill_nw = 0x4000e320 ); - -PROVIDE ( Te0 = 0x3fffccf0 ); -PROVIDE ( Td0 = 0x3fffd100 ); -PROVIDE ( Td4s = 0x3fffd500); -PROVIDE ( rcons = 0x3fffd0f0); -PROVIDE ( UartDev = 0x3fffde10 ); -PROVIDE ( flashchip = 0x3fffc714); diff --git a/flasher_stub/ld/stub_32.ld b/flasher_stub/ld/stub_32.ld deleted file mode 100644 index 9ab825585..000000000 --- a/flasher_stub/ld/stub_32.ld +++ /dev/null @@ -1,29 +0,0 @@ -/* Note: stub is deliberately loaded close to the very top - of available RAM, to reduce change of colliding with anything - else... */ -MEMORY { - iram : org = 0x400BE000, len = 0x1000 - dram : org = 0x3ffcc000, len = 0x14000 -} - -ENTRY(stub_main) - -SECTIONS { - .text : ALIGN(4) { - *(.literal) - *(.text .text.*) - } > iram - - .bss : ALIGN(4) { - _bss_start = ABSOLUTE(.); - *(.bss) - _bss_end = ABSOLUTE(.); - } > dram - - .data : ALIGN(4) { - *(.data) - *(.rodata .rodata.*) - } > dram -} - -INCLUDE "rom_32.ld" diff --git a/flasher_stub/ld/stub_32c2.ld b/flasher_stub/ld/stub_32c2.ld deleted file mode 100644 index e0c0ec4ed..000000000 --- a/flasher_stub/ld/stub_32c2.ld +++ /dev/null @@ -1,26 +0,0 @@ -MEMORY { - iram : org = 0x40380000, len = 0x4000 - dram : org = 0x3FCA4000, len = 0x18000 -} - -ENTRY(stub_main) - -SECTIONS { - .text : ALIGN(4) { - *(.literal) - *(.text .text.*) - } > iram - - .bss : ALIGN(4) { - _bss_start = ABSOLUTE(.); - *(.bss) - _bss_end = ABSOLUTE(.); - } > dram - - .data : ALIGN(4) { - *(.data) - *(.rodata .rodata.*) - } > dram -} - -INCLUDE "rom_32c2.ld" diff --git a/flasher_stub/ld/stub_32c3.ld b/flasher_stub/ld/stub_32c3.ld deleted file mode 100644 index dc9d4201e..000000000 --- a/flasher_stub/ld/stub_32c3.ld +++ /dev/null @@ -1,26 +0,0 @@ -MEMORY { - iram : org = 0x40380000, len = 0x4000 - dram : org = 0x3FC84000, len = 0x18000 -} - -ENTRY(stub_main) - -SECTIONS { - .text : ALIGN(4) { - *(.literal) - *(.text .text.*) - } > iram - - .bss : ALIGN(4) { - _bss_start = ABSOLUTE(.); - *(.bss) - _bss_end = ABSOLUTE(.); - } > dram - - .data : ALIGN(4) { - *(.data) - *(.rodata .rodata.*) - } > dram -} - -INCLUDE "rom_32c3.ld" diff --git a/flasher_stub/ld/stub_32c5.ld b/flasher_stub/ld/stub_32c5.ld deleted file mode 100644 index 0ddc7cf96..000000000 --- a/flasher_stub/ld/stub_32c5.ld +++ /dev/null @@ -1,26 +0,0 @@ -MEMORY { - iram : org = 0x40800000, len = 0x4000 - dram : org = 0x40840000, len = 0x18000 -} - -ENTRY(stub_main) - -SECTIONS { - .text : ALIGN(4) { - *(.literal) - *(.text .text.*) - } > iram - - .bss : ALIGN(4) { - _bss_start = ABSOLUTE(.); - *(.bss) - _bss_end = ABSOLUTE(.); - } > dram - - .data : ALIGN(4) { - *(.data) - *(.rodata .rodata.*) - } > dram -} - -INCLUDE "rom_32c5.ld" diff --git a/flasher_stub/ld/stub_32c5_beta_3.ld b/flasher_stub/ld/stub_32c5_beta_3.ld deleted file mode 100644 index e1133674e..000000000 --- a/flasher_stub/ld/stub_32c5_beta_3.ld +++ /dev/null @@ -1,26 +0,0 @@ -MEMORY { - iram : org = 0x40800000, len = 0x4000 - dram : org = 0x40840000, len = 0x18000 -} - -ENTRY(stub_main) - -SECTIONS { - .text : ALIGN(4) { - *(.literal) - *(.text .text.*) - } > iram - - .bss : ALIGN(4) { - _bss_start = ABSOLUTE(.); - *(.bss) - _bss_end = ABSOLUTE(.); - } > dram - - .data : ALIGN(4) { - *(.data) - *(.rodata .rodata.*) - } > dram -} - -INCLUDE "rom_32c5_beta_3.ld" diff --git a/flasher_stub/ld/stub_32c6.ld b/flasher_stub/ld/stub_32c6.ld deleted file mode 100644 index 91b8d3137..000000000 --- a/flasher_stub/ld/stub_32c6.ld +++ /dev/null @@ -1,26 +0,0 @@ -MEMORY { - iram : org = 0x40800000, len = 0x4000 - dram : org = 0x40840000, len = 0x18000 -} - -ENTRY(stub_main) - -SECTIONS { - .text : ALIGN(4) { - *(.literal) - *(.text .text.*) - } > iram - - .bss : ALIGN(4) { - _bss_start = ABSOLUTE(.); - *(.bss) - _bss_end = ABSOLUTE(.); - } > dram - - .data : ALIGN(4) { - *(.data) - *(.rodata .rodata.*) - } > dram -} - -INCLUDE "rom_32c6.ld" diff --git a/flasher_stub/ld/stub_32c6_beta.ld b/flasher_stub/ld/stub_32c6_beta.ld deleted file mode 100644 index 5acb1029b..000000000 --- a/flasher_stub/ld/stub_32c6_beta.ld +++ /dev/null @@ -1,26 +0,0 @@ -MEMORY { - iram : org = 0x40380000, len = 0x4000 - dram : org = 0x3FC84000, len = 0x18000 -} - -ENTRY(stub_main) - -SECTIONS { - .text : ALIGN(4) { - *(.literal) - *(.text .text.*) - } > iram - - .bss : ALIGN(4) { - _bss_start = ABSOLUTE(.); - *(.bss) - _bss_end = ABSOLUTE(.); - } > dram - - .data : ALIGN(4) { - *(.data) - *(.rodata .rodata.*) - } > dram -} - -INCLUDE "rom_32c6_beta.ld" diff --git a/flasher_stub/ld/stub_32h2.ld b/flasher_stub/ld/stub_32h2.ld deleted file mode 100644 index c94f5939e..000000000 --- a/flasher_stub/ld/stub_32h2.ld +++ /dev/null @@ -1,26 +0,0 @@ -MEMORY { - iram : org = 0x40800000, len = 0x4000 - dram : org = 0x40830000, len = 0x18000 -} - -ENTRY(stub_main) - -SECTIONS { - .text : ALIGN(4) { - *(.literal) - *(.text .text.*) - } > iram - - .bss : ALIGN(4) { - _bss_start = ABSOLUTE(.); - *(.bss) - _bss_end = ABSOLUTE(.); - } > dram - - .data : ALIGN(4) { - *(.data) - *(.rodata .rodata.*) - } > dram -} - -INCLUDE "rom_32h2.ld" diff --git a/flasher_stub/ld/stub_32h2_beta_1.ld b/flasher_stub/ld/stub_32h2_beta_1.ld deleted file mode 100644 index 62b16372c..000000000 --- a/flasher_stub/ld/stub_32h2_beta_1.ld +++ /dev/null @@ -1,26 +0,0 @@ -MEMORY { - iram : org = 0x40380000, len = 0x4000 - dram : org = 0x3FC84000, len = 0x18000 -} - -ENTRY(stub_main) - -SECTIONS { - .text : ALIGN(4) { - *(.literal) - *(.text .text.*) - } > iram - - .bss : ALIGN(4) { - _bss_start = ABSOLUTE(.); - *(.bss) - _bss_end = ABSOLUTE(.); - } > dram - - .data : ALIGN(4) { - *(.data) - *(.rodata .rodata.*) - } > dram -} - -INCLUDE "rom_32h2_beta_1.ld" diff --git a/flasher_stub/ld/stub_32h2_beta_2.ld b/flasher_stub/ld/stub_32h2_beta_2.ld deleted file mode 100644 index 903b497ee..000000000 --- a/flasher_stub/ld/stub_32h2_beta_2.ld +++ /dev/null @@ -1,26 +0,0 @@ -MEMORY { - iram : org = 0x40380000, len = 0x4000 - dram : org = 0x3FC84000, len = 0x18000 -} - -ENTRY(stub_main) - -SECTIONS { - .text : ALIGN(4) { - *(.literal) - *(.text .text.*) - } > iram - - .bss : ALIGN(4) { - _bss_start = ABSOLUTE(.); - *(.bss) - _bss_end = ABSOLUTE(.); - } > dram - - .data : ALIGN(4) { - *(.data) - *(.rodata .rodata.*) - } > dram -} - -INCLUDE "rom_32h2_beta_2.ld" diff --git a/flasher_stub/ld/stub_32p4.ld b/flasher_stub/ld/stub_32p4.ld deleted file mode 100644 index bf7e46a4e..000000000 --- a/flasher_stub/ld/stub_32p4.ld +++ /dev/null @@ -1,26 +0,0 @@ -MEMORY { - iram : org = 0x4FF10000, len = 0x4000 - dram : org = 0x4FF50000, len = 0x18000 -} - -ENTRY(stub_main) - -SECTIONS { - .text : ALIGN(4) { - *(.literal) - *(.text .text.*) - } > iram - - .bss : ALIGN(4) { - _bss_start = ABSOLUTE(.); - *(.bss) - _bss_end = ABSOLUTE(.); - } > dram - - .data : ALIGN(4) { - *(.data) - *(.rodata .rodata.*) - } > dram -} - -INCLUDE "rom_32p4.ld" diff --git a/flasher_stub/ld/stub_32s2.ld b/flasher_stub/ld/stub_32s2.ld deleted file mode 100644 index ccec2b79c..000000000 --- a/flasher_stub/ld/stub_32s2.ld +++ /dev/null @@ -1,26 +0,0 @@ -MEMORY { - iram : org = 0x40028000, len = 0x18000 - dram : org = 0x3FFD0000, len = 0x28000 -} - -ENTRY(stub_main) - -SECTIONS { - .text : ALIGN(4) { - *(.literal) - *(.text .text.*) - } > iram - - .bss : ALIGN(4) { - _bss_start = ABSOLUTE(.); - *(.bss) - _bss_end = ABSOLUTE(.); - } > dram - - .data : ALIGN(4) { - *(.data) - *(.rodata .rodata.*) - } > dram -} - -INCLUDE "rom_32s2.ld" diff --git a/flasher_stub/ld/stub_32s3.ld b/flasher_stub/ld/stub_32s3.ld deleted file mode 100644 index 98cce2284..000000000 --- a/flasher_stub/ld/stub_32s3.ld +++ /dev/null @@ -1,26 +0,0 @@ -MEMORY { - iram : org = 0x40378000, len = 0x18000 - dram : org = 0x3FCA0000, len = 0x28000 -} - -ENTRY(stub_main) - -SECTIONS { - .text : ALIGN(4) { - *(.literal) - *(.text .text.*) - } > iram - - .bss : ALIGN(4) { - _bss_start = ABSOLUTE(.); - *(.bss) - _bss_end = ABSOLUTE(.); - } > dram - - .data : ALIGN(4) { - *(.data) - *(.rodata .rodata.*) - } > dram -} - -INCLUDE "rom_32s3.ld" diff --git a/flasher_stub/ld/stub_32s3_beta_2.ld b/flasher_stub/ld/stub_32s3_beta_2.ld deleted file mode 100644 index 5105e30d9..000000000 --- a/flasher_stub/ld/stub_32s3_beta_2.ld +++ /dev/null @@ -1,26 +0,0 @@ -MEMORY { - iram : org = 0x40378000, len = 0x18000 - dram : org = 0x3FCA0000, len = 0x28000 -} - -ENTRY(stub_main) - -SECTIONS { - .text : ALIGN(4) { - *(.literal) - *(.text .text.*) - } > iram - - .bss : ALIGN(4) { - _bss_start = ABSOLUTE(.); - *(.bss) - _bss_end = ABSOLUTE(.); - } > dram - - .data : ALIGN(4) { - *(.data) - *(.rodata .rodata.*) - } > dram -} - -INCLUDE "rom_32s3_beta_2.ld" diff --git a/flasher_stub/ld/stub_8266.ld b/flasher_stub/ld/stub_8266.ld deleted file mode 100644 index a42b9b25e..000000000 --- a/flasher_stub/ld/stub_8266.ld +++ /dev/null @@ -1,32 +0,0 @@ -/* Note: stub is deliberately loaded close to the very top - of available RAM, to reduce change of colliding with anything - else... */ -MEMORY { - iram : org = 0x4010D000, len = 0x2100 - dram : org = 0x3FFE8100, len = 0x13f00 -} - -ENTRY(stub_main_8266) - -SECTIONS { - .text : ALIGN(4) { - *(.literal) - *(.text .text.*) - } > iram - - .bss : ALIGN(4) { - _bss_start = ABSOLUTE(.); - *(.bss) - _bss_end = ABSOLUTE(.); - } > dram - - .data : ALIGN(4) { - *(.data) - *(.rodata .rodata.*) - } > dram -} - -INCLUDE "rom_8266.ld" - -PROVIDE(SPIFlashModeConfig = 0x40004568); -PROVIDE(SPIParamCfg = 0x40004c2c); diff --git a/flasher_stub/miniz.c b/flasher_stub/miniz.c deleted file mode 100644 index 9ded4c75a..000000000 --- a/flasher_stub/miniz.c +++ /dev/null @@ -1,7657 +0,0 @@ -/************************************************************************** - * - * Copyright 2013-2014 RAD Game Tools and Valve Software - * Copyright 2010-2014 Rich Geldreich and Tenacious Software LLC - * All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - * - **************************************************************************/ - -#include "miniz.h" - -typedef unsigned char mz_validate_uint16[sizeof(mz_uint16) == 2 ? 1 : -1]; -typedef unsigned char mz_validate_uint32[sizeof(mz_uint32) == 4 ? 1 : -1]; -typedef unsigned char mz_validate_uint64[sizeof(mz_uint64) == 8 ? 1 : -1]; - -#ifdef __cplusplus -extern "C" { -#endif - -/* ------------------- zlib-style API's */ - -mz_ulong mz_adler32(mz_ulong adler, const unsigned char *ptr, size_t buf_len) -{ - mz_uint32 i, s1 = (mz_uint32)(adler & 0xffff), s2 = (mz_uint32)(adler >> 16); - size_t block_len = buf_len % 5552; - if (!ptr) - return MZ_ADLER32_INIT; - while (buf_len) - { - for (i = 0; i + 7 < block_len; i += 8, ptr += 8) - { - s1 += ptr[0], s2 += s1; - s1 += ptr[1], s2 += s1; - s1 += ptr[2], s2 += s1; - s1 += ptr[3], s2 += s1; - s1 += ptr[4], s2 += s1; - s1 += ptr[5], s2 += s1; - s1 += ptr[6], s2 += s1; - s1 += ptr[7], s2 += s1; - } - for (; i < block_len; ++i) - s1 += *ptr++, s2 += s1; - s1 %= 65521U, s2 %= 65521U; - buf_len -= block_len; - block_len = 5552; - } - return (s2 << 16) + s1; -} - -/* Karl Malbrain's compact CRC-32. See "A compact CCITT crc16 and crc32 C implementation that balances processor cache usage against speed": http://www.geocities.com/malbrain/ */ -#if 0 - mz_ulong mz_crc32(mz_ulong crc, const mz_uint8 *ptr, size_t buf_len) - { - static const mz_uint32 s_crc32[16] = { 0, 0x1db71064, 0x3b6e20c8, 0x26d930ac, 0x76dc4190, 0x6b6b51f4, 0x4db26158, 0x5005713c, - 0xedb88320, 0xf00f9344, 0xd6d6a3e8, 0xcb61b38c, 0x9b64c2b0, 0x86d3d2d4, 0xa00ae278, 0xbdbdf21c }; - mz_uint32 crcu32 = (mz_uint32)crc; - if (!ptr) - return MZ_CRC32_INIT; - crcu32 = ~crcu32; - while (buf_len--) - { - mz_uint8 b = *ptr++; - crcu32 = (crcu32 >> 4) ^ s_crc32[(crcu32 & 0xF) ^ (b & 0xF)]; - crcu32 = (crcu32 >> 4) ^ s_crc32[(crcu32 & 0xF) ^ (b >> 4)]; - } - return ~crcu32; - } -#else -/* Faster, but larger CPU cache footprint. - */ -mz_ulong mz_crc32(mz_ulong crc, const mz_uint8 *ptr, size_t buf_len) -{ - static const mz_uint32 s_crc_table[256] = - { - 0x00000000, 0x77073096, 0xEE0E612C, 0x990951BA, 0x076DC419, 0x706AF48F, 0xE963A535, - 0x9E6495A3, 0x0EDB8832, 0x79DCB8A4, 0xE0D5E91E, 0x97D2D988, 0x09B64C2B, 0x7EB17CBD, - 0xE7B82D07, 0x90BF1D91, 0x1DB71064, 0x6AB020F2, 0xF3B97148, 0x84BE41DE, 0x1ADAD47D, - 0x6DDDE4EB, 0xF4D4B551, 0x83D385C7, 0x136C9856, 0x646BA8C0, 0xFD62F97A, 0x8A65C9EC, - 0x14015C4F, 0x63066CD9, 0xFA0F3D63, 0x8D080DF5, 0x3B6E20C8, 0x4C69105E, 0xD56041E4, - 0xA2677172, 0x3C03E4D1, 0x4B04D447, 0xD20D85FD, 0xA50AB56B, 0x35B5A8FA, 0x42B2986C, - 0xDBBBC9D6, 0xACBCF940, 0x32D86CE3, 0x45DF5C75, 0xDCD60DCF, 0xABD13D59, 0x26D930AC, - 0x51DE003A, 0xC8D75180, 0xBFD06116, 0x21B4F4B5, 0x56B3C423, 0xCFBA9599, 0xB8BDA50F, - 0x2802B89E, 0x5F058808, 0xC60CD9B2, 0xB10BE924, 0x2F6F7C87, 0x58684C11, 0xC1611DAB, - 0xB6662D3D, 0x76DC4190, 0x01DB7106, 0x98D220BC, 0xEFD5102A, 0x71B18589, 0x06B6B51F, - 0x9FBFE4A5, 0xE8B8D433, 0x7807C9A2, 0x0F00F934, 0x9609A88E, 0xE10E9818, 0x7F6A0DBB, - 0x086D3D2D, 0x91646C97, 0xE6635C01, 0x6B6B51F4, 0x1C6C6162, 0x856530D8, 0xF262004E, - 0x6C0695ED, 0x1B01A57B, 0x8208F4C1, 0xF50FC457, 0x65B0D9C6, 0x12B7E950, 0x8BBEB8EA, - 0xFCB9887C, 0x62DD1DDF, 0x15DA2D49, 0x8CD37CF3, 0xFBD44C65, 0x4DB26158, 0x3AB551CE, - 0xA3BC0074, 0xD4BB30E2, 0x4ADFA541, 0x3DD895D7, 0xA4D1C46D, 0xD3D6F4FB, 0x4369E96A, - 0x346ED9FC, 0xAD678846, 0xDA60B8D0, 0x44042D73, 0x33031DE5, 0xAA0A4C5F, 0xDD0D7CC9, - 0x5005713C, 0x270241AA, 0xBE0B1010, 0xC90C2086, 0x5768B525, 0x206F85B3, 0xB966D409, - 0xCE61E49F, 0x5EDEF90E, 0x29D9C998, 0xB0D09822, 0xC7D7A8B4, 0x59B33D17, 0x2EB40D81, - 0xB7BD5C3B, 0xC0BA6CAD, 0xEDB88320, 0x9ABFB3B6, 0x03B6E20C, 0x74B1D29A, 0xEAD54739, - 0x9DD277AF, 0x04DB2615, 0x73DC1683, 0xE3630B12, 0x94643B84, 0x0D6D6A3E, 0x7A6A5AA8, - 0xE40ECF0B, 0x9309FF9D, 0x0A00AE27, 0x7D079EB1, 0xF00F9344, 0x8708A3D2, 0x1E01F268, - 0x6906C2FE, 0xF762575D, 0x806567CB, 0x196C3671, 0x6E6B06E7, 0xFED41B76, 0x89D32BE0, - 0x10DA7A5A, 0x67DD4ACC, 0xF9B9DF6F, 0x8EBEEFF9, 0x17B7BE43, 0x60B08ED5, 0xD6D6A3E8, - 0xA1D1937E, 0x38D8C2C4, 0x4FDFF252, 0xD1BB67F1, 0xA6BC5767, 0x3FB506DD, 0x48B2364B, - 0xD80D2BDA, 0xAF0A1B4C, 0x36034AF6, 0x41047A60, 0xDF60EFC3, 0xA867DF55, 0x316E8EEF, - 0x4669BE79, 0xCB61B38C, 0xBC66831A, 0x256FD2A0, 0x5268E236, 0xCC0C7795, 0xBB0B4703, - 0x220216B9, 0x5505262F, 0xC5BA3BBE, 0xB2BD0B28, 0x2BB45A92, 0x5CB36A04, 0xC2D7FFA7, - 0xB5D0CF31, 0x2CD99E8B, 0x5BDEAE1D, 0x9B64C2B0, 0xEC63F226, 0x756AA39C, 0x026D930A, - 0x9C0906A9, 0xEB0E363F, 0x72076785, 0x05005713, 0x95BF4A82, 0xE2B87A14, 0x7BB12BAE, - 0x0CB61B38, 0x92D28E9B, 0xE5D5BE0D, 0x7CDCEFB7, 0x0BDBDF21, 0x86D3D2D4, 0xF1D4E242, - 0x68DDB3F8, 0x1FDA836E, 0x81BE16CD, 0xF6B9265B, 0x6FB077E1, 0x18B74777, 0x88085AE6, - 0xFF0F6A70, 0x66063BCA, 0x11010B5C, 0x8F659EFF, 0xF862AE69, 0x616BFFD3, 0x166CCF45, - 0xA00AE278, 0xD70DD2EE, 0x4E048354, 0x3903B3C2, 0xA7672661, 0xD06016F7, 0x4969474D, - 0x3E6E77DB, 0xAED16A4A, 0xD9D65ADC, 0x40DF0B66, 0x37D83BF0, 0xA9BCAE53, 0xDEBB9EC5, - 0x47B2CF7F, 0x30B5FFE9, 0xBDBDF21C, 0xCABAC28A, 0x53B39330, 0x24B4A3A6, 0xBAD03605, - 0xCDD70693, 0x54DE5729, 0x23D967BF, 0xB3667A2E, 0xC4614AB8, 0x5D681B02, 0x2A6F2B94, - 0xB40BBE37, 0xC30C8EA1, 0x5A05DF1B, 0x2D02EF8D - }; - - mz_uint32 crc32 = (mz_uint32)crc ^ 0xFFFFFFFF; - const mz_uint8 *pByte_buf = (const mz_uint8 *)ptr; - - while (buf_len >= 4) - { - crc32 = (crc32 >> 8) ^ s_crc_table[(crc32 ^ pByte_buf[0]) & 0xFF]; - crc32 = (crc32 >> 8) ^ s_crc_table[(crc32 ^ pByte_buf[1]) & 0xFF]; - crc32 = (crc32 >> 8) ^ s_crc_table[(crc32 ^ pByte_buf[2]) & 0xFF]; - crc32 = (crc32 >> 8) ^ s_crc_table[(crc32 ^ pByte_buf[3]) & 0xFF]; - pByte_buf += 4; - buf_len -= 4; - } - - while (buf_len) - { - crc32 = (crc32 >> 8) ^ s_crc_table[(crc32 ^ pByte_buf[0]) & 0xFF]; - ++pByte_buf; - --buf_len; - } - - return ~crc32; -} -#endif - -void mz_free(void *p) -{ - MZ_FREE(p); -} - -void *miniz_def_alloc_func(void *opaque, size_t items, size_t size) -{ - (void)opaque, (void)items, (void)size; - return MZ_MALLOC(items * size); -} -void miniz_def_free_func(void *opaque, void *address) -{ - (void)opaque, (void)address; - MZ_FREE(address); -} -void *miniz_def_realloc_func(void *opaque, void *address, size_t items, size_t size) -{ - (void)opaque, (void)address, (void)items, (void)size; - return MZ_REALLOC(address, items * size); -} - -const char *mz_version(void) -{ - return MZ_VERSION; -} - -#ifndef MINIZ_NO_ZLIB_APIS - -int mz_deflateInit(mz_streamp pStream, int level) -{ - return mz_deflateInit2(pStream, level, MZ_DEFLATED, MZ_DEFAULT_WINDOW_BITS, 9, MZ_DEFAULT_STRATEGY); -} - -int mz_deflateInit2(mz_streamp pStream, int level, int method, int window_bits, int mem_level, int strategy) -{ - tdefl_compressor *pComp; - mz_uint comp_flags = TDEFL_COMPUTE_ADLER32 | tdefl_create_comp_flags_from_zip_params(level, window_bits, strategy); - - if (!pStream) - return MZ_STREAM_ERROR; - if ((method != MZ_DEFLATED) || ((mem_level < 1) || (mem_level > 9)) || ((window_bits != MZ_DEFAULT_WINDOW_BITS) && (-window_bits != MZ_DEFAULT_WINDOW_BITS))) - return MZ_PARAM_ERROR; - - pStream->data_type = 0; - pStream->adler = MZ_ADLER32_INIT; - pStream->msg = NULL; - pStream->reserved = 0; - pStream->total_in = 0; - pStream->total_out = 0; - if (!pStream->zalloc) - pStream->zalloc = miniz_def_alloc_func; - if (!pStream->zfree) - pStream->zfree = miniz_def_free_func; - - pComp = (tdefl_compressor *)pStream->zalloc(pStream->opaque, 1, sizeof(tdefl_compressor)); - if (!pComp) - return MZ_MEM_ERROR; - - pStream->state = (struct mz_internal_state *)pComp; - - if (tdefl_init(pComp, NULL, NULL, comp_flags) != TDEFL_STATUS_OKAY) - { - mz_deflateEnd(pStream); - return MZ_PARAM_ERROR; - } - - return MZ_OK; -} - -int mz_deflateReset(mz_streamp pStream) -{ - if ((!pStream) || (!pStream->state) || (!pStream->zalloc) || (!pStream->zfree)) - return MZ_STREAM_ERROR; - pStream->total_in = pStream->total_out = 0; - tdefl_init((tdefl_compressor *)pStream->state, NULL, NULL, ((tdefl_compressor *)pStream->state)->m_flags); - return MZ_OK; -} - -int mz_deflate(mz_streamp pStream, int flush) -{ - size_t in_bytes, out_bytes; - mz_ulong orig_total_in, orig_total_out; - int mz_status = MZ_OK; - - if ((!pStream) || (!pStream->state) || (flush < 0) || (flush > MZ_FINISH) || (!pStream->next_out)) - return MZ_STREAM_ERROR; - if (!pStream->avail_out) - return MZ_BUF_ERROR; - - if (flush == MZ_PARTIAL_FLUSH) - flush = MZ_SYNC_FLUSH; - - if (((tdefl_compressor *)pStream->state)->m_prev_return_status == TDEFL_STATUS_DONE) - return (flush == MZ_FINISH) ? MZ_STREAM_END : MZ_BUF_ERROR; - - orig_total_in = pStream->total_in; - orig_total_out = pStream->total_out; - for (;;) - { - tdefl_status defl_status; - in_bytes = pStream->avail_in; - out_bytes = pStream->avail_out; - - defl_status = tdefl_compress((tdefl_compressor *)pStream->state, pStream->next_in, &in_bytes, pStream->next_out, &out_bytes, (tdefl_flush)flush); - pStream->next_in += (mz_uint)in_bytes; - pStream->avail_in -= (mz_uint)in_bytes; - pStream->total_in += (mz_uint)in_bytes; - pStream->adler = tdefl_get_adler32((tdefl_compressor *)pStream->state); - - pStream->next_out += (mz_uint)out_bytes; - pStream->avail_out -= (mz_uint)out_bytes; - pStream->total_out += (mz_uint)out_bytes; - - if (defl_status < 0) - { - mz_status = MZ_STREAM_ERROR; - break; - } - else if (defl_status == TDEFL_STATUS_DONE) - { - mz_status = MZ_STREAM_END; - break; - } - else if (!pStream->avail_out) - break; - else if ((!pStream->avail_in) && (flush != MZ_FINISH)) - { - if ((flush) || (pStream->total_in != orig_total_in) || (pStream->total_out != orig_total_out)) - break; - return MZ_BUF_ERROR; /* Can't make forward progress without some input. - */ - } - } - return mz_status; -} - -int mz_deflateEnd(mz_streamp pStream) -{ - if (!pStream) - return MZ_STREAM_ERROR; - if (pStream->state) - { - pStream->zfree(pStream->opaque, pStream->state); - pStream->state = NULL; - } - return MZ_OK; -} - -mz_ulong mz_deflateBound(mz_streamp pStream, mz_ulong source_len) -{ - (void)pStream; - /* This is really over conservative. (And lame, but it's actually pretty tricky to compute a true upper bound given the way tdefl's blocking works.) */ - return MZ_MAX(128 + (source_len * 110) / 100, 128 + source_len + ((source_len / (31 * 1024)) + 1) * 5); -} - -int mz_compress2(unsigned char *pDest, mz_ulong *pDest_len, const unsigned char *pSource, mz_ulong source_len, int level) -{ - int status; - mz_stream stream; - memset(&stream, 0, sizeof(stream)); - - /* In case mz_ulong is 64-bits (argh I hate longs). */ - if ((source_len | *pDest_len) > 0xFFFFFFFFU) - return MZ_PARAM_ERROR; - - stream.next_in = pSource; - stream.avail_in = (mz_uint32)source_len; - stream.next_out = pDest; - stream.avail_out = (mz_uint32)*pDest_len; - - status = mz_deflateInit(&stream, level); - if (status != MZ_OK) - return status; - - status = mz_deflate(&stream, MZ_FINISH); - if (status != MZ_STREAM_END) - { - mz_deflateEnd(&stream); - return (status == MZ_OK) ? MZ_BUF_ERROR : status; - } - - *pDest_len = stream.total_out; - return mz_deflateEnd(&stream); -} - -int mz_compress(unsigned char *pDest, mz_ulong *pDest_len, const unsigned char *pSource, mz_ulong source_len) -{ - return mz_compress2(pDest, pDest_len, pSource, source_len, MZ_DEFAULT_COMPRESSION); -} - -mz_ulong mz_compressBound(mz_ulong source_len) -{ - return mz_deflateBound(NULL, source_len); -} - -typedef struct -{ - tinfl_decompressor m_decomp; - mz_uint m_dict_ofs, m_dict_avail, m_first_call, m_has_flushed; - int m_window_bits; - mz_uint8 m_dict[TINFL_LZ_DICT_SIZE]; - tinfl_status m_last_status; -} inflate_state; - -int mz_inflateInit2(mz_streamp pStream, int window_bits) -{ - inflate_state *pDecomp; - if (!pStream) - return MZ_STREAM_ERROR; - if ((window_bits != MZ_DEFAULT_WINDOW_BITS) && (-window_bits != MZ_DEFAULT_WINDOW_BITS)) - return MZ_PARAM_ERROR; - - pStream->data_type = 0; - pStream->adler = 0; - pStream->msg = NULL; - pStream->total_in = 0; - pStream->total_out = 0; - pStream->reserved = 0; - if (!pStream->zalloc) - pStream->zalloc = miniz_def_alloc_func; - if (!pStream->zfree) - pStream->zfree = miniz_def_free_func; - - pDecomp = (inflate_state *)pStream->zalloc(pStream->opaque, 1, sizeof(inflate_state)); - if (!pDecomp) - return MZ_MEM_ERROR; - - pStream->state = (struct mz_internal_state *)pDecomp; - - tinfl_init(&pDecomp->m_decomp); - pDecomp->m_dict_ofs = 0; - pDecomp->m_dict_avail = 0; - pDecomp->m_last_status = TINFL_STATUS_NEEDS_MORE_INPUT; - pDecomp->m_first_call = 1; - pDecomp->m_has_flushed = 0; - pDecomp->m_window_bits = window_bits; - - return MZ_OK; -} - -int mz_inflateInit(mz_streamp pStream) -{ - return mz_inflateInit2(pStream, MZ_DEFAULT_WINDOW_BITS); -} - -int mz_inflateReset(mz_streamp pStream) -{ - inflate_state *pDecomp; - if (!pStream) - return MZ_STREAM_ERROR; - - pStream->data_type = 0; - pStream->adler = 0; - pStream->msg = NULL; - pStream->total_in = 0; - pStream->total_out = 0; - pStream->reserved = 0; - - pDecomp = (inflate_state *)pStream->state; - - tinfl_init(&pDecomp->m_decomp); - pDecomp->m_dict_ofs = 0; - pDecomp->m_dict_avail = 0; - pDecomp->m_last_status = TINFL_STATUS_NEEDS_MORE_INPUT; - pDecomp->m_first_call = 1; - pDecomp->m_has_flushed = 0; - /* pDecomp->m_window_bits = window_bits */; - - return MZ_OK; -} - -int mz_inflate(mz_streamp pStream, int flush) -{ - inflate_state *pState; - mz_uint n, first_call, decomp_flags = TINFL_FLAG_COMPUTE_ADLER32; - size_t in_bytes, out_bytes, orig_avail_in; - tinfl_status status; - - if ((!pStream) || (!pStream->state)) - return MZ_STREAM_ERROR; - if (flush == MZ_PARTIAL_FLUSH) - flush = MZ_SYNC_FLUSH; - if ((flush) && (flush != MZ_SYNC_FLUSH) && (flush != MZ_FINISH)) - return MZ_STREAM_ERROR; - - pState = (inflate_state *)pStream->state; - if (pState->m_window_bits > 0) - decomp_flags |= TINFL_FLAG_PARSE_ZLIB_HEADER; - orig_avail_in = pStream->avail_in; - - first_call = pState->m_first_call; - pState->m_first_call = 0; - if (pState->m_last_status < 0) - return MZ_DATA_ERROR; - - if (pState->m_has_flushed && (flush != MZ_FINISH)) - return MZ_STREAM_ERROR; - pState->m_has_flushed |= (flush == MZ_FINISH); - - if ((flush == MZ_FINISH) && (first_call)) - { - /* MZ_FINISH on the first call implies that the input and output buffers are large enough to hold the entire compressed/decompressed file. */ - decomp_flags |= TINFL_FLAG_USING_NON_WRAPPING_OUTPUT_BUF; - in_bytes = pStream->avail_in; - out_bytes = pStream->avail_out; - status = tinfl_decompress(&pState->m_decomp, pStream->next_in, &in_bytes, pStream->next_out, pStream->next_out, &out_bytes, decomp_flags); - pState->m_last_status = status; - pStream->next_in += (mz_uint)in_bytes; - pStream->avail_in -= (mz_uint)in_bytes; - pStream->total_in += (mz_uint)in_bytes; - pStream->adler = tinfl_get_adler32(&pState->m_decomp); - pStream->next_out += (mz_uint)out_bytes; - pStream->avail_out -= (mz_uint)out_bytes; - pStream->total_out += (mz_uint)out_bytes; - - if (status < 0) - return MZ_DATA_ERROR; - else if (status != TINFL_STATUS_DONE) - { - pState->m_last_status = TINFL_STATUS_FAILED; - return MZ_BUF_ERROR; - } - return MZ_STREAM_END; - } - /* flush != MZ_FINISH then we must assume there's more input. */ - if (flush != MZ_FINISH) - decomp_flags |= TINFL_FLAG_HAS_MORE_INPUT; - - if (pState->m_dict_avail) - { - n = MZ_MIN(pState->m_dict_avail, pStream->avail_out); - memcpy(pStream->next_out, pState->m_dict + pState->m_dict_ofs, n); - pStream->next_out += n; - pStream->avail_out -= n; - pStream->total_out += n; - pState->m_dict_avail -= n; - pState->m_dict_ofs = (pState->m_dict_ofs + n) & (TINFL_LZ_DICT_SIZE - 1); - return ((pState->m_last_status == TINFL_STATUS_DONE) && (!pState->m_dict_avail)) ? MZ_STREAM_END : MZ_OK; - } - - for (;;) - { - in_bytes = pStream->avail_in; - out_bytes = TINFL_LZ_DICT_SIZE - pState->m_dict_ofs; - - status = tinfl_decompress(&pState->m_decomp, pStream->next_in, &in_bytes, pState->m_dict, pState->m_dict + pState->m_dict_ofs, &out_bytes, decomp_flags); - pState->m_last_status = status; - - pStream->next_in += (mz_uint)in_bytes; - pStream->avail_in -= (mz_uint)in_bytes; - pStream->total_in += (mz_uint)in_bytes; - pStream->adler = tinfl_get_adler32(&pState->m_decomp); - - pState->m_dict_avail = (mz_uint)out_bytes; - - n = MZ_MIN(pState->m_dict_avail, pStream->avail_out); - memcpy(pStream->next_out, pState->m_dict + pState->m_dict_ofs, n); - pStream->next_out += n; - pStream->avail_out -= n; - pStream->total_out += n; - pState->m_dict_avail -= n; - pState->m_dict_ofs = (pState->m_dict_ofs + n) & (TINFL_LZ_DICT_SIZE - 1); - - if (status < 0) - return MZ_DATA_ERROR; /* Stream is corrupted (there could be some uncompressed data left in the output dictionary - oh well). */ - else if ((status == TINFL_STATUS_NEEDS_MORE_INPUT) && (!orig_avail_in)) - return MZ_BUF_ERROR; /* Signal caller that we can't make forward progress without supplying more input or by setting flush to MZ_FINISH. */ - else if (flush == MZ_FINISH) - { - /* The output buffer MUST be large to hold the remaining uncompressed data when flush==MZ_FINISH. */ - if (status == TINFL_STATUS_DONE) - return pState->m_dict_avail ? MZ_BUF_ERROR : MZ_STREAM_END; - /* status here must be TINFL_STATUS_HAS_MORE_OUTPUT, which means there's at least 1 more byte on the way. If there's no more room left in the output buffer then something is wrong. */ - else if (!pStream->avail_out) - return MZ_BUF_ERROR; - } - else if ((status == TINFL_STATUS_DONE) || (!pStream->avail_in) || (!pStream->avail_out) || (pState->m_dict_avail)) - break; - } - - return ((status == TINFL_STATUS_DONE) && (!pState->m_dict_avail)) ? MZ_STREAM_END : MZ_OK; -} - -int mz_inflateEnd(mz_streamp pStream) -{ - if (!pStream) - return MZ_STREAM_ERROR; - if (pStream->state) - { - pStream->zfree(pStream->opaque, pStream->state); - pStream->state = NULL; - } - return MZ_OK; -} - -int mz_uncompress(unsigned char *pDest, mz_ulong *pDest_len, const unsigned char *pSource, mz_ulong source_len) -{ - mz_stream stream; - int status; - memset(&stream, 0, sizeof(stream)); - - /* In case mz_ulong is 64-bits (argh I hate longs). */ - if ((source_len | *pDest_len) > 0xFFFFFFFFU) - return MZ_PARAM_ERROR; - - stream.next_in = pSource; - stream.avail_in = (mz_uint32)source_len; - stream.next_out = pDest; - stream.avail_out = (mz_uint32)*pDest_len; - - status = mz_inflateInit(&stream); - if (status != MZ_OK) - return status; - - status = mz_inflate(&stream, MZ_FINISH); - if (status != MZ_STREAM_END) - { - mz_inflateEnd(&stream); - return ((status == MZ_BUF_ERROR) && (!stream.avail_in)) ? MZ_DATA_ERROR : status; - } - *pDest_len = stream.total_out; - - return mz_inflateEnd(&stream); -} - -const char *mz_error(int err) -{ - static struct - { - int m_err; - const char *m_pDesc; - } s_error_descs[] = - { - { MZ_OK, "" }, { MZ_STREAM_END, "stream end" }, { MZ_NEED_DICT, "need dictionary" }, { MZ_ERRNO, "file error" }, { MZ_STREAM_ERROR, "stream error" }, { MZ_DATA_ERROR, "data error" }, { MZ_MEM_ERROR, "out of memory" }, { MZ_BUF_ERROR, "buf error" }, { MZ_VERSION_ERROR, "version error" }, { MZ_PARAM_ERROR, "parameter error" } - }; - mz_uint i; - for (i = 0; i < sizeof(s_error_descs) / sizeof(s_error_descs[0]); ++i) - if (s_error_descs[i].m_err == err) - return s_error_descs[i].m_pDesc; - return NULL; -} - -#endif /*MINIZ_NO_ZLIB_APIS */ - -#ifdef __cplusplus -} -#endif - -/* - This is free and unencumbered software released into the public domain. - - Anyone is free to copy, modify, publish, use, compile, sell, or - distribute this software, either in source code form or as a compiled - binary, for any purpose, commercial or non-commercial, and by any - means. - - In jurisdictions that recognize copyright laws, the author or authors - of this software dedicate any and all copyright interest in the - software to the public domain. We make this dedication for the benefit - of the public at large and to the detriment of our heirs and - successors. We intend this dedication to be an overt act of - relinquishment in perpetuity of all present and future rights to this - software under copyright law. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. - IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR - OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, - ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR - OTHER DEALINGS IN THE SOFTWARE. - - For more information, please refer to -*/ -/************************************************************************** - * - * Copyright 2013-2014 RAD Game Tools and Valve Software - * Copyright 2010-2014 Rich Geldreich and Tenacious Software LLC - * All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - * - **************************************************************************/ - - - - -#ifdef __cplusplus -extern "C" { -#endif - -/* ------------------- Low-level Compression (independent from all decompression API's) */ - -/* Purposely making these tables static for faster init and thread safety. */ -static const mz_uint16 s_tdefl_len_sym[256] = - { - 257, 258, 259, 260, 261, 262, 263, 264, 265, 265, 266, 266, 267, 267, 268, 268, 269, 269, 269, 269, 270, 270, 270, 270, 271, 271, 271, 271, 272, 272, 272, 272, - 273, 273, 273, 273, 273, 273, 273, 273, 274, 274, 274, 274, 274, 274, 274, 274, 275, 275, 275, 275, 275, 275, 275, 275, 276, 276, 276, 276, 276, 276, 276, 276, - 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 277, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, - 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, - 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, 281, - 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, 282, - 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, - 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 284, 285 - }; - -static const mz_uint8 s_tdefl_len_extra[256] = - { - 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, - 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, - 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, - 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 0 - }; - -static const mz_uint8 s_tdefl_small_dist_sym[512] = - { - 0, 1, 2, 3, 4, 4, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, - 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, - 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, - 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, - 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, - 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, - 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, - 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, - 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, - 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, - 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, - 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17, 17 - }; - -static const mz_uint8 s_tdefl_small_dist_extra[512] = - { - 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, - 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, - 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6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7, 7, 7, 7, 7, 7, 7, 7 - }; - -static const mz_uint8 s_tdefl_large_dist_sym[128] = - { - 0, 0, 18, 19, 20, 20, 21, 21, 22, 22, 22, 22, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 24, 24, 25, 25, 25, 25, 25, 25, 25, 25, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, - 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, - 28, 28, 28, 28, 28, 28, 28, 28, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29 - }; - -static const mz_uint8 s_tdefl_large_dist_extra[128] = - { - 0, 0, 8, 8, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, - 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, - 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13 - }; - -/* Radix sorts tdefl_sym_freq[] array by 16-bit key m_key. Returns ptr to sorted values. */ -typedef struct -{ - mz_uint16 m_key, m_sym_index; -} tdefl_sym_freq; -static tdefl_sym_freq *tdefl_radix_sort_syms(mz_uint num_syms, tdefl_sym_freq *pSyms0, tdefl_sym_freq *pSyms1) -{ - mz_uint32 total_passes = 2, pass_shift, pass, i, hist[256 * 2]; - tdefl_sym_freq *pCur_syms = pSyms0, *pNew_syms = pSyms1; - MZ_CLEAR_OBJ(hist); - for (i = 0; i < num_syms; i++) - { - mz_uint freq = pSyms0[i].m_key; - hist[freq & 0xFF]++; - hist[256 + ((freq >> 8) & 0xFF)]++; - } - while ((total_passes > 1) && (num_syms == hist[(total_passes - 1) * 256])) - total_passes--; - for (pass_shift = 0, pass = 0; pass < total_passes; pass++, pass_shift += 8) - { - const mz_uint32 *pHist = &hist[pass << 8]; - mz_uint offsets[256], cur_ofs = 0; - for (i = 0; i < 256; i++) - { - offsets[i] = cur_ofs; - cur_ofs += pHist[i]; - } - for (i = 0; i < num_syms; i++) - pNew_syms[offsets[(pCur_syms[i].m_key >> pass_shift) & 0xFF]++] = pCur_syms[i]; - { - tdefl_sym_freq *t = pCur_syms; - pCur_syms = pNew_syms; - pNew_syms = t; - } - } - return pCur_syms; -} - -/* tdefl_calculate_minimum_redundancy() originally written by: Alistair Moffat, alistair@cs.mu.oz.au, Jyrki Katajainen, jyrki@diku.dk, November 1996. */ -static void tdefl_calculate_minimum_redundancy(tdefl_sym_freq *A, int n) -{ - int root, leaf, next, avbl, used, dpth; - if (n == 0) - return; - else if (n == 1) - { - A[0].m_key = 1; - return; - } - A[0].m_key += A[1].m_key; - root = 0; - leaf = 2; - for (next = 1; next < n - 1; next++) - { - if (leaf >= n || A[root].m_key < A[leaf].m_key) - { - A[next].m_key = A[root].m_key; - A[root++].m_key = (mz_uint16)next; - } - else - A[next].m_key = A[leaf++].m_key; - if (leaf >= n || (root < next && A[root].m_key < A[leaf].m_key)) - { - A[next].m_key = (mz_uint16)(A[next].m_key + A[root].m_key); - A[root++].m_key = (mz_uint16)next; - } - else - A[next].m_key = (mz_uint16)(A[next].m_key + A[leaf++].m_key); - } - A[n - 2].m_key = 0; - for (next = n - 3; next >= 0; next--) - A[next].m_key = A[A[next].m_key].m_key + 1; - avbl = 1; - used = dpth = 0; - root = n - 2; - next = n - 1; - while (avbl > 0) - { - while (root >= 0 && (int)A[root].m_key == dpth) - { - used++; - root--; - } - while (avbl > used) - { - A[next--].m_key = (mz_uint16)(dpth); - avbl--; - } - avbl = 2 * used; - dpth++; - used = 0; - } -} - -/* Limits canonical Huffman code table's max code size. */ -enum -{ - TDEFL_MAX_SUPPORTED_HUFF_CODESIZE = 32 -}; -static void tdefl_huffman_enforce_max_code_size(int *pNum_codes, int code_list_len, int max_code_size) -{ - int i; - mz_uint32 total = 0; - if (code_list_len <= 1) - return; - for (i = max_code_size + 1; i <= TDEFL_MAX_SUPPORTED_HUFF_CODESIZE; i++) - pNum_codes[max_code_size] += pNum_codes[i]; - for (i = max_code_size; i > 0; i--) - total += (((mz_uint32)pNum_codes[i]) << (max_code_size - i)); - while (total != (1UL << max_code_size)) - { - pNum_codes[max_code_size]--; - for (i = max_code_size - 1; i > 0; i--) - if (pNum_codes[i]) - { - pNum_codes[i]--; - pNum_codes[i + 1] += 2; - break; - } - total--; - } -} - -static void tdefl_optimize_huffman_table(tdefl_compressor *d, int table_num, int table_len, int code_size_limit, int static_table) -{ - int i, j, l, num_codes[1 + TDEFL_MAX_SUPPORTED_HUFF_CODESIZE]; - mz_uint next_code[TDEFL_MAX_SUPPORTED_HUFF_CODESIZE + 1]; - MZ_CLEAR_OBJ(num_codes); - if (static_table) - { - for (i = 0; i < table_len; i++) - num_codes[d->m_huff_code_sizes[table_num][i]]++; - } - else - { - tdefl_sym_freq syms0[TDEFL_MAX_HUFF_SYMBOLS], syms1[TDEFL_MAX_HUFF_SYMBOLS], *pSyms; - int num_used_syms = 0; - const mz_uint16 *pSym_count = &d->m_huff_count[table_num][0]; - for (i = 0; i < table_len; i++) - if (pSym_count[i]) - { - syms0[num_used_syms].m_key = (mz_uint16)pSym_count[i]; - syms0[num_used_syms++].m_sym_index = (mz_uint16)i; - } - - pSyms = tdefl_radix_sort_syms(num_used_syms, syms0, syms1); - tdefl_calculate_minimum_redundancy(pSyms, num_used_syms); - - for (i = 0; i < num_used_syms; i++) - num_codes[pSyms[i].m_key]++; - - tdefl_huffman_enforce_max_code_size(num_codes, num_used_syms, code_size_limit); - - MZ_CLEAR_OBJ(d->m_huff_code_sizes[table_num]); - MZ_CLEAR_OBJ(d->m_huff_codes[table_num]); - for (i = 1, j = num_used_syms; i <= code_size_limit; i++) - for (l = num_codes[i]; l > 0; l--) - d->m_huff_code_sizes[table_num][pSyms[--j].m_sym_index] = (mz_uint8)(i); - } - - next_code[1] = 0; - for (j = 0, i = 2; i <= code_size_limit; i++) - next_code[i] = j = ((j + num_codes[i - 1]) << 1); - - for (i = 0; i < table_len; i++) - { - mz_uint rev_code = 0, code, code_size; - if ((code_size = d->m_huff_code_sizes[table_num][i]) == 0) - continue; - code = next_code[code_size]++; - for (l = code_size; l > 0; l--, code >>= 1) - rev_code = (rev_code << 1) | (code & 1); - d->m_huff_codes[table_num][i] = (mz_uint16)rev_code; - } -} - -#define TDEFL_PUT_BITS(b, l) \ - do \ - { \ - mz_uint bits = b; \ - mz_uint len = l; \ - MZ_ASSERT(bits <= ((1U << len) - 1U)); \ - d->m_bit_buffer |= (bits << d->m_bits_in); \ - d->m_bits_in += len; \ - while (d->m_bits_in >= 8) \ - { \ - if (d->m_pOutput_buf < d->m_pOutput_buf_end) \ - *d->m_pOutput_buf++ = (mz_uint8)(d->m_bit_buffer); \ - d->m_bit_buffer >>= 8; \ - d->m_bits_in -= 8; \ - } \ - } \ - MZ_MACRO_END - -#define TDEFL_RLE_PREV_CODE_SIZE() \ - { \ - if (rle_repeat_count) \ - { \ - if (rle_repeat_count < 3) \ - { \ - d->m_huff_count[2][prev_code_size] = (mz_uint16)(d->m_huff_count[2][prev_code_size] + rle_repeat_count); \ - while (rle_repeat_count--) \ - packed_code_sizes[num_packed_code_sizes++] = prev_code_size; \ - } \ - else \ - { \ - d->m_huff_count[2][16] = (mz_uint16)(d->m_huff_count[2][16] + 1); \ - packed_code_sizes[num_packed_code_sizes++] = 16; \ - packed_code_sizes[num_packed_code_sizes++] = (mz_uint8)(rle_repeat_count - 3); \ - } \ - rle_repeat_count = 0; \ - } \ - } - -#define TDEFL_RLE_ZERO_CODE_SIZE() \ - { \ - if (rle_z_count) \ - { \ - if (rle_z_count < 3) \ - { \ - d->m_huff_count[2][0] = (mz_uint16)(d->m_huff_count[2][0] + rle_z_count); \ - while (rle_z_count--) \ - packed_code_sizes[num_packed_code_sizes++] = 0; \ - } \ - else if (rle_z_count <= 10) \ - { \ - d->m_huff_count[2][17] = (mz_uint16)(d->m_huff_count[2][17] + 1); \ - packed_code_sizes[num_packed_code_sizes++] = 17; \ - packed_code_sizes[num_packed_code_sizes++] = (mz_uint8)(rle_z_count - 3); \ - } \ - else \ - { \ - d->m_huff_count[2][18] = (mz_uint16)(d->m_huff_count[2][18] + 1); \ - packed_code_sizes[num_packed_code_sizes++] = 18; \ - packed_code_sizes[num_packed_code_sizes++] = (mz_uint8)(rle_z_count - 11); \ - } \ - rle_z_count = 0; \ - } \ - } - -static mz_uint8 s_tdefl_packed_code_size_syms_swizzle[] = { 16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15 }; - -static void tdefl_start_dynamic_block(tdefl_compressor *d) -{ - int num_lit_codes, num_dist_codes, num_bit_lengths; - mz_uint i, total_code_sizes_to_pack, num_packed_code_sizes, rle_z_count, rle_repeat_count, packed_code_sizes_index; - mz_uint8 code_sizes_to_pack[TDEFL_MAX_HUFF_SYMBOLS_0 + TDEFL_MAX_HUFF_SYMBOLS_1], packed_code_sizes[TDEFL_MAX_HUFF_SYMBOLS_0 + TDEFL_MAX_HUFF_SYMBOLS_1], prev_code_size = 0xFF; - - d->m_huff_count[0][256] = 1; - - tdefl_optimize_huffman_table(d, 0, TDEFL_MAX_HUFF_SYMBOLS_0, 15, MZ_FALSE); - tdefl_optimize_huffman_table(d, 1, TDEFL_MAX_HUFF_SYMBOLS_1, 15, MZ_FALSE); - - for (num_lit_codes = 286; num_lit_codes > 257; num_lit_codes--) - if (d->m_huff_code_sizes[0][num_lit_codes - 1]) - break; - for (num_dist_codes = 30; num_dist_codes > 1; num_dist_codes--) - if (d->m_huff_code_sizes[1][num_dist_codes - 1]) - break; - - memcpy(code_sizes_to_pack, &d->m_huff_code_sizes[0][0], num_lit_codes); - memcpy(code_sizes_to_pack + num_lit_codes, &d->m_huff_code_sizes[1][0], num_dist_codes); - total_code_sizes_to_pack = num_lit_codes + num_dist_codes; - num_packed_code_sizes = 0; - rle_z_count = 0; - rle_repeat_count = 0; - - memset(&d->m_huff_count[2][0], 0, sizeof(d->m_huff_count[2][0]) * TDEFL_MAX_HUFF_SYMBOLS_2); - for (i = 0; i < total_code_sizes_to_pack; i++) - { - mz_uint8 code_size = code_sizes_to_pack[i]; - if (!code_size) - { - TDEFL_RLE_PREV_CODE_SIZE(); - if (++rle_z_count == 138) - { - TDEFL_RLE_ZERO_CODE_SIZE(); - } - } - else - { - TDEFL_RLE_ZERO_CODE_SIZE(); - if (code_size != prev_code_size) - { - TDEFL_RLE_PREV_CODE_SIZE(); - d->m_huff_count[2][code_size] = (mz_uint16)(d->m_huff_count[2][code_size] + 1); - packed_code_sizes[num_packed_code_sizes++] = code_size; - } - else if (++rle_repeat_count == 6) - { - TDEFL_RLE_PREV_CODE_SIZE(); - } - } - prev_code_size = code_size; - } - if (rle_repeat_count) - { - TDEFL_RLE_PREV_CODE_SIZE(); - } - else - { - TDEFL_RLE_ZERO_CODE_SIZE(); - } - - tdefl_optimize_huffman_table(d, 2, TDEFL_MAX_HUFF_SYMBOLS_2, 7, MZ_FALSE); - - TDEFL_PUT_BITS(2, 2); - - TDEFL_PUT_BITS(num_lit_codes - 257, 5); - TDEFL_PUT_BITS(num_dist_codes - 1, 5); - - for (num_bit_lengths = 18; num_bit_lengths >= 0; num_bit_lengths--) - if (d->m_huff_code_sizes[2][s_tdefl_packed_code_size_syms_swizzle[num_bit_lengths]]) - break; - num_bit_lengths = MZ_MAX(4, (num_bit_lengths + 1)); - TDEFL_PUT_BITS(num_bit_lengths - 4, 4); - for (i = 0; (int)i < num_bit_lengths; i++) - TDEFL_PUT_BITS(d->m_huff_code_sizes[2][s_tdefl_packed_code_size_syms_swizzle[i]], 3); - - for (packed_code_sizes_index = 0; packed_code_sizes_index < num_packed_code_sizes;) - { - mz_uint code = packed_code_sizes[packed_code_sizes_index++]; - MZ_ASSERT(code < TDEFL_MAX_HUFF_SYMBOLS_2); - TDEFL_PUT_BITS(d->m_huff_codes[2][code], d->m_huff_code_sizes[2][code]); - if (code >= 16) - TDEFL_PUT_BITS(packed_code_sizes[packed_code_sizes_index++], "\02\03\07"[code - 16]); - } -} - -static void tdefl_start_static_block(tdefl_compressor *d) -{ - mz_uint i; - mz_uint8 *p = &d->m_huff_code_sizes[0][0]; - - for (i = 0; i <= 143; ++i) - *p++ = 8; - for (; i <= 255; ++i) - *p++ = 9; - for (; i <= 279; ++i) - *p++ = 7; - for (; i <= 287; ++i) - *p++ = 8; - - memset(d->m_huff_code_sizes[1], 5, 32); - - tdefl_optimize_huffman_table(d, 0, 288, 15, MZ_TRUE); - tdefl_optimize_huffman_table(d, 1, 32, 15, MZ_TRUE); - - TDEFL_PUT_BITS(1, 2); -} - -static const mz_uint mz_bitmasks[17] = { 0x0000, 0x0001, 0x0003, 0x0007, 0x000F, 0x001F, 0x003F, 0x007F, 0x00FF, 0x01FF, 0x03FF, 0x07FF, 0x0FFF, 0x1FFF, 0x3FFF, 0x7FFF, 0xFFFF }; - -#if MINIZ_USE_UNALIGNED_LOADS_AND_STORES && MINIZ_LITTLE_ENDIAN && MINIZ_HAS_64BIT_REGISTERS -static mz_bool tdefl_compress_lz_codes(tdefl_compressor *d) -{ - mz_uint flags; - mz_uint8 *pLZ_codes; - mz_uint8 *pOutput_buf = d->m_pOutput_buf; - mz_uint8 *pLZ_code_buf_end = d->m_pLZ_code_buf; - mz_uint64 bit_buffer = d->m_bit_buffer; - mz_uint bits_in = d->m_bits_in; - -#define TDEFL_PUT_BITS_FAST(b, l) \ - { \ - bit_buffer |= (((mz_uint64)(b)) << bits_in); \ - bits_in += (l); \ - } - - flags = 1; - for (pLZ_codes = d->m_lz_code_buf; pLZ_codes < pLZ_code_buf_end; flags >>= 1) - { - if (flags == 1) - flags = *pLZ_codes++ | 0x100; - - if (flags & 1) - { - mz_uint s0, s1, n0, n1, sym, num_extra_bits; - mz_uint match_len = pLZ_codes[0], match_dist = *(const mz_uint16 *)(pLZ_codes + 1); - pLZ_codes += 3; - - MZ_ASSERT(d->m_huff_code_sizes[0][s_tdefl_len_sym[match_len]]); - TDEFL_PUT_BITS_FAST(d->m_huff_codes[0][s_tdefl_len_sym[match_len]], d->m_huff_code_sizes[0][s_tdefl_len_sym[match_len]]); - TDEFL_PUT_BITS_FAST(match_len & mz_bitmasks[s_tdefl_len_extra[match_len]], s_tdefl_len_extra[match_len]); - - /* This sequence coaxes MSVC into using cmov's vs. jmp's. */ - s0 = s_tdefl_small_dist_sym[match_dist & 511]; - n0 = s_tdefl_small_dist_extra[match_dist & 511]; - s1 = s_tdefl_large_dist_sym[match_dist >> 8]; - n1 = s_tdefl_large_dist_extra[match_dist >> 8]; - sym = (match_dist < 512) ? s0 : s1; - num_extra_bits = (match_dist < 512) ? n0 : n1; - - MZ_ASSERT(d->m_huff_code_sizes[1][sym]); - TDEFL_PUT_BITS_FAST(d->m_huff_codes[1][sym], d->m_huff_code_sizes[1][sym]); - TDEFL_PUT_BITS_FAST(match_dist & mz_bitmasks[num_extra_bits], num_extra_bits); - } - else - { - mz_uint lit = *pLZ_codes++; - MZ_ASSERT(d->m_huff_code_sizes[0][lit]); - TDEFL_PUT_BITS_FAST(d->m_huff_codes[0][lit], d->m_huff_code_sizes[0][lit]); - - if (((flags & 2) == 0) && (pLZ_codes < pLZ_code_buf_end)) - { - flags >>= 1; - lit = *pLZ_codes++; - MZ_ASSERT(d->m_huff_code_sizes[0][lit]); - TDEFL_PUT_BITS_FAST(d->m_huff_codes[0][lit], d->m_huff_code_sizes[0][lit]); - - if (((flags & 2) == 0) && (pLZ_codes < pLZ_code_buf_end)) - { - flags >>= 1; - lit = *pLZ_codes++; - MZ_ASSERT(d->m_huff_code_sizes[0][lit]); - TDEFL_PUT_BITS_FAST(d->m_huff_codes[0][lit], d->m_huff_code_sizes[0][lit]); - } - } - } - - if (pOutput_buf >= d->m_pOutput_buf_end) - return MZ_FALSE; - - *(mz_uint64 *)pOutput_buf = bit_buffer; - pOutput_buf += (bits_in >> 3); - bit_buffer >>= (bits_in & ~7); - bits_in &= 7; - } - -#undef TDEFL_PUT_BITS_FAST - - d->m_pOutput_buf = pOutput_buf; - d->m_bits_in = 0; - d->m_bit_buffer = 0; - - while (bits_in) - { - mz_uint32 n = MZ_MIN(bits_in, 16); - TDEFL_PUT_BITS((mz_uint)bit_buffer & mz_bitmasks[n], n); - bit_buffer >>= n; - bits_in -= n; - } - - TDEFL_PUT_BITS(d->m_huff_codes[0][256], d->m_huff_code_sizes[0][256]); - - return (d->m_pOutput_buf < d->m_pOutput_buf_end); -} -#else -static mz_bool tdefl_compress_lz_codes(tdefl_compressor *d) -{ - mz_uint flags; - mz_uint8 *pLZ_codes; - - flags = 1; - for (pLZ_codes = d->m_lz_code_buf; pLZ_codes < d->m_pLZ_code_buf; flags >>= 1) - { - if (flags == 1) - flags = *pLZ_codes++ | 0x100; - if (flags & 1) - { - mz_uint sym, num_extra_bits; - mz_uint match_len = pLZ_codes[0], match_dist = (pLZ_codes[1] | (pLZ_codes[2] << 8)); - pLZ_codes += 3; - - MZ_ASSERT(d->m_huff_code_sizes[0][s_tdefl_len_sym[match_len]]); - TDEFL_PUT_BITS(d->m_huff_codes[0][s_tdefl_len_sym[match_len]], d->m_huff_code_sizes[0][s_tdefl_len_sym[match_len]]); - TDEFL_PUT_BITS(match_len & mz_bitmasks[s_tdefl_len_extra[match_len]], s_tdefl_len_extra[match_len]); - - if (match_dist < 512) - { - sym = s_tdefl_small_dist_sym[match_dist]; - num_extra_bits = s_tdefl_small_dist_extra[match_dist]; - } - else - { - sym = s_tdefl_large_dist_sym[match_dist >> 8]; - num_extra_bits = s_tdefl_large_dist_extra[match_dist >> 8]; - } - MZ_ASSERT(d->m_huff_code_sizes[1][sym]); - TDEFL_PUT_BITS(d->m_huff_codes[1][sym], d->m_huff_code_sizes[1][sym]); - TDEFL_PUT_BITS(match_dist & mz_bitmasks[num_extra_bits], num_extra_bits); - } - else - { - mz_uint lit = *pLZ_codes++; - MZ_ASSERT(d->m_huff_code_sizes[0][lit]); - TDEFL_PUT_BITS(d->m_huff_codes[0][lit], d->m_huff_code_sizes[0][lit]); - } - } - - TDEFL_PUT_BITS(d->m_huff_codes[0][256], d->m_huff_code_sizes[0][256]); - - return (d->m_pOutput_buf < d->m_pOutput_buf_end); -} -#endif /* MINIZ_USE_UNALIGNED_LOADS_AND_STORES && MINIZ_LITTLE_ENDIAN && MINIZ_HAS_64BIT_REGISTERS */ - -static mz_bool tdefl_compress_block(tdefl_compressor *d, mz_bool static_block) -{ - if (static_block) - tdefl_start_static_block(d); - else - tdefl_start_dynamic_block(d); - return tdefl_compress_lz_codes(d); -} - -static int tdefl_flush_block(tdefl_compressor *d, int flush) -{ - mz_uint saved_bit_buf, saved_bits_in; - mz_uint8 *pSaved_output_buf; - mz_bool comp_block_succeeded = MZ_FALSE; - int n, use_raw_block = ((d->m_flags & TDEFL_FORCE_ALL_RAW_BLOCKS) != 0) && (d->m_lookahead_pos - d->m_lz_code_buf_dict_pos) <= d->m_dict_size; - mz_uint8 *pOutput_buf_start = ((d->m_pPut_buf_func == NULL) && ((*d->m_pOut_buf_size - d->m_out_buf_ofs) >= TDEFL_OUT_BUF_SIZE)) ? ((mz_uint8 *)d->m_pOut_buf + d->m_out_buf_ofs) : d->m_output_buf; - - d->m_pOutput_buf = pOutput_buf_start; - d->m_pOutput_buf_end = d->m_pOutput_buf + TDEFL_OUT_BUF_SIZE - 16; - - MZ_ASSERT(!d->m_output_flush_remaining); - d->m_output_flush_ofs = 0; - d->m_output_flush_remaining = 0; - - *d->m_pLZ_flags = (mz_uint8)(*d->m_pLZ_flags >> d->m_num_flags_left); - d->m_pLZ_code_buf -= (d->m_num_flags_left == 8); - - if ((d->m_flags & TDEFL_WRITE_ZLIB_HEADER) && (!d->m_block_index)) - { - TDEFL_PUT_BITS(0x78, 8); - TDEFL_PUT_BITS(0x01, 8); - } - - TDEFL_PUT_BITS(flush == TDEFL_FINISH, 1); - - pSaved_output_buf = d->m_pOutput_buf; - saved_bit_buf = d->m_bit_buffer; - saved_bits_in = d->m_bits_in; - - if (!use_raw_block) - comp_block_succeeded = tdefl_compress_block(d, (d->m_flags & TDEFL_FORCE_ALL_STATIC_BLOCKS) || (d->m_total_lz_bytes < 48)); - - /* If the block gets expanded, forget the current contents of the output buffer and send a raw block instead. */ - if (((use_raw_block) || ((d->m_total_lz_bytes) && ((d->m_pOutput_buf - pSaved_output_buf + 1U) >= d->m_total_lz_bytes))) && - ((d->m_lookahead_pos - d->m_lz_code_buf_dict_pos) <= d->m_dict_size)) - { - mz_uint i; - d->m_pOutput_buf = pSaved_output_buf; - d->m_bit_buffer = saved_bit_buf, d->m_bits_in = saved_bits_in; - TDEFL_PUT_BITS(0, 2); - if (d->m_bits_in) - { - TDEFL_PUT_BITS(0, 8 - d->m_bits_in); - } - for (i = 2; i; --i, d->m_total_lz_bytes ^= 0xFFFF) - { - TDEFL_PUT_BITS(d->m_total_lz_bytes & 0xFFFF, 16); - } - for (i = 0; i < d->m_total_lz_bytes; ++i) - { - TDEFL_PUT_BITS(d->m_dict[(d->m_lz_code_buf_dict_pos + i) & TDEFL_LZ_DICT_SIZE_MASK], 8); - } - } - /* Check for the extremely unlikely (if not impossible) case of the compressed block not fitting into the output buffer when using dynamic codes. */ - else if (!comp_block_succeeded) - { - d->m_pOutput_buf = pSaved_output_buf; - d->m_bit_buffer = saved_bit_buf, d->m_bits_in = saved_bits_in; - tdefl_compress_block(d, MZ_TRUE); - } - - if (flush) - { - if (flush == TDEFL_FINISH) - { - if (d->m_bits_in) - { - TDEFL_PUT_BITS(0, 8 - d->m_bits_in); - } - if (d->m_flags & TDEFL_WRITE_ZLIB_HEADER) - { - mz_uint i, a = d->m_adler32; - for (i = 0; i < 4; i++) - { - TDEFL_PUT_BITS((a >> 24) & 0xFF, 8); - a <<= 8; - } - } - } - else - { - mz_uint i, z = 0; - TDEFL_PUT_BITS(0, 3); - if (d->m_bits_in) - { - TDEFL_PUT_BITS(0, 8 - d->m_bits_in); - } - for (i = 2; i; --i, z ^= 0xFFFF) - { - TDEFL_PUT_BITS(z & 0xFFFF, 16); - } - } - } - - MZ_ASSERT(d->m_pOutput_buf < d->m_pOutput_buf_end); - - memset(&d->m_huff_count[0][0], 0, sizeof(d->m_huff_count[0][0]) * TDEFL_MAX_HUFF_SYMBOLS_0); - memset(&d->m_huff_count[1][0], 0, sizeof(d->m_huff_count[1][0]) * TDEFL_MAX_HUFF_SYMBOLS_1); - - d->m_pLZ_code_buf = d->m_lz_code_buf + 1; - d->m_pLZ_flags = d->m_lz_code_buf; - d->m_num_flags_left = 8; - d->m_lz_code_buf_dict_pos += d->m_total_lz_bytes; - d->m_total_lz_bytes = 0; - d->m_block_index++; - - if ((n = (int)(d->m_pOutput_buf - pOutput_buf_start)) != 0) - { - if (d->m_pPut_buf_func) - { - *d->m_pIn_buf_size = d->m_pSrc - (const mz_uint8 *)d->m_pIn_buf; - if (!(*d->m_pPut_buf_func)(d->m_output_buf, n, d->m_pPut_buf_user)) - return (d->m_prev_return_status = TDEFL_STATUS_PUT_BUF_FAILED); - } - else if (pOutput_buf_start == d->m_output_buf) - { - int bytes_to_copy = (int)MZ_MIN((size_t)n, (size_t)(*d->m_pOut_buf_size - d->m_out_buf_ofs)); - memcpy((mz_uint8 *)d->m_pOut_buf + d->m_out_buf_ofs, d->m_output_buf, bytes_to_copy); - d->m_out_buf_ofs += bytes_to_copy; - if ((n -= bytes_to_copy) != 0) - { - d->m_output_flush_ofs = bytes_to_copy; - d->m_output_flush_remaining = n; - } - } - else - { - d->m_out_buf_ofs += n; - } - } - - return d->m_output_flush_remaining; -} - -#if MINIZ_USE_UNALIGNED_LOADS_AND_STORES -#ifdef MINIZ_UNALIGNED_USE_MEMCPY -static mz_uint16 TDEFL_READ_UNALIGNED_WORD(const mz_uint8* p) -{ - mz_uint16 ret; - memcpy(&ret, p, sizeof(mz_uint16)); - return ret; -} -static mz_uint16 TDEFL_READ_UNALIGNED_WORD2(const mz_uint16* p) -{ - mz_uint16 ret; - memcpy(&ret, p, sizeof(mz_uint16)); - return ret; -} -#else -#define TDEFL_READ_UNALIGNED_WORD(p) *(const mz_uint16 *)(p) -#define TDEFL_READ_UNALIGNED_WORD2(p) *(const mz_uint16 *)(p) -#endif -static MZ_FORCEINLINE void tdefl_find_match(tdefl_compressor *d, mz_uint lookahead_pos, mz_uint max_dist, mz_uint max_match_len, mz_uint *pMatch_dist, mz_uint *pMatch_len) -{ - mz_uint dist, pos = lookahead_pos & TDEFL_LZ_DICT_SIZE_MASK, match_len = *pMatch_len, probe_pos = pos, next_probe_pos, probe_len; - mz_uint num_probes_left = d->m_max_probes[match_len >= 32]; - const mz_uint16 *s = (const mz_uint16 *)(d->m_dict + pos), *p, *q; - mz_uint16 c01 = TDEFL_READ_UNALIGNED_WORD(&d->m_dict[pos + match_len - 1]), s01 = TDEFL_READ_UNALIGNED_WORD2(s); - MZ_ASSERT(max_match_len <= TDEFL_MAX_MATCH_LEN); - if (max_match_len <= match_len) - return; - for (;;) - { - for (;;) - { - if (--num_probes_left == 0) - return; -#define TDEFL_PROBE \ - next_probe_pos = d->m_next[probe_pos]; \ - if ((!next_probe_pos) || ((dist = (mz_uint16)(lookahead_pos - next_probe_pos)) > max_dist)) \ - return; \ - probe_pos = next_probe_pos & TDEFL_LZ_DICT_SIZE_MASK; \ - if (TDEFL_READ_UNALIGNED_WORD(&d->m_dict[probe_pos + match_len - 1]) == c01) \ - break; - TDEFL_PROBE; - TDEFL_PROBE; - TDEFL_PROBE; - } - if (!dist) - break; - q = (const mz_uint16 *)(d->m_dict + probe_pos); - if (TDEFL_READ_UNALIGNED_WORD2(q) != s01) - continue; - p = s; - probe_len = 32; - do - { - } while ((TDEFL_READ_UNALIGNED_WORD2(++p) == TDEFL_READ_UNALIGNED_WORD2(++q)) && (TDEFL_READ_UNALIGNED_WORD2(++p) == TDEFL_READ_UNALIGNED_WORD2(++q)) && - (TDEFL_READ_UNALIGNED_WORD2(++p) == TDEFL_READ_UNALIGNED_WORD2(++q)) && (TDEFL_READ_UNALIGNED_WORD2(++p) == TDEFL_READ_UNALIGNED_WORD2(++q)) && (--probe_len > 0)); - if (!probe_len) - { - *pMatch_dist = dist; - *pMatch_len = MZ_MIN(max_match_len, (mz_uint)TDEFL_MAX_MATCH_LEN); - break; - } - else if ((probe_len = ((mz_uint)(p - s) * 2) + (mz_uint)(*(const mz_uint8 *)p == *(const mz_uint8 *)q)) > match_len) - { - *pMatch_dist = dist; - if ((*pMatch_len = match_len = MZ_MIN(max_match_len, probe_len)) == max_match_len) - break; - c01 = TDEFL_READ_UNALIGNED_WORD(&d->m_dict[pos + match_len - 1]); - } - } -} -#else -static MZ_FORCEINLINE void tdefl_find_match(tdefl_compressor *d, mz_uint lookahead_pos, mz_uint max_dist, mz_uint max_match_len, mz_uint *pMatch_dist, mz_uint *pMatch_len) -{ - mz_uint dist, pos = lookahead_pos & TDEFL_LZ_DICT_SIZE_MASK, match_len = *pMatch_len, probe_pos = pos, next_probe_pos, probe_len; - mz_uint num_probes_left = d->m_max_probes[match_len >= 32]; - const mz_uint8 *s = d->m_dict + pos, *p, *q; - mz_uint8 c0 = d->m_dict[pos + match_len], c1 = d->m_dict[pos + match_len - 1]; - MZ_ASSERT(max_match_len <= TDEFL_MAX_MATCH_LEN); - if (max_match_len <= match_len) - return; - for (;;) - { - for (;;) - { - if (--num_probes_left == 0) - return; -#define TDEFL_PROBE \ - next_probe_pos = d->m_next[probe_pos]; \ - if ((!next_probe_pos) || ((dist = (mz_uint16)(lookahead_pos - next_probe_pos)) > max_dist)) \ - return; \ - probe_pos = next_probe_pos & TDEFL_LZ_DICT_SIZE_MASK; \ - if ((d->m_dict[probe_pos + match_len] == c0) && (d->m_dict[probe_pos + match_len - 1] == c1)) \ - break; - TDEFL_PROBE; - TDEFL_PROBE; - TDEFL_PROBE; - } - if (!dist) - break; - p = s; - q = d->m_dict + probe_pos; - for (probe_len = 0; probe_len < max_match_len; probe_len++) - if (*p++ != *q++) - break; - if (probe_len > match_len) - { - *pMatch_dist = dist; - if ((*pMatch_len = match_len = probe_len) == max_match_len) - return; - c0 = d->m_dict[pos + match_len]; - c1 = d->m_dict[pos + match_len - 1]; - } - } -} -#endif /* #if MINIZ_USE_UNALIGNED_LOADS_AND_STORES */ - -#if MINIZ_USE_UNALIGNED_LOADS_AND_STORES && MINIZ_LITTLE_ENDIAN -#ifdef MINIZ_UNALIGNED_USE_MEMCPY -static mz_uint32 TDEFL_READ_UNALIGNED_WORD32(const mz_uint8* p) -{ - mz_uint32 ret; - memcpy(&ret, p, sizeof(mz_uint32)); - return ret; -} -#else -#define TDEFL_READ_UNALIGNED_WORD32(p) *(const mz_uint32 *)(p) -#endif -static mz_bool tdefl_compress_fast(tdefl_compressor *d) -{ - /* Faster, minimally featured LZRW1-style match+parse loop with better register utilization. Intended for applications where raw throughput is valued more highly than ratio. */ - mz_uint lookahead_pos = d->m_lookahead_pos, lookahead_size = d->m_lookahead_size, dict_size = d->m_dict_size, total_lz_bytes = d->m_total_lz_bytes, num_flags_left = d->m_num_flags_left; - mz_uint8 *pLZ_code_buf = d->m_pLZ_code_buf, *pLZ_flags = d->m_pLZ_flags; - mz_uint cur_pos = lookahead_pos & TDEFL_LZ_DICT_SIZE_MASK; - - while ((d->m_src_buf_left) || ((d->m_flush) && (lookahead_size))) - { - const mz_uint TDEFL_COMP_FAST_LOOKAHEAD_SIZE = 4096; - mz_uint dst_pos = (lookahead_pos + lookahead_size) & TDEFL_LZ_DICT_SIZE_MASK; - mz_uint num_bytes_to_process = (mz_uint)MZ_MIN(d->m_src_buf_left, TDEFL_COMP_FAST_LOOKAHEAD_SIZE - lookahead_size); - d->m_src_buf_left -= num_bytes_to_process; - lookahead_size += num_bytes_to_process; - - while (num_bytes_to_process) - { - mz_uint32 n = MZ_MIN(TDEFL_LZ_DICT_SIZE - dst_pos, num_bytes_to_process); - memcpy(d->m_dict + dst_pos, d->m_pSrc, n); - if (dst_pos < (TDEFL_MAX_MATCH_LEN - 1)) - memcpy(d->m_dict + TDEFL_LZ_DICT_SIZE + dst_pos, d->m_pSrc, MZ_MIN(n, (TDEFL_MAX_MATCH_LEN - 1) - dst_pos)); - d->m_pSrc += n; - dst_pos = (dst_pos + n) & TDEFL_LZ_DICT_SIZE_MASK; - num_bytes_to_process -= n; - } - - dict_size = MZ_MIN(TDEFL_LZ_DICT_SIZE - lookahead_size, dict_size); - if ((!d->m_flush) && (lookahead_size < TDEFL_COMP_FAST_LOOKAHEAD_SIZE)) - break; - - while (lookahead_size >= 4) - { - mz_uint cur_match_dist, cur_match_len = 1; - mz_uint8 *pCur_dict = d->m_dict + cur_pos; - mz_uint first_trigram = TDEFL_READ_UNALIGNED_WORD32(pCur_dict) & 0xFFFFFF; - mz_uint hash = (first_trigram ^ (first_trigram >> (24 - (TDEFL_LZ_HASH_BITS - 8)))) & TDEFL_LEVEL1_HASH_SIZE_MASK; - mz_uint probe_pos = d->m_hash[hash]; - d->m_hash[hash] = (mz_uint16)lookahead_pos; - - if (((cur_match_dist = (mz_uint16)(lookahead_pos - probe_pos)) <= dict_size) && ((TDEFL_READ_UNALIGNED_WORD32(d->m_dict + (probe_pos &= TDEFL_LZ_DICT_SIZE_MASK)) & 0xFFFFFF) == first_trigram)) - { - const mz_uint16 *p = (const mz_uint16 *)pCur_dict; - const mz_uint16 *q = (const mz_uint16 *)(d->m_dict + probe_pos); - mz_uint32 probe_len = 32; - do - { - } while ((TDEFL_READ_UNALIGNED_WORD2(++p) == TDEFL_READ_UNALIGNED_WORD2(++q)) && (TDEFL_READ_UNALIGNED_WORD2(++p) == TDEFL_READ_UNALIGNED_WORD2(++q)) && - (TDEFL_READ_UNALIGNED_WORD2(++p) == TDEFL_READ_UNALIGNED_WORD2(++q)) && (TDEFL_READ_UNALIGNED_WORD2(++p) == TDEFL_READ_UNALIGNED_WORD2(++q)) && (--probe_len > 0)); - cur_match_len = ((mz_uint)(p - (const mz_uint16 *)pCur_dict) * 2) + (mz_uint)(*(const mz_uint8 *)p == *(const mz_uint8 *)q); - if (!probe_len) - cur_match_len = cur_match_dist ? TDEFL_MAX_MATCH_LEN : 0; - - if ((cur_match_len < TDEFL_MIN_MATCH_LEN) || ((cur_match_len == TDEFL_MIN_MATCH_LEN) && (cur_match_dist >= 8U * 1024U))) - { - cur_match_len = 1; - *pLZ_code_buf++ = (mz_uint8)first_trigram; - *pLZ_flags = (mz_uint8)(*pLZ_flags >> 1); - d->m_huff_count[0][(mz_uint8)first_trigram]++; - } - else - { - mz_uint32 s0, s1; - cur_match_len = MZ_MIN(cur_match_len, lookahead_size); - - MZ_ASSERT((cur_match_len >= TDEFL_MIN_MATCH_LEN) && (cur_match_dist >= 1) && (cur_match_dist <= TDEFL_LZ_DICT_SIZE)); - - cur_match_dist--; - - pLZ_code_buf[0] = (mz_uint8)(cur_match_len - TDEFL_MIN_MATCH_LEN); -#ifdef MINIZ_UNALIGNED_USE_MEMCPY - memcpy(&pLZ_code_buf[1], &cur_match_dist, sizeof(cur_match_dist)); -#else - *(mz_uint16 *)(&pLZ_code_buf[1]) = (mz_uint16)cur_match_dist; -#endif - pLZ_code_buf += 3; - *pLZ_flags = (mz_uint8)((*pLZ_flags >> 1) | 0x80); - - s0 = s_tdefl_small_dist_sym[cur_match_dist & 511]; - s1 = s_tdefl_large_dist_sym[cur_match_dist >> 8]; - d->m_huff_count[1][(cur_match_dist < 512) ? s0 : s1]++; - - d->m_huff_count[0][s_tdefl_len_sym[cur_match_len - TDEFL_MIN_MATCH_LEN]]++; - } - } - else - { - *pLZ_code_buf++ = (mz_uint8)first_trigram; - *pLZ_flags = (mz_uint8)(*pLZ_flags >> 1); - d->m_huff_count[0][(mz_uint8)first_trigram]++; - } - - if (--num_flags_left == 0) - { - num_flags_left = 8; - pLZ_flags = pLZ_code_buf++; - } - - total_lz_bytes += cur_match_len; - lookahead_pos += cur_match_len; - dict_size = MZ_MIN(dict_size + cur_match_len, (mz_uint)TDEFL_LZ_DICT_SIZE); - cur_pos = (cur_pos + cur_match_len) & TDEFL_LZ_DICT_SIZE_MASK; - MZ_ASSERT(lookahead_size >= cur_match_len); - lookahead_size -= cur_match_len; - - if (pLZ_code_buf > &d->m_lz_code_buf[TDEFL_LZ_CODE_BUF_SIZE - 8]) - { - int n; - d->m_lookahead_pos = lookahead_pos; - d->m_lookahead_size = lookahead_size; - d->m_dict_size = dict_size; - d->m_total_lz_bytes = total_lz_bytes; - d->m_pLZ_code_buf = pLZ_code_buf; - d->m_pLZ_flags = pLZ_flags; - d->m_num_flags_left = num_flags_left; - if ((n = tdefl_flush_block(d, 0)) != 0) - return (n < 0) ? MZ_FALSE : MZ_TRUE; - total_lz_bytes = d->m_total_lz_bytes; - pLZ_code_buf = d->m_pLZ_code_buf; - pLZ_flags = d->m_pLZ_flags; - num_flags_left = d->m_num_flags_left; - } - } - - while (lookahead_size) - { - mz_uint8 lit = d->m_dict[cur_pos]; - - total_lz_bytes++; - *pLZ_code_buf++ = lit; - *pLZ_flags = (mz_uint8)(*pLZ_flags >> 1); - if (--num_flags_left == 0) - { - num_flags_left = 8; - pLZ_flags = pLZ_code_buf++; - } - - d->m_huff_count[0][lit]++; - - lookahead_pos++; - dict_size = MZ_MIN(dict_size + 1, (mz_uint)TDEFL_LZ_DICT_SIZE); - cur_pos = (cur_pos + 1) & TDEFL_LZ_DICT_SIZE_MASK; - lookahead_size--; - - if (pLZ_code_buf > &d->m_lz_code_buf[TDEFL_LZ_CODE_BUF_SIZE - 8]) - { - int n; - d->m_lookahead_pos = lookahead_pos; - d->m_lookahead_size = lookahead_size; - d->m_dict_size = dict_size; - d->m_total_lz_bytes = total_lz_bytes; - d->m_pLZ_code_buf = pLZ_code_buf; - d->m_pLZ_flags = pLZ_flags; - d->m_num_flags_left = num_flags_left; - if ((n = tdefl_flush_block(d, 0)) != 0) - return (n < 0) ? MZ_FALSE : MZ_TRUE; - total_lz_bytes = d->m_total_lz_bytes; - pLZ_code_buf = d->m_pLZ_code_buf; - pLZ_flags = d->m_pLZ_flags; - num_flags_left = d->m_num_flags_left; - } - } - } - - d->m_lookahead_pos = lookahead_pos; - d->m_lookahead_size = lookahead_size; - d->m_dict_size = dict_size; - d->m_total_lz_bytes = total_lz_bytes; - d->m_pLZ_code_buf = pLZ_code_buf; - d->m_pLZ_flags = pLZ_flags; - d->m_num_flags_left = num_flags_left; - return MZ_TRUE; -} -#endif /* MINIZ_USE_UNALIGNED_LOADS_AND_STORES && MINIZ_LITTLE_ENDIAN */ - -static MZ_FORCEINLINE void tdefl_record_literal(tdefl_compressor *d, mz_uint8 lit) -{ - d->m_total_lz_bytes++; - *d->m_pLZ_code_buf++ = lit; - *d->m_pLZ_flags = (mz_uint8)(*d->m_pLZ_flags >> 1); - if (--d->m_num_flags_left == 0) - { - d->m_num_flags_left = 8; - d->m_pLZ_flags = d->m_pLZ_code_buf++; - } - d->m_huff_count[0][lit]++; -} - -static MZ_FORCEINLINE void tdefl_record_match(tdefl_compressor *d, mz_uint match_len, mz_uint match_dist) -{ - mz_uint32 s0, s1; - - MZ_ASSERT((match_len >= TDEFL_MIN_MATCH_LEN) && (match_dist >= 1) && (match_dist <= TDEFL_LZ_DICT_SIZE)); - - d->m_total_lz_bytes += match_len; - - d->m_pLZ_code_buf[0] = (mz_uint8)(match_len - TDEFL_MIN_MATCH_LEN); - - match_dist -= 1; - d->m_pLZ_code_buf[1] = (mz_uint8)(match_dist & 0xFF); - d->m_pLZ_code_buf[2] = (mz_uint8)(match_dist >> 8); - d->m_pLZ_code_buf += 3; - - *d->m_pLZ_flags = (mz_uint8)((*d->m_pLZ_flags >> 1) | 0x80); - if (--d->m_num_flags_left == 0) - { - d->m_num_flags_left = 8; - d->m_pLZ_flags = d->m_pLZ_code_buf++; - } - - s0 = s_tdefl_small_dist_sym[match_dist & 511]; - s1 = s_tdefl_large_dist_sym[(match_dist >> 8) & 127]; - d->m_huff_count[1][(match_dist < 512) ? s0 : s1]++; - - if (match_len >= TDEFL_MIN_MATCH_LEN) - d->m_huff_count[0][s_tdefl_len_sym[match_len - TDEFL_MIN_MATCH_LEN]]++; -} - -static mz_bool tdefl_compress_normal(tdefl_compressor *d) -{ - const mz_uint8 *pSrc = d->m_pSrc; - size_t src_buf_left = d->m_src_buf_left; - tdefl_flush flush = d->m_flush; - - while ((src_buf_left) || ((flush) && (d->m_lookahead_size))) - { - mz_uint len_to_move, cur_match_dist, cur_match_len, cur_pos; - /* Update dictionary and hash chains. Keeps the lookahead size equal to TDEFL_MAX_MATCH_LEN. */ - if ((d->m_lookahead_size + d->m_dict_size) >= (TDEFL_MIN_MATCH_LEN - 1)) - { - mz_uint dst_pos = (d->m_lookahead_pos + d->m_lookahead_size) & TDEFL_LZ_DICT_SIZE_MASK, ins_pos = d->m_lookahead_pos + d->m_lookahead_size - 2; - mz_uint hash = (d->m_dict[ins_pos & TDEFL_LZ_DICT_SIZE_MASK] << TDEFL_LZ_HASH_SHIFT) ^ d->m_dict[(ins_pos + 1) & TDEFL_LZ_DICT_SIZE_MASK]; - mz_uint num_bytes_to_process = (mz_uint)MZ_MIN(src_buf_left, TDEFL_MAX_MATCH_LEN - d->m_lookahead_size); - const mz_uint8 *pSrc_end = pSrc + num_bytes_to_process; - src_buf_left -= num_bytes_to_process; - d->m_lookahead_size += num_bytes_to_process; - while (pSrc != pSrc_end) - { - mz_uint8 c = *pSrc++; - d->m_dict[dst_pos] = c; - if (dst_pos < (TDEFL_MAX_MATCH_LEN - 1)) - d->m_dict[TDEFL_LZ_DICT_SIZE + dst_pos] = c; - hash = ((hash << TDEFL_LZ_HASH_SHIFT) ^ c) & (TDEFL_LZ_HASH_SIZE - 1); - d->m_next[ins_pos & TDEFL_LZ_DICT_SIZE_MASK] = d->m_hash[hash]; - d->m_hash[hash] = (mz_uint16)(ins_pos); - dst_pos = (dst_pos + 1) & TDEFL_LZ_DICT_SIZE_MASK; - ins_pos++; - } - } - else - { - while ((src_buf_left) && (d->m_lookahead_size < TDEFL_MAX_MATCH_LEN)) - { - mz_uint8 c = *pSrc++; - mz_uint dst_pos = (d->m_lookahead_pos + d->m_lookahead_size) & TDEFL_LZ_DICT_SIZE_MASK; - src_buf_left--; - d->m_dict[dst_pos] = c; - if (dst_pos < (TDEFL_MAX_MATCH_LEN - 1)) - d->m_dict[TDEFL_LZ_DICT_SIZE + dst_pos] = c; - if ((++d->m_lookahead_size + d->m_dict_size) >= TDEFL_MIN_MATCH_LEN) - { - mz_uint ins_pos = d->m_lookahead_pos + (d->m_lookahead_size - 1) - 2; - mz_uint hash = ((d->m_dict[ins_pos & TDEFL_LZ_DICT_SIZE_MASK] << (TDEFL_LZ_HASH_SHIFT * 2)) ^ (d->m_dict[(ins_pos + 1) & TDEFL_LZ_DICT_SIZE_MASK] << TDEFL_LZ_HASH_SHIFT) ^ c) & (TDEFL_LZ_HASH_SIZE - 1); - d->m_next[ins_pos & TDEFL_LZ_DICT_SIZE_MASK] = d->m_hash[hash]; - d->m_hash[hash] = (mz_uint16)(ins_pos); - } - } - } - d->m_dict_size = MZ_MIN(TDEFL_LZ_DICT_SIZE - d->m_lookahead_size, d->m_dict_size); - if ((!flush) && (d->m_lookahead_size < TDEFL_MAX_MATCH_LEN)) - break; - - /* Simple lazy/greedy parsing state machine. */ - len_to_move = 1; - cur_match_dist = 0; - cur_match_len = d->m_saved_match_len ? d->m_saved_match_len : (TDEFL_MIN_MATCH_LEN - 1); - cur_pos = d->m_lookahead_pos & TDEFL_LZ_DICT_SIZE_MASK; - if (d->m_flags & (TDEFL_RLE_MATCHES | TDEFL_FORCE_ALL_RAW_BLOCKS)) - { - if ((d->m_dict_size) && (!(d->m_flags & TDEFL_FORCE_ALL_RAW_BLOCKS))) - { - mz_uint8 c = d->m_dict[(cur_pos - 1) & TDEFL_LZ_DICT_SIZE_MASK]; - cur_match_len = 0; - while (cur_match_len < d->m_lookahead_size) - { - if (d->m_dict[cur_pos + cur_match_len] != c) - break; - cur_match_len++; - } - if (cur_match_len < TDEFL_MIN_MATCH_LEN) - cur_match_len = 0; - else - cur_match_dist = 1; - } - } - else - { - tdefl_find_match(d, d->m_lookahead_pos, d->m_dict_size, d->m_lookahead_size, &cur_match_dist, &cur_match_len); - } - if (((cur_match_len == TDEFL_MIN_MATCH_LEN) && (cur_match_dist >= 8U * 1024U)) || (cur_pos == cur_match_dist) || ((d->m_flags & TDEFL_FILTER_MATCHES) && (cur_match_len <= 5))) - { - cur_match_dist = cur_match_len = 0; - } - if (d->m_saved_match_len) - { - if (cur_match_len > d->m_saved_match_len) - { - tdefl_record_literal(d, (mz_uint8)d->m_saved_lit); - if (cur_match_len >= 128) - { - tdefl_record_match(d, cur_match_len, cur_match_dist); - d->m_saved_match_len = 0; - len_to_move = cur_match_len; - } - else - { - d->m_saved_lit = d->m_dict[cur_pos]; - d->m_saved_match_dist = cur_match_dist; - d->m_saved_match_len = cur_match_len; - } - } - else - { - tdefl_record_match(d, d->m_saved_match_len, d->m_saved_match_dist); - len_to_move = d->m_saved_match_len - 1; - d->m_saved_match_len = 0; - } - } - else if (!cur_match_dist) - tdefl_record_literal(d, d->m_dict[MZ_MIN(cur_pos, sizeof(d->m_dict) - 1)]); - else if ((d->m_greedy_parsing) || (d->m_flags & TDEFL_RLE_MATCHES) || (cur_match_len >= 128)) - { - tdefl_record_match(d, cur_match_len, cur_match_dist); - len_to_move = cur_match_len; - } - else - { - d->m_saved_lit = d->m_dict[MZ_MIN(cur_pos, sizeof(d->m_dict) - 1)]; - d->m_saved_match_dist = cur_match_dist; - d->m_saved_match_len = cur_match_len; - } - /* Move the lookahead forward by len_to_move bytes. */ - d->m_lookahead_pos += len_to_move; - MZ_ASSERT(d->m_lookahead_size >= len_to_move); - d->m_lookahead_size -= len_to_move; - d->m_dict_size = MZ_MIN(d->m_dict_size + len_to_move, (mz_uint)TDEFL_LZ_DICT_SIZE); - /* Check if it's time to flush the current LZ codes to the internal output buffer. */ - if ((d->m_pLZ_code_buf > &d->m_lz_code_buf[TDEFL_LZ_CODE_BUF_SIZE - 8]) || - ((d->m_total_lz_bytes > 31 * 1024) && (((((mz_uint)(d->m_pLZ_code_buf - d->m_lz_code_buf) * 115) >> 7) >= d->m_total_lz_bytes) || (d->m_flags & TDEFL_FORCE_ALL_RAW_BLOCKS)))) - { - int n; - d->m_pSrc = pSrc; - d->m_src_buf_left = src_buf_left; - if ((n = tdefl_flush_block(d, 0)) != 0) - return (n < 0) ? MZ_FALSE : MZ_TRUE; - } - } - - d->m_pSrc = pSrc; - d->m_src_buf_left = src_buf_left; - return MZ_TRUE; -} - -static tdefl_status tdefl_flush_output_buffer(tdefl_compressor *d) -{ - if (d->m_pIn_buf_size) - { - *d->m_pIn_buf_size = d->m_pSrc - (const mz_uint8 *)d->m_pIn_buf; - } - - if (d->m_pOut_buf_size) - { - size_t n = MZ_MIN(*d->m_pOut_buf_size - d->m_out_buf_ofs, d->m_output_flush_remaining); - memcpy((mz_uint8 *)d->m_pOut_buf + d->m_out_buf_ofs, d->m_output_buf + d->m_output_flush_ofs, n); - d->m_output_flush_ofs += (mz_uint)n; - d->m_output_flush_remaining -= (mz_uint)n; - d->m_out_buf_ofs += n; - - *d->m_pOut_buf_size = d->m_out_buf_ofs; - } - - return (d->m_finished && !d->m_output_flush_remaining) ? TDEFL_STATUS_DONE : TDEFL_STATUS_OKAY; -} - -tdefl_status tdefl_compress(tdefl_compressor *d, const void *pIn_buf, size_t *pIn_buf_size, void *pOut_buf, size_t *pOut_buf_size, tdefl_flush flush) -{ - if (!d) - { - if (pIn_buf_size) - *pIn_buf_size = 0; - if (pOut_buf_size) - *pOut_buf_size = 0; - return TDEFL_STATUS_BAD_PARAM; - } - - d->m_pIn_buf = pIn_buf; - d->m_pIn_buf_size = pIn_buf_size; - d->m_pOut_buf = pOut_buf; - d->m_pOut_buf_size = pOut_buf_size; - d->m_pSrc = (const mz_uint8 *)(pIn_buf); - d->m_src_buf_left = pIn_buf_size ? *pIn_buf_size : 0; - d->m_out_buf_ofs = 0; - d->m_flush = flush; - - if (((d->m_pPut_buf_func != NULL) == ((pOut_buf != NULL) || (pOut_buf_size != NULL))) || (d->m_prev_return_status != TDEFL_STATUS_OKAY) || - (d->m_wants_to_finish && (flush != TDEFL_FINISH)) || (pIn_buf_size && *pIn_buf_size && !pIn_buf) || (pOut_buf_size && *pOut_buf_size && !pOut_buf)) - { - if (pIn_buf_size) - *pIn_buf_size = 0; - if (pOut_buf_size) - *pOut_buf_size = 0; - return (d->m_prev_return_status = TDEFL_STATUS_BAD_PARAM); - } - d->m_wants_to_finish |= (flush == TDEFL_FINISH); - - if ((d->m_output_flush_remaining) || (d->m_finished)) - return (d->m_prev_return_status = tdefl_flush_output_buffer(d)); - -#if MINIZ_USE_UNALIGNED_LOADS_AND_STORES && MINIZ_LITTLE_ENDIAN - if (((d->m_flags & TDEFL_MAX_PROBES_MASK) == 1) && - ((d->m_flags & TDEFL_GREEDY_PARSING_FLAG) != 0) && - ((d->m_flags & (TDEFL_FILTER_MATCHES | TDEFL_FORCE_ALL_RAW_BLOCKS | TDEFL_RLE_MATCHES)) == 0)) - { - if (!tdefl_compress_fast(d)) - return d->m_prev_return_status; - } - else -#endif /* #if MINIZ_USE_UNALIGNED_LOADS_AND_STORES && MINIZ_LITTLE_ENDIAN */ - { - if (!tdefl_compress_normal(d)) - return d->m_prev_return_status; - } - - if ((d->m_flags & (TDEFL_WRITE_ZLIB_HEADER | TDEFL_COMPUTE_ADLER32)) && (pIn_buf)) - d->m_adler32 = (mz_uint32)mz_adler32(d->m_adler32, (const mz_uint8 *)pIn_buf, d->m_pSrc - (const mz_uint8 *)pIn_buf); - - if ((flush) && (!d->m_lookahead_size) && (!d->m_src_buf_left) && (!d->m_output_flush_remaining)) - { - if (tdefl_flush_block(d, flush) < 0) - return d->m_prev_return_status; - d->m_finished = (flush == TDEFL_FINISH); - if (flush == TDEFL_FULL_FLUSH) - { - MZ_CLEAR_OBJ(d->m_hash); - MZ_CLEAR_OBJ(d->m_next); - d->m_dict_size = 0; - } - } - - return (d->m_prev_return_status = tdefl_flush_output_buffer(d)); -} - -tdefl_status tdefl_compress_buffer(tdefl_compressor *d, const void *pIn_buf, size_t in_buf_size, tdefl_flush flush) -{ - MZ_ASSERT(d->m_pPut_buf_func); - return tdefl_compress(d, pIn_buf, &in_buf_size, NULL, NULL, flush); -} - -tdefl_status tdefl_init(tdefl_compressor *d, tdefl_put_buf_func_ptr pPut_buf_func, void *pPut_buf_user, int flags) -{ - d->m_pPut_buf_func = pPut_buf_func; - d->m_pPut_buf_user = pPut_buf_user; - d->m_flags = (mz_uint)(flags); - d->m_max_probes[0] = 1 + ((flags & 0xFFF) + 2) / 3; - d->m_greedy_parsing = (flags & TDEFL_GREEDY_PARSING_FLAG) != 0; - d->m_max_probes[1] = 1 + (((flags & 0xFFF) >> 2) + 2) / 3; - if (!(flags & TDEFL_NONDETERMINISTIC_PARSING_FLAG)) - MZ_CLEAR_OBJ(d->m_hash); - d->m_lookahead_pos = d->m_lookahead_size = d->m_dict_size = d->m_total_lz_bytes = d->m_lz_code_buf_dict_pos = d->m_bits_in = 0; - d->m_output_flush_ofs = d->m_output_flush_remaining = d->m_finished = d->m_block_index = d->m_bit_buffer = d->m_wants_to_finish = 0; - d->m_pLZ_code_buf = d->m_lz_code_buf + 1; - d->m_pLZ_flags = d->m_lz_code_buf; - d->m_num_flags_left = 8; - d->m_pOutput_buf = d->m_output_buf; - d->m_pOutput_buf_end = d->m_output_buf; - d->m_prev_return_status = TDEFL_STATUS_OKAY; - d->m_saved_match_dist = d->m_saved_match_len = d->m_saved_lit = 0; - d->m_adler32 = 1; - d->m_pIn_buf = NULL; - d->m_pOut_buf = NULL; - d->m_pIn_buf_size = NULL; - d->m_pOut_buf_size = NULL; - d->m_flush = TDEFL_NO_FLUSH; - d->m_pSrc = NULL; - d->m_src_buf_left = 0; - d->m_out_buf_ofs = 0; - if (!(flags & TDEFL_NONDETERMINISTIC_PARSING_FLAG)) - MZ_CLEAR_OBJ(d->m_dict); - memset(&d->m_huff_count[0][0], 0, sizeof(d->m_huff_count[0][0]) * TDEFL_MAX_HUFF_SYMBOLS_0); - memset(&d->m_huff_count[1][0], 0, sizeof(d->m_huff_count[1][0]) * TDEFL_MAX_HUFF_SYMBOLS_1); - return TDEFL_STATUS_OKAY; -} - -tdefl_status tdefl_get_prev_return_status(tdefl_compressor *d) -{ - return d->m_prev_return_status; -} - -mz_uint32 tdefl_get_adler32(tdefl_compressor *d) -{ - return d->m_adler32; -} - -mz_bool tdefl_compress_mem_to_output(const void *pBuf, size_t buf_len, tdefl_put_buf_func_ptr pPut_buf_func, void *pPut_buf_user, int flags) -{ - tdefl_compressor *pComp; - mz_bool succeeded; - if (((buf_len) && (!pBuf)) || (!pPut_buf_func)) - return MZ_FALSE; - pComp = (tdefl_compressor *)MZ_MALLOC(sizeof(tdefl_compressor)); - if (!pComp) - return MZ_FALSE; - succeeded = (tdefl_init(pComp, pPut_buf_func, pPut_buf_user, flags) == TDEFL_STATUS_OKAY); - succeeded = succeeded && (tdefl_compress_buffer(pComp, pBuf, buf_len, TDEFL_FINISH) == TDEFL_STATUS_DONE); - MZ_FREE(pComp); - return succeeded; -} - -typedef struct -{ - size_t m_size, m_capacity; - mz_uint8 *m_pBuf; - mz_bool m_expandable; -} tdefl_output_buffer; - -static mz_bool tdefl_output_buffer_putter(const void *pBuf, int len, void *pUser) -{ - tdefl_output_buffer *p = (tdefl_output_buffer *)pUser; - size_t new_size = p->m_size + len; - if (new_size > p->m_capacity) - { - size_t new_capacity = p->m_capacity; - mz_uint8 *pNew_buf; - if (!p->m_expandable) - return MZ_FALSE; - do - { - new_capacity = MZ_MAX(128U, new_capacity << 1U); - } while (new_size > new_capacity); - pNew_buf = (mz_uint8 *)MZ_REALLOC(p->m_pBuf, new_capacity); - if (!pNew_buf) - return MZ_FALSE; - p->m_pBuf = pNew_buf; - p->m_capacity = new_capacity; - } - memcpy((mz_uint8 *)p->m_pBuf + p->m_size, pBuf, len); - p->m_size = new_size; - return MZ_TRUE; -} - -void *tdefl_compress_mem_to_heap(const void *pSrc_buf, size_t src_buf_len, size_t *pOut_len, int flags) -{ - tdefl_output_buffer out_buf; - MZ_CLEAR_OBJ(out_buf); - if (!pOut_len) - return MZ_FALSE; - else - *pOut_len = 0; - out_buf.m_expandable = MZ_TRUE; - if (!tdefl_compress_mem_to_output(pSrc_buf, src_buf_len, tdefl_output_buffer_putter, &out_buf, flags)) - return NULL; - *pOut_len = out_buf.m_size; - return out_buf.m_pBuf; -} - -size_t tdefl_compress_mem_to_mem(void *pOut_buf, size_t out_buf_len, const void *pSrc_buf, size_t src_buf_len, int flags) -{ - tdefl_output_buffer out_buf; - MZ_CLEAR_OBJ(out_buf); - if (!pOut_buf) - return 0; - out_buf.m_pBuf = (mz_uint8 *)pOut_buf; - out_buf.m_capacity = out_buf_len; - if (!tdefl_compress_mem_to_output(pSrc_buf, src_buf_len, tdefl_output_buffer_putter, &out_buf, flags)) - return 0; - return out_buf.m_size; -} - -static const mz_uint s_tdefl_num_probes[11] = { 0, 1, 6, 32, 16, 32, 128, 256, 512, 768, 1500 }; - -/* level may actually range from [0,10] (10 is a "hidden" max level, where we want a bit more compression and it's fine if throughput to fall off a cliff on some files). */ -mz_uint tdefl_create_comp_flags_from_zip_params(int level, int window_bits, int strategy) -{ - mz_uint comp_flags = s_tdefl_num_probes[(level >= 0) ? MZ_MIN(10, level) : MZ_DEFAULT_LEVEL] | ((level <= 3) ? TDEFL_GREEDY_PARSING_FLAG : 0); - if (window_bits > 0) - comp_flags |= TDEFL_WRITE_ZLIB_HEADER; - - if (!level) - comp_flags |= TDEFL_FORCE_ALL_RAW_BLOCKS; - else if (strategy == MZ_FILTERED) - comp_flags |= TDEFL_FILTER_MATCHES; - else if (strategy == MZ_HUFFMAN_ONLY) - comp_flags &= ~TDEFL_MAX_PROBES_MASK; - else if (strategy == MZ_FIXED) - comp_flags |= TDEFL_FORCE_ALL_STATIC_BLOCKS; - else if (strategy == MZ_RLE) - comp_flags |= TDEFL_RLE_MATCHES; - - return comp_flags; -} - -#ifdef _MSC_VER -#pragma warning(push) -#pragma warning(disable : 4204) /* nonstandard extension used : non-constant aggregate initializer (also supported by GNU C and C99, so no big deal) */ -#endif - -/* Simple PNG writer function by Alex Evans, 2011. Released into the public domain: https://gist.github.com/908299, more context at - http://altdevblogaday.org/2011/04/06/a-smaller-jpg-encoder/. - This is actually a modification of Alex's original code so PNG files generated by this function pass pngcheck. */ -void *tdefl_write_image_to_png_file_in_memory_ex(const void *pImage, int w, int h, int num_chans, size_t *pLen_out, mz_uint level, mz_bool flip) -{ - /* Using a local copy of this array here in case MINIZ_NO_ZLIB_APIS was defined. */ - static const mz_uint s_tdefl_png_num_probes[11] = { 0, 1, 6, 32, 16, 32, 128, 256, 512, 768, 1500 }; - tdefl_compressor *pComp = (tdefl_compressor *)MZ_MALLOC(sizeof(tdefl_compressor)); - tdefl_output_buffer out_buf; - int i, bpl = w * num_chans, y, z; - mz_uint32 c; - *pLen_out = 0; - if (!pComp) - return NULL; - MZ_CLEAR_OBJ(out_buf); - out_buf.m_expandable = MZ_TRUE; - out_buf.m_capacity = 57 + MZ_MAX(64, (1 + bpl) * h); - if (NULL == (out_buf.m_pBuf = (mz_uint8 *)MZ_MALLOC(out_buf.m_capacity))) - { - MZ_FREE(pComp); - return NULL; - } - /* write dummy header */ - for (z = 41; z; --z) - tdefl_output_buffer_putter(&z, 1, &out_buf); - /* compress image data */ - tdefl_init(pComp, tdefl_output_buffer_putter, &out_buf, s_tdefl_png_num_probes[MZ_MIN(10, level)] | TDEFL_WRITE_ZLIB_HEADER); - for (y = 0; y < h; ++y) - { - tdefl_compress_buffer(pComp, &z, 1, TDEFL_NO_FLUSH); - tdefl_compress_buffer(pComp, (mz_uint8 *)pImage + (flip ? (h - 1 - y) : y) * bpl, bpl, TDEFL_NO_FLUSH); - } - if (tdefl_compress_buffer(pComp, NULL, 0, TDEFL_FINISH) != TDEFL_STATUS_DONE) - { - MZ_FREE(pComp); - MZ_FREE(out_buf.m_pBuf); - return NULL; - } - /* write real header */ - *pLen_out = out_buf.m_size - 41; - { - static const mz_uint8 chans[] = { 0x00, 0x00, 0x04, 0x02, 0x06 }; - mz_uint8 pnghdr[41] = { 0x89, 0x50, 0x4e, 0x47, 0x0d, - 0x0a, 0x1a, 0x0a, 0x00, 0x00, - 0x00, 0x0d, 0x49, 0x48, 0x44, - 0x52, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x08, - 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x49, 0x44, 0x41, - 0x54 }; - pnghdr[18] = (mz_uint8)(w >> 8); - pnghdr[19] = (mz_uint8)w; - pnghdr[22] = (mz_uint8)(h >> 8); - pnghdr[23] = (mz_uint8)h; - pnghdr[25] = chans[num_chans]; - pnghdr[33] = (mz_uint8)(*pLen_out >> 24); - pnghdr[34] = (mz_uint8)(*pLen_out >> 16); - pnghdr[35] = (mz_uint8)(*pLen_out >> 8); - pnghdr[36] = (mz_uint8)*pLen_out; - c = (mz_uint32)mz_crc32(MZ_CRC32_INIT, pnghdr + 12, 17); - for (i = 0; i < 4; ++i, c <<= 8) - ((mz_uint8 *)(pnghdr + 29))[i] = (mz_uint8)(c >> 24); - memcpy(out_buf.m_pBuf, pnghdr, 41); - } - /* write footer (IDAT CRC-32, followed by IEND chunk) */ - if (!tdefl_output_buffer_putter("\0\0\0\0\0\0\0\0\x49\x45\x4e\x44\xae\x42\x60\x82", 16, &out_buf)) - { - *pLen_out = 0; - MZ_FREE(pComp); - MZ_FREE(out_buf.m_pBuf); - return NULL; - } - c = (mz_uint32)mz_crc32(MZ_CRC32_INIT, out_buf.m_pBuf + 41 - 4, *pLen_out + 4); - for (i = 0; i < 4; ++i, c <<= 8) - (out_buf.m_pBuf + out_buf.m_size - 16)[i] = (mz_uint8)(c >> 24); - /* compute final size of file, grab compressed data buffer and return */ - *pLen_out += 57; - MZ_FREE(pComp); - return out_buf.m_pBuf; -} -void *tdefl_write_image_to_png_file_in_memory(const void *pImage, int w, int h, int num_chans, size_t *pLen_out) -{ - /* Level 6 corresponds to TDEFL_DEFAULT_MAX_PROBES or MZ_DEFAULT_LEVEL (but we can't depend on MZ_DEFAULT_LEVEL being available in case the zlib API's where #defined out) */ - return tdefl_write_image_to_png_file_in_memory_ex(pImage, w, h, num_chans, pLen_out, 6, MZ_FALSE); -} - -#ifndef MINIZ_NO_MALLOC -/* Allocate the tdefl_compressor and tinfl_decompressor structures in C so that */ -/* non-C language bindings to tdefL_ and tinfl_ API don't need to worry about */ -/* structure size and allocation mechanism. */ -tdefl_compressor *tdefl_compressor_alloc() -{ - return (tdefl_compressor *)MZ_MALLOC(sizeof(tdefl_compressor)); -} - -void tdefl_compressor_free(tdefl_compressor *pComp) -{ - MZ_FREE(pComp); -} -#endif - -#ifdef _MSC_VER -#pragma warning(pop) -#endif - -#ifdef __cplusplus -} -#endif -/************************************************************************** - * - * Copyright 2013-2014 RAD Game Tools and Valve Software - * Copyright 2010-2014 Rich Geldreich and Tenacious Software LLC - * All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - * - **************************************************************************/ - - - -#ifdef __cplusplus -extern "C" { -#endif - -/* ------------------- Low-level Decompression (completely independent from all compression API's) */ - -#define TINFL_MEMCPY(d, s, l) memcpy(d, s, l) -#define TINFL_MEMSET(p, c, l) memset(p, c, l) - -#define TINFL_CR_BEGIN \ - switch (r->m_state) \ - { \ - case 0: -#define TINFL_CR_RETURN(state_index, result) \ - do \ - { \ - status = result; \ - r->m_state = state_index; \ - goto common_exit; \ - case state_index:; \ - } \ - MZ_MACRO_END -#define TINFL_CR_RETURN_FOREVER(state_index, result) \ - do \ - { \ - for (;;) \ - { \ - TINFL_CR_RETURN(state_index, result); \ - } \ - } \ - MZ_MACRO_END -#define TINFL_CR_FINISH } - -#define TINFL_GET_BYTE(state_index, c) \ - do \ - { \ - while (pIn_buf_cur >= pIn_buf_end) \ - { \ - TINFL_CR_RETURN(state_index, (decomp_flags & TINFL_FLAG_HAS_MORE_INPUT) ? TINFL_STATUS_NEEDS_MORE_INPUT : TINFL_STATUS_FAILED_CANNOT_MAKE_PROGRESS); \ - } \ - c = *pIn_buf_cur++; \ - } \ - MZ_MACRO_END - -#define TINFL_NEED_BITS(state_index, n) \ - do \ - { \ - mz_uint c; \ - TINFL_GET_BYTE(state_index, c); \ - bit_buf |= (((tinfl_bit_buf_t)c) << num_bits); \ - num_bits += 8; \ - } while (num_bits < (mz_uint)(n)) -#define TINFL_SKIP_BITS(state_index, n) \ - do \ - { \ - if (num_bits < (mz_uint)(n)) \ - { \ - TINFL_NEED_BITS(state_index, n); \ - } \ - bit_buf >>= (n); \ - num_bits -= (n); \ - } \ - MZ_MACRO_END -#define TINFL_GET_BITS(state_index, b, n) \ - do \ - { \ - if (num_bits < (mz_uint)(n)) \ - { \ - TINFL_NEED_BITS(state_index, n); \ - } \ - b = bit_buf & ((1 << (n)) - 1); \ - bit_buf >>= (n); \ - num_bits -= (n); \ - } \ - MZ_MACRO_END - -/* TINFL_HUFF_BITBUF_FILL() is only used rarely, when the number of bytes remaining in the input buffer falls below 2. */ -/* It reads just enough bytes from the input stream that are needed to decode the next Huffman code (and absolutely no more). It works by trying to fully decode a */ -/* Huffman code by using whatever bits are currently present in the bit buffer. If this fails, it reads another byte, and tries again until it succeeds or until the */ -/* bit buffer contains >=15 bits (deflate's max. Huffman code size). */ -#define TINFL_HUFF_BITBUF_FILL(state_index, pHuff) \ - do \ - { \ - temp = (pHuff)->m_look_up[bit_buf & (TINFL_FAST_LOOKUP_SIZE - 1)]; \ - if (temp >= 0) \ - { \ - code_len = temp >> 9; \ - if ((code_len) && (num_bits >= code_len)) \ - break; \ - } \ - else if (num_bits > TINFL_FAST_LOOKUP_BITS) \ - { \ - code_len = TINFL_FAST_LOOKUP_BITS; \ - do \ - { \ - temp = (pHuff)->m_tree[~temp + ((bit_buf >> code_len++) & 1)]; \ - } while ((temp < 0) && (num_bits >= (code_len + 1))); \ - if (temp >= 0) \ - break; \ - } \ - TINFL_GET_BYTE(state_index, c); \ - bit_buf |= (((tinfl_bit_buf_t)c) << num_bits); \ - num_bits += 8; \ - } while (num_bits < 15); - -/* TINFL_HUFF_DECODE() decodes the next Huffman coded symbol. It's more complex than you would initially expect because the zlib API expects the decompressor to never read */ -/* beyond the final byte of the deflate stream. (In other words, when this macro wants to read another byte from the input, it REALLY needs another byte in order to fully */ -/* decode the next Huffman code.) Handling this properly is particularly important on raw deflate (non-zlib) streams, which aren't followed by a byte aligned adler-32. */ -/* The slow path is only executed at the very end of the input buffer. */ -/* v1.16: The original macro handled the case at the very end of the passed-in input buffer, but we also need to handle the case where the user passes in 1+zillion bytes */ -/* following the deflate data and our non-conservative read-ahead path won't kick in here on this code. This is much trickier. */ -#define TINFL_HUFF_DECODE(state_index, sym, pHuff) \ - do \ - { \ - int temp; \ - mz_uint code_len, c; \ - if (num_bits < 15) \ - { \ - if ((pIn_buf_end - pIn_buf_cur) < 2) \ - { \ - TINFL_HUFF_BITBUF_FILL(state_index, pHuff); \ - } \ - else \ - { \ - bit_buf |= (((tinfl_bit_buf_t)pIn_buf_cur[0]) << num_bits) | (((tinfl_bit_buf_t)pIn_buf_cur[1]) << (num_bits + 8)); \ - pIn_buf_cur += 2; \ - num_bits += 16; \ - } \ - } \ - if ((temp = (pHuff)->m_look_up[bit_buf & (TINFL_FAST_LOOKUP_SIZE - 1)]) >= 0) \ - code_len = temp >> 9, temp &= 511; \ - else \ - { \ - code_len = TINFL_FAST_LOOKUP_BITS; \ - do \ - { \ - temp = (pHuff)->m_tree[~temp + ((bit_buf >> code_len++) & 1)]; \ - } while (temp < 0); \ - } \ - sym = temp; \ - bit_buf >>= code_len; \ - num_bits -= code_len; \ - } \ - MZ_MACRO_END - -tinfl_status tinfl_decompress(tinfl_decompressor *r, const mz_uint8 *pIn_buf_next, size_t *pIn_buf_size, mz_uint8 *pOut_buf_start, mz_uint8 *pOut_buf_next, size_t *pOut_buf_size, const mz_uint32 decomp_flags) -{ - static const int s_length_base[31] = { 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0 }; - static const int s_length_extra[31] = { 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 0, 0 }; - static const int s_dist_base[32] = { 1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0 }; - static const int s_dist_extra[32] = { 0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13 }; - static const mz_uint8 s_length_dezigzag[19] = { 16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15 }; - static const int s_min_table_sizes[3] = { 257, 1, 4 }; - - tinfl_status status = TINFL_STATUS_FAILED; - mz_uint32 num_bits, dist, counter, num_extra; - tinfl_bit_buf_t bit_buf; - const mz_uint8 *pIn_buf_cur = pIn_buf_next, *const pIn_buf_end = pIn_buf_next + *pIn_buf_size; - mz_uint8 *pOut_buf_cur = pOut_buf_next, *const pOut_buf_end = pOut_buf_next + *pOut_buf_size; - size_t out_buf_size_mask = (decomp_flags & TINFL_FLAG_USING_NON_WRAPPING_OUTPUT_BUF) ? (size_t)-1 : ((pOut_buf_next - pOut_buf_start) + *pOut_buf_size) - 1, dist_from_out_buf_start; - - /* Ensure the output buffer's size is a power of 2, unless the output buffer is large enough to hold the entire output file (in which case it doesn't matter). */ - if (((out_buf_size_mask + 1) & out_buf_size_mask) || (pOut_buf_next < pOut_buf_start)) - { - *pIn_buf_size = *pOut_buf_size = 0; - return TINFL_STATUS_BAD_PARAM; - } - - num_bits = r->m_num_bits; - bit_buf = r->m_bit_buf; - dist = r->m_dist; - counter = r->m_counter; - num_extra = r->m_num_extra; - dist_from_out_buf_start = r->m_dist_from_out_buf_start; - TINFL_CR_BEGIN - - bit_buf = num_bits = dist = counter = num_extra = r->m_zhdr0 = r->m_zhdr1 = 0; - r->m_z_adler32 = r->m_check_adler32 = 1; - if (decomp_flags & TINFL_FLAG_PARSE_ZLIB_HEADER) - { - TINFL_GET_BYTE(1, r->m_zhdr0); - TINFL_GET_BYTE(2, r->m_zhdr1); - counter = (((r->m_zhdr0 * 256 + r->m_zhdr1) % 31 != 0) || (r->m_zhdr1 & 32) || ((r->m_zhdr0 & 15) != 8)); - if (!(decomp_flags & TINFL_FLAG_USING_NON_WRAPPING_OUTPUT_BUF)) - counter |= (((1U << (8U + (r->m_zhdr0 >> 4))) > 32768U) || ((out_buf_size_mask + 1) < (size_t)(1U << (8U + (r->m_zhdr0 >> 4))))); - if (counter) - { - TINFL_CR_RETURN_FOREVER(36, TINFL_STATUS_FAILED); - } - } - - do - { - TINFL_GET_BITS(3, r->m_final, 3); - r->m_type = r->m_final >> 1; - if (r->m_type == 0) - { - TINFL_SKIP_BITS(5, num_bits & 7); - for (counter = 0; counter < 4; ++counter) - { - if (num_bits) - TINFL_GET_BITS(6, r->m_raw_header[counter], 8); - else - TINFL_GET_BYTE(7, r->m_raw_header[counter]); - } - if ((counter = (r->m_raw_header[0] | (r->m_raw_header[1] << 8))) != (mz_uint)(0xFFFF ^ (r->m_raw_header[2] | (r->m_raw_header[3] << 8)))) - { - TINFL_CR_RETURN_FOREVER(39, TINFL_STATUS_FAILED); - } - while ((counter) && (num_bits)) - { - TINFL_GET_BITS(51, dist, 8); - while (pOut_buf_cur >= pOut_buf_end) - { - TINFL_CR_RETURN(52, TINFL_STATUS_HAS_MORE_OUTPUT); - } - *pOut_buf_cur++ = (mz_uint8)dist; - counter--; - } - while (counter) - { - size_t n; - while (pOut_buf_cur >= pOut_buf_end) - { - TINFL_CR_RETURN(9, TINFL_STATUS_HAS_MORE_OUTPUT); - } - while (pIn_buf_cur >= pIn_buf_end) - { - TINFL_CR_RETURN(38, (decomp_flags & TINFL_FLAG_HAS_MORE_INPUT) ? TINFL_STATUS_NEEDS_MORE_INPUT : TINFL_STATUS_FAILED_CANNOT_MAKE_PROGRESS); - } - n = MZ_MIN(MZ_MIN((size_t)(pOut_buf_end - pOut_buf_cur), (size_t)(pIn_buf_end - pIn_buf_cur)), counter); - TINFL_MEMCPY(pOut_buf_cur, pIn_buf_cur, n); - pIn_buf_cur += n; - pOut_buf_cur += n; - counter -= (mz_uint)n; - } - } - else if (r->m_type == 3) - { - TINFL_CR_RETURN_FOREVER(10, TINFL_STATUS_FAILED); - } - else - { - if (r->m_type == 1) - { - mz_uint8 *p = r->m_tables[0].m_code_size; - mz_uint i; - r->m_table_sizes[0] = 288; - r->m_table_sizes[1] = 32; - TINFL_MEMSET(r->m_tables[1].m_code_size, 5, 32); - for (i = 0; i <= 143; ++i) - *p++ = 8; - for (; i <= 255; ++i) - *p++ = 9; - for (; i <= 279; ++i) - *p++ = 7; - for (; i <= 287; ++i) - *p++ = 8; - } - else - { - for (counter = 0; counter < 3; counter++) - { - TINFL_GET_BITS(11, r->m_table_sizes[counter], "\05\05\04"[counter]); - r->m_table_sizes[counter] += s_min_table_sizes[counter]; - } - MZ_CLEAR_OBJ(r->m_tables[2].m_code_size); - for (counter = 0; counter < r->m_table_sizes[2]; counter++) - { - mz_uint s; - TINFL_GET_BITS(14, s, 3); - r->m_tables[2].m_code_size[s_length_dezigzag[counter]] = (mz_uint8)s; - } - r->m_table_sizes[2] = 19; - } - for (; (int)r->m_type >= 0; r->m_type--) - { - int tree_next, tree_cur; - tinfl_huff_table *pTable; - mz_uint i, j, used_syms, total, sym_index, next_code[17], total_syms[16]; - pTable = &r->m_tables[r->m_type]; - MZ_CLEAR_OBJ(total_syms); - MZ_CLEAR_OBJ(pTable->m_look_up); - MZ_CLEAR_OBJ(pTable->m_tree); - for (i = 0; i < r->m_table_sizes[r->m_type]; ++i) - total_syms[pTable->m_code_size[i]]++; - used_syms = 0, total = 0; - next_code[0] = next_code[1] = 0; - for (i = 1; i <= 15; ++i) - { - used_syms += total_syms[i]; - next_code[i + 1] = (total = ((total + total_syms[i]) << 1)); - } - if ((65536 != total) && (used_syms > 1)) - { - TINFL_CR_RETURN_FOREVER(35, TINFL_STATUS_FAILED); - } - for (tree_next = -1, sym_index = 0; sym_index < r->m_table_sizes[r->m_type]; ++sym_index) - { - mz_uint rev_code = 0, l, cur_code, code_size = pTable->m_code_size[sym_index]; - if (!code_size) - continue; - cur_code = next_code[code_size]++; - for (l = code_size; l > 0; l--, cur_code >>= 1) - rev_code = (rev_code << 1) | (cur_code & 1); - if (code_size <= TINFL_FAST_LOOKUP_BITS) - { - mz_int16 k = (mz_int16)((code_size << 9) | sym_index); - while (rev_code < TINFL_FAST_LOOKUP_SIZE) - { - pTable->m_look_up[rev_code] = k; - rev_code += (1 << code_size); - } - continue; - } - if (0 == (tree_cur = pTable->m_look_up[rev_code & (TINFL_FAST_LOOKUP_SIZE - 1)])) - { - pTable->m_look_up[rev_code & (TINFL_FAST_LOOKUP_SIZE - 1)] = (mz_int16)tree_next; - tree_cur = tree_next; - tree_next -= 2; - } - rev_code >>= (TINFL_FAST_LOOKUP_BITS - 1); - for (j = code_size; j > (TINFL_FAST_LOOKUP_BITS + 1); j--) - { - tree_cur -= ((rev_code >>= 1) & 1); - if (!pTable->m_tree[-tree_cur - 1]) - { - pTable->m_tree[-tree_cur - 1] = (mz_int16)tree_next; - tree_cur = tree_next; - tree_next -= 2; - } - else - tree_cur = pTable->m_tree[-tree_cur - 1]; - } - tree_cur -= ((rev_code >>= 1) & 1); - pTable->m_tree[-tree_cur - 1] = (mz_int16)sym_index; - } - if (r->m_type == 2) - { - for (counter = 0; counter < (r->m_table_sizes[0] + r->m_table_sizes[1]);) - { - mz_uint s; - TINFL_HUFF_DECODE(16, dist, &r->m_tables[2]); - if (dist < 16) - { - r->m_len_codes[counter++] = (mz_uint8)dist; - continue; - } - if ((dist == 16) && (!counter)) - { - TINFL_CR_RETURN_FOREVER(17, TINFL_STATUS_FAILED); - } - num_extra = "\02\03\07"[dist - 16]; - TINFL_GET_BITS(18, s, num_extra); - s += "\03\03\013"[dist - 16]; - TINFL_MEMSET(r->m_len_codes + counter, (dist == 16) ? r->m_len_codes[counter - 1] : 0, s); - counter += s; - } - if ((r->m_table_sizes[0] + r->m_table_sizes[1]) != counter) - { - TINFL_CR_RETURN_FOREVER(21, TINFL_STATUS_FAILED); - } - TINFL_MEMCPY(r->m_tables[0].m_code_size, r->m_len_codes, r->m_table_sizes[0]); - TINFL_MEMCPY(r->m_tables[1].m_code_size, r->m_len_codes + r->m_table_sizes[0], r->m_table_sizes[1]); - } - } - for (;;) - { - mz_uint8 *pSrc; - for (;;) - { - if (((pIn_buf_end - pIn_buf_cur) < 4) || ((pOut_buf_end - pOut_buf_cur) < 2)) - { - TINFL_HUFF_DECODE(23, counter, &r->m_tables[0]); - if (counter >= 256) - break; - while (pOut_buf_cur >= pOut_buf_end) - { - TINFL_CR_RETURN(24, TINFL_STATUS_HAS_MORE_OUTPUT); - } - *pOut_buf_cur++ = (mz_uint8)counter; - } - else - { - int sym2; - mz_uint code_len; -#if TINFL_USE_64BIT_BITBUF - if (num_bits < 30) - { - bit_buf |= (((tinfl_bit_buf_t)MZ_READ_LE32(pIn_buf_cur)) << num_bits); - pIn_buf_cur += 4; - num_bits += 32; - } -#else - if (num_bits < 15) - { - bit_buf |= (((tinfl_bit_buf_t)MZ_READ_LE16(pIn_buf_cur)) << num_bits); - pIn_buf_cur += 2; - num_bits += 16; - } -#endif - if ((sym2 = r->m_tables[0].m_look_up[bit_buf & (TINFL_FAST_LOOKUP_SIZE - 1)]) >= 0) - code_len = sym2 >> 9; - else - { - code_len = TINFL_FAST_LOOKUP_BITS; - do - { - sym2 = r->m_tables[0].m_tree[~sym2 + ((bit_buf >> code_len++) & 1)]; - } while (sym2 < 0); - } - counter = sym2; - bit_buf >>= code_len; - num_bits -= code_len; - if (counter & 256) - break; - -#if !TINFL_USE_64BIT_BITBUF - if (num_bits < 15) - { - bit_buf |= (((tinfl_bit_buf_t)MZ_READ_LE16(pIn_buf_cur)) << num_bits); - pIn_buf_cur += 2; - num_bits += 16; - } -#endif - if ((sym2 = r->m_tables[0].m_look_up[bit_buf & (TINFL_FAST_LOOKUP_SIZE - 1)]) >= 0) - code_len = sym2 >> 9; - else - { - code_len = TINFL_FAST_LOOKUP_BITS; - do - { - sym2 = r->m_tables[0].m_tree[~sym2 + ((bit_buf >> code_len++) & 1)]; - } while (sym2 < 0); - } - bit_buf >>= code_len; - num_bits -= code_len; - - pOut_buf_cur[0] = (mz_uint8)counter; - if (sym2 & 256) - { - pOut_buf_cur++; - counter = sym2; - break; - } - pOut_buf_cur[1] = (mz_uint8)sym2; - pOut_buf_cur += 2; - } - } - if ((counter &= 511) == 256) - break; - - num_extra = s_length_extra[counter - 257]; - counter = s_length_base[counter - 257]; - if (num_extra) - { - mz_uint extra_bits; - TINFL_GET_BITS(25, extra_bits, num_extra); - counter += extra_bits; - } - - TINFL_HUFF_DECODE(26, dist, &r->m_tables[1]); - num_extra = s_dist_extra[dist]; - dist = s_dist_base[dist]; - if (num_extra) - { - mz_uint extra_bits; - TINFL_GET_BITS(27, extra_bits, num_extra); - dist += extra_bits; - } - - dist_from_out_buf_start = pOut_buf_cur - pOut_buf_start; - if ((dist > dist_from_out_buf_start) && (decomp_flags & TINFL_FLAG_USING_NON_WRAPPING_OUTPUT_BUF)) - { - TINFL_CR_RETURN_FOREVER(37, TINFL_STATUS_FAILED); - } - - pSrc = pOut_buf_start + ((dist_from_out_buf_start - dist) & out_buf_size_mask); - - if ((MZ_MAX(pOut_buf_cur, pSrc) + counter) > pOut_buf_end) - { - while (counter--) - { - while (pOut_buf_cur >= pOut_buf_end) - { - TINFL_CR_RETURN(53, TINFL_STATUS_HAS_MORE_OUTPUT); - } - *pOut_buf_cur++ = pOut_buf_start[(dist_from_out_buf_start++ - dist) & out_buf_size_mask]; - } - continue; - } -#if MINIZ_USE_UNALIGNED_LOADS_AND_STORES - else if ((counter >= 9) && (counter <= dist)) - { - const mz_uint8 *pSrc_end = pSrc + (counter & ~7); - do - { -#ifdef MINIZ_UNALIGNED_USE_MEMCPY - memcpy(pOut_buf_cur, pSrc, sizeof(mz_uint32)*2); -#else - ((mz_uint32 *)pOut_buf_cur)[0] = ((const mz_uint32 *)pSrc)[0]; - ((mz_uint32 *)pOut_buf_cur)[1] = ((const mz_uint32 *)pSrc)[1]; -#endif - pOut_buf_cur += 8; - } while ((pSrc += 8) < pSrc_end); - if ((counter &= 7) < 3) - { - if (counter) - { - pOut_buf_cur[0] = pSrc[0]; - if (counter > 1) - pOut_buf_cur[1] = pSrc[1]; - pOut_buf_cur += counter; - } - continue; - } - } -#endif - while(counter>2) - { - pOut_buf_cur[0] = pSrc[0]; - pOut_buf_cur[1] = pSrc[1]; - pOut_buf_cur[2] = pSrc[2]; - pOut_buf_cur += 3; - pSrc += 3; - counter -= 3; - } - if (counter > 0) - { - pOut_buf_cur[0] = pSrc[0]; - if (counter > 1) - pOut_buf_cur[1] = pSrc[1]; - pOut_buf_cur += counter; - } - } - } - } while (!(r->m_final & 1)); - - /* Ensure byte alignment and put back any bytes from the bitbuf if we've looked ahead too far on gzip, or other Deflate streams followed by arbitrary data. */ - /* I'm being super conservative here. A number of simplifications can be made to the byte alignment part, and the Adler32 check shouldn't ever need to worry about reading from the bitbuf now. */ - TINFL_SKIP_BITS(32, num_bits & 7); - while ((pIn_buf_cur > pIn_buf_next) && (num_bits >= 8)) - { - --pIn_buf_cur; - num_bits -= 8; - } - bit_buf &= (tinfl_bit_buf_t)((((mz_uint64)1) << num_bits) - (mz_uint64)1); - MZ_ASSERT(!num_bits); /* if this assert fires then we've read beyond the end of non-deflate/zlib streams with following data (such as gzip streams). */ - - if (decomp_flags & TINFL_FLAG_PARSE_ZLIB_HEADER) - { - for (counter = 0; counter < 4; ++counter) - { - mz_uint s; - if (num_bits) - TINFL_GET_BITS(41, s, 8); - else - TINFL_GET_BYTE(42, s); - r->m_z_adler32 = (r->m_z_adler32 << 8) | s; - } - } - TINFL_CR_RETURN_FOREVER(34, TINFL_STATUS_DONE); - - TINFL_CR_FINISH - -common_exit: - /* As long as we aren't telling the caller that we NEED more input to make forward progress: */ - /* Put back any bytes from the bitbuf in case we've looked ahead too far on gzip, or other Deflate streams followed by arbitrary data. */ - /* We need to be very careful here to NOT push back any bytes we definitely know we need to make forward progress, though, or we'll lock the caller up into an inf loop. */ - if ((status != TINFL_STATUS_NEEDS_MORE_INPUT) && (status != TINFL_STATUS_FAILED_CANNOT_MAKE_PROGRESS)) - { - while ((pIn_buf_cur > pIn_buf_next) && (num_bits >= 8)) - { - --pIn_buf_cur; - num_bits -= 8; - } - } - r->m_num_bits = num_bits; - r->m_bit_buf = bit_buf & (tinfl_bit_buf_t)((((mz_uint64)1) << num_bits) - (mz_uint64)1); - r->m_dist = dist; - r->m_counter = counter; - r->m_num_extra = num_extra; - r->m_dist_from_out_buf_start = dist_from_out_buf_start; - *pIn_buf_size = pIn_buf_cur - pIn_buf_next; - *pOut_buf_size = pOut_buf_cur - pOut_buf_next; - if ((decomp_flags & (TINFL_FLAG_PARSE_ZLIB_HEADER | TINFL_FLAG_COMPUTE_ADLER32)) && (status >= 0)) - { - const mz_uint8 *ptr = pOut_buf_next; - size_t buf_len = *pOut_buf_size; - mz_uint32 i, s1 = r->m_check_adler32 & 0xffff, s2 = r->m_check_adler32 >> 16; - size_t block_len = buf_len % 5552; - while (buf_len) - { - for (i = 0; i + 7 < block_len; i += 8, ptr += 8) - { - s1 += ptr[0], s2 += s1; - s1 += ptr[1], s2 += s1; - s1 += ptr[2], s2 += s1; - s1 += ptr[3], s2 += s1; - s1 += ptr[4], s2 += s1; - s1 += ptr[5], s2 += s1; - s1 += ptr[6], s2 += s1; - s1 += ptr[7], s2 += s1; - } - for (; i < block_len; ++i) - s1 += *ptr++, s2 += s1; - s1 %= 65521U, s2 %= 65521U; - buf_len -= block_len; - block_len = 5552; - } - r->m_check_adler32 = (s2 << 16) + s1; - if ((status == TINFL_STATUS_DONE) && (decomp_flags & TINFL_FLAG_PARSE_ZLIB_HEADER) && (r->m_check_adler32 != r->m_z_adler32)) - status = TINFL_STATUS_ADLER32_MISMATCH; - } - return status; -} - -/* Higher level helper functions. */ -void *tinfl_decompress_mem_to_heap(const void *pSrc_buf, size_t src_buf_len, size_t *pOut_len, int flags) -{ - tinfl_decompressor decomp; - void *pBuf = NULL, *pNew_buf; - size_t src_buf_ofs = 0, out_buf_capacity = 0; - *pOut_len = 0; - tinfl_init(&decomp); - for (;;) - { - size_t src_buf_size = src_buf_len - src_buf_ofs, dst_buf_size = out_buf_capacity - *pOut_len, new_out_buf_capacity; - tinfl_status status = tinfl_decompress(&decomp, (const mz_uint8 *)pSrc_buf + src_buf_ofs, &src_buf_size, (mz_uint8 *)pBuf, pBuf ? (mz_uint8 *)pBuf + *pOut_len : NULL, &dst_buf_size, - (flags & ~TINFL_FLAG_HAS_MORE_INPUT) | TINFL_FLAG_USING_NON_WRAPPING_OUTPUT_BUF); - if ((status < 0) || (status == TINFL_STATUS_NEEDS_MORE_INPUT)) - { - MZ_FREE(pBuf); - *pOut_len = 0; - return NULL; - } - src_buf_ofs += src_buf_size; - *pOut_len += dst_buf_size; - if (status == TINFL_STATUS_DONE) - break; - new_out_buf_capacity = out_buf_capacity * 2; - if (new_out_buf_capacity < 128) - new_out_buf_capacity = 128; - pNew_buf = MZ_REALLOC(pBuf, new_out_buf_capacity); - if (!pNew_buf) - { - MZ_FREE(pBuf); - *pOut_len = 0; - return NULL; - } - pBuf = pNew_buf; - out_buf_capacity = new_out_buf_capacity; - } - return pBuf; -} - -size_t tinfl_decompress_mem_to_mem(void *pOut_buf, size_t out_buf_len, const void *pSrc_buf, size_t src_buf_len, int flags) -{ - tinfl_decompressor decomp; - tinfl_status status; - tinfl_init(&decomp); - status = tinfl_decompress(&decomp, (const mz_uint8 *)pSrc_buf, &src_buf_len, (mz_uint8 *)pOut_buf, (mz_uint8 *)pOut_buf, &out_buf_len, (flags & ~TINFL_FLAG_HAS_MORE_INPUT) | TINFL_FLAG_USING_NON_WRAPPING_OUTPUT_BUF); - return (status != TINFL_STATUS_DONE) ? TINFL_DECOMPRESS_MEM_TO_MEM_FAILED : out_buf_len; -} - -int tinfl_decompress_mem_to_callback(const void *pIn_buf, size_t *pIn_buf_size, tinfl_put_buf_func_ptr pPut_buf_func, void *pPut_buf_user, int flags) -{ - int result = 0; - tinfl_decompressor decomp; - mz_uint8 *pDict = (mz_uint8 *)MZ_MALLOC(TINFL_LZ_DICT_SIZE); - size_t in_buf_ofs = 0, dict_ofs = 0; - if (!pDict) - return TINFL_STATUS_FAILED; - tinfl_init(&decomp); - for (;;) - { - size_t in_buf_size = *pIn_buf_size - in_buf_ofs, dst_buf_size = TINFL_LZ_DICT_SIZE - dict_ofs; - tinfl_status status = tinfl_decompress(&decomp, (const mz_uint8 *)pIn_buf + in_buf_ofs, &in_buf_size, pDict, pDict + dict_ofs, &dst_buf_size, - (flags & ~(TINFL_FLAG_HAS_MORE_INPUT | TINFL_FLAG_USING_NON_WRAPPING_OUTPUT_BUF))); - in_buf_ofs += in_buf_size; - if ((dst_buf_size) && (!(*pPut_buf_func)(pDict + dict_ofs, (int)dst_buf_size, pPut_buf_user))) - break; - if (status != TINFL_STATUS_HAS_MORE_OUTPUT) - { - result = (status == TINFL_STATUS_DONE); - break; - } - dict_ofs = (dict_ofs + dst_buf_size) & (TINFL_LZ_DICT_SIZE - 1); - } - MZ_FREE(pDict); - *pIn_buf_size = in_buf_ofs; - return result; -} - -#ifndef MINIZ_NO_MALLOC -tinfl_decompressor *tinfl_decompressor_alloc() -{ - tinfl_decompressor *pDecomp = (tinfl_decompressor *)MZ_MALLOC(sizeof(tinfl_decompressor)); - if (pDecomp) - tinfl_init(pDecomp); - return pDecomp; -} - -void tinfl_decompressor_free(tinfl_decompressor *pDecomp) -{ - MZ_FREE(pDecomp); -} -#endif - -#ifdef __cplusplus -} -#endif -/************************************************************************** - * - * Copyright 2013-2014 RAD Game Tools and Valve Software - * Copyright 2010-2014 Rich Geldreich and Tenacious Software LLC - * Copyright 2016 Martin Raiber - * All Rights Reserved. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - * - **************************************************************************/ - - -#ifndef MINIZ_NO_ARCHIVE_APIS - -#ifdef __cplusplus -extern "C" { -#endif - -/* ------------------- .ZIP archive reading */ - -#ifdef MINIZ_NO_STDIO -#define MZ_FILE void * -#else -#include - -#if defined(_MSC_VER) || defined(__MINGW64__) -static FILE *mz_fopen(const char *pFilename, const char *pMode) -{ - FILE *pFile = NULL; - fopen_s(&pFile, pFilename, pMode); - return pFile; -} -static FILE *mz_freopen(const char *pPath, const char *pMode, FILE *pStream) -{ - FILE *pFile = NULL; - if (freopen_s(&pFile, pPath, pMode, pStream)) - return NULL; - return pFile; -} -#ifndef MINIZ_NO_TIME -#include -#endif -#define MZ_FOPEN mz_fopen -#define MZ_FCLOSE fclose -#define MZ_FREAD fread -#define MZ_FWRITE fwrite -#define MZ_FTELL64 _ftelli64 -#define MZ_FSEEK64 _fseeki64 -#define MZ_FILE_STAT_STRUCT _stat64 -#define MZ_FILE_STAT _stat64 -#define MZ_FFLUSH fflush -#define MZ_FREOPEN mz_freopen -#define MZ_DELETE_FILE remove -#elif defined(__MINGW32__) -#ifndef MINIZ_NO_TIME -#include -#endif -#define MZ_FOPEN(f, m) fopen(f, m) -#define MZ_FCLOSE fclose -#define MZ_FREAD fread -#define MZ_FWRITE fwrite -#define MZ_FTELL64 ftello64 -#define MZ_FSEEK64 fseeko64 -#define MZ_FILE_STAT_STRUCT _stat -#define MZ_FILE_STAT _stat -#define MZ_FFLUSH fflush -#define MZ_FREOPEN(f, m, s) freopen(f, m, s) -#define MZ_DELETE_FILE remove -#elif defined(__TINYC__) -#ifndef MINIZ_NO_TIME -#include -#endif -#define MZ_FOPEN(f, m) fopen(f, m) -#define MZ_FCLOSE fclose -#define MZ_FREAD fread -#define MZ_FWRITE fwrite -#define MZ_FTELL64 ftell -#define MZ_FSEEK64 fseek -#define MZ_FILE_STAT_STRUCT stat -#define MZ_FILE_STAT stat -#define MZ_FFLUSH fflush -#define MZ_FREOPEN(f, m, s) freopen(f, m, s) -#define MZ_DELETE_FILE remove -#elif defined(__GNUC__) && defined(_LARGEFILE64_SOURCE) -#ifndef MINIZ_NO_TIME -#include -#endif -#define MZ_FOPEN(f, m) fopen64(f, m) -#define MZ_FCLOSE fclose -#define MZ_FREAD fread -#define MZ_FWRITE fwrite -#define MZ_FTELL64 ftello64 -#define MZ_FSEEK64 fseeko64 -#define MZ_FILE_STAT_STRUCT stat64 -#define MZ_FILE_STAT stat64 -#define MZ_FFLUSH fflush -#define MZ_FREOPEN(p, m, s) freopen64(p, m, s) -#define MZ_DELETE_FILE remove -#elif defined(__APPLE__) -#ifndef MINIZ_NO_TIME -#include -#endif -#define MZ_FOPEN(f, m) fopen(f, m) -#define MZ_FCLOSE fclose -#define MZ_FREAD fread -#define MZ_FWRITE fwrite -#define MZ_FTELL64 ftello -#define MZ_FSEEK64 fseeko -#define MZ_FILE_STAT_STRUCT stat -#define MZ_FILE_STAT stat -#define MZ_FFLUSH fflush -#define MZ_FREOPEN(p, m, s) freopen(p, m, s) -#define MZ_DELETE_FILE remove - -#else -#pragma message("Using fopen, ftello, fseeko, stat() etc. path for file I/O - this path may not support large files.") -#ifndef MINIZ_NO_TIME -#include -#endif -#define MZ_FOPEN(f, m) fopen(f, m) -#define MZ_FCLOSE fclose -#define MZ_FREAD fread -#define MZ_FWRITE fwrite -#ifdef __STRICT_ANSI__ -#define MZ_FTELL64 ftell -#define MZ_FSEEK64 fseek -#else -#define MZ_FTELL64 ftello -#define MZ_FSEEK64 fseeko -#endif -#define MZ_FILE_STAT_STRUCT stat -#define MZ_FILE_STAT stat -#define MZ_FFLUSH fflush -#define MZ_FREOPEN(f, m, s) freopen(f, m, s) -#define MZ_DELETE_FILE remove -#endif /* #ifdef _MSC_VER */ -#endif /* #ifdef MINIZ_NO_STDIO */ - -#define MZ_TOLOWER(c) ((((c) >= 'A') && ((c) <= 'Z')) ? ((c) - 'A' + 'a') : (c)) - -/* Various ZIP archive enums. To completely avoid cross platform compiler alignment and platform endian issues, miniz.c doesn't use structs for any of this stuff. */ -enum -{ - /* ZIP archive identifiers and record sizes */ - MZ_ZIP_END_OF_CENTRAL_DIR_HEADER_SIG = 0x06054b50, - MZ_ZIP_CENTRAL_DIR_HEADER_SIG = 0x02014b50, - MZ_ZIP_LOCAL_DIR_HEADER_SIG = 0x04034b50, - MZ_ZIP_LOCAL_DIR_HEADER_SIZE = 30, - MZ_ZIP_CENTRAL_DIR_HEADER_SIZE = 46, - MZ_ZIP_END_OF_CENTRAL_DIR_HEADER_SIZE = 22, - - /* ZIP64 archive identifier and record sizes */ - MZ_ZIP64_END_OF_CENTRAL_DIR_HEADER_SIG = 0x06064b50, - MZ_ZIP64_END_OF_CENTRAL_DIR_LOCATOR_SIG = 0x07064b50, - MZ_ZIP64_END_OF_CENTRAL_DIR_HEADER_SIZE = 56, - MZ_ZIP64_END_OF_CENTRAL_DIR_LOCATOR_SIZE = 20, - MZ_ZIP64_EXTENDED_INFORMATION_FIELD_HEADER_ID = 0x0001, - MZ_ZIP_DATA_DESCRIPTOR_ID = 0x08074b50, - MZ_ZIP_DATA_DESCRIPTER_SIZE64 = 24, - MZ_ZIP_DATA_DESCRIPTER_SIZE32 = 16, - - /* Central directory header record offsets */ - MZ_ZIP_CDH_SIG_OFS = 0, - MZ_ZIP_CDH_VERSION_MADE_BY_OFS = 4, - MZ_ZIP_CDH_VERSION_NEEDED_OFS = 6, - MZ_ZIP_CDH_BIT_FLAG_OFS = 8, - MZ_ZIP_CDH_METHOD_OFS = 10, - MZ_ZIP_CDH_FILE_TIME_OFS = 12, - MZ_ZIP_CDH_FILE_DATE_OFS = 14, - MZ_ZIP_CDH_CRC32_OFS = 16, - MZ_ZIP_CDH_COMPRESSED_SIZE_OFS = 20, - MZ_ZIP_CDH_DECOMPRESSED_SIZE_OFS = 24, - MZ_ZIP_CDH_FILENAME_LEN_OFS = 28, - MZ_ZIP_CDH_EXTRA_LEN_OFS = 30, - MZ_ZIP_CDH_COMMENT_LEN_OFS = 32, - MZ_ZIP_CDH_DISK_START_OFS = 34, - MZ_ZIP_CDH_INTERNAL_ATTR_OFS = 36, - MZ_ZIP_CDH_EXTERNAL_ATTR_OFS = 38, - MZ_ZIP_CDH_LOCAL_HEADER_OFS = 42, - - /* Local directory header offsets */ - MZ_ZIP_LDH_SIG_OFS = 0, - MZ_ZIP_LDH_VERSION_NEEDED_OFS = 4, - MZ_ZIP_LDH_BIT_FLAG_OFS = 6, - MZ_ZIP_LDH_METHOD_OFS = 8, - MZ_ZIP_LDH_FILE_TIME_OFS = 10, - MZ_ZIP_LDH_FILE_DATE_OFS = 12, - MZ_ZIP_LDH_CRC32_OFS = 14, - MZ_ZIP_LDH_COMPRESSED_SIZE_OFS = 18, - MZ_ZIP_LDH_DECOMPRESSED_SIZE_OFS = 22, - MZ_ZIP_LDH_FILENAME_LEN_OFS = 26, - MZ_ZIP_LDH_EXTRA_LEN_OFS = 28, - MZ_ZIP_LDH_BIT_FLAG_HAS_LOCATOR = 1 << 3, - - /* End of central directory offsets */ - MZ_ZIP_ECDH_SIG_OFS = 0, - MZ_ZIP_ECDH_NUM_THIS_DISK_OFS = 4, - MZ_ZIP_ECDH_NUM_DISK_CDIR_OFS = 6, - MZ_ZIP_ECDH_CDIR_NUM_ENTRIES_ON_DISK_OFS = 8, - MZ_ZIP_ECDH_CDIR_TOTAL_ENTRIES_OFS = 10, - MZ_ZIP_ECDH_CDIR_SIZE_OFS = 12, - MZ_ZIP_ECDH_CDIR_OFS_OFS = 16, - MZ_ZIP_ECDH_COMMENT_SIZE_OFS = 20, - - /* ZIP64 End of central directory locator offsets */ - MZ_ZIP64_ECDL_SIG_OFS = 0, /* 4 bytes */ - MZ_ZIP64_ECDL_NUM_DISK_CDIR_OFS = 4, /* 4 bytes */ - MZ_ZIP64_ECDL_REL_OFS_TO_ZIP64_ECDR_OFS = 8, /* 8 bytes */ - MZ_ZIP64_ECDL_TOTAL_NUMBER_OF_DISKS_OFS = 16, /* 4 bytes */ - - /* ZIP64 End of central directory header offsets */ - MZ_ZIP64_ECDH_SIG_OFS = 0, /* 4 bytes */ - MZ_ZIP64_ECDH_SIZE_OF_RECORD_OFS = 4, /* 8 bytes */ - MZ_ZIP64_ECDH_VERSION_MADE_BY_OFS = 12, /* 2 bytes */ - MZ_ZIP64_ECDH_VERSION_NEEDED_OFS = 14, /* 2 bytes */ - MZ_ZIP64_ECDH_NUM_THIS_DISK_OFS = 16, /* 4 bytes */ - MZ_ZIP64_ECDH_NUM_DISK_CDIR_OFS = 20, /* 4 bytes */ - MZ_ZIP64_ECDH_CDIR_NUM_ENTRIES_ON_DISK_OFS = 24, /* 8 bytes */ - MZ_ZIP64_ECDH_CDIR_TOTAL_ENTRIES_OFS = 32, /* 8 bytes */ - MZ_ZIP64_ECDH_CDIR_SIZE_OFS = 40, /* 8 bytes */ - MZ_ZIP64_ECDH_CDIR_OFS_OFS = 48, /* 8 bytes */ - MZ_ZIP_VERSION_MADE_BY_DOS_FILESYSTEM_ID = 0, - MZ_ZIP_DOS_DIR_ATTRIBUTE_BITFLAG = 0x10, - MZ_ZIP_GENERAL_PURPOSE_BIT_FLAG_IS_ENCRYPTED = 1, - MZ_ZIP_GENERAL_PURPOSE_BIT_FLAG_COMPRESSED_PATCH_FLAG = 32, - MZ_ZIP_GENERAL_PURPOSE_BIT_FLAG_USES_STRONG_ENCRYPTION = 64, - MZ_ZIP_GENERAL_PURPOSE_BIT_FLAG_LOCAL_DIR_IS_MASKED = 8192, - MZ_ZIP_GENERAL_PURPOSE_BIT_FLAG_UTF8 = 1 << 11 -}; - -typedef struct -{ - void *m_p; - size_t m_size, m_capacity; - mz_uint m_element_size; -} mz_zip_array; - -struct mz_zip_internal_state_tag -{ - mz_zip_array m_central_dir; - mz_zip_array m_central_dir_offsets; - mz_zip_array m_sorted_central_dir_offsets; - - /* The flags passed in when the archive is initially opened. */ - uint32_t m_init_flags; - - /* MZ_TRUE if the archive has a zip64 end of central directory headers, etc. */ - mz_bool m_zip64; - - /* MZ_TRUE if we found zip64 extended info in the central directory (m_zip64 will also be slammed to true too, even if we didn't find a zip64 end of central dir header, etc.) */ - mz_bool m_zip64_has_extended_info_fields; - - /* These fields are used by the file, FILE, memory, and memory/heap read/write helpers. */ - MZ_FILE *m_pFile; - mz_uint64 m_file_archive_start_ofs; - - void *m_pMem; - size_t m_mem_size; - size_t m_mem_capacity; -}; - -#define MZ_ZIP_ARRAY_SET_ELEMENT_SIZE(array_ptr, element_size) (array_ptr)->m_element_size = element_size - -#if defined(DEBUG) || defined(_DEBUG) || defined(NDEBUG) -static MZ_FORCEINLINE mz_uint mz_zip_array_range_check(const mz_zip_array *pArray, mz_uint index) -{ - MZ_ASSERT(index < pArray->m_size); - return index; -} -#define MZ_ZIP_ARRAY_ELEMENT(array_ptr, element_type, index) ((element_type *)((array_ptr)->m_p))[mz_zip_array_range_check(array_ptr, index)] -#else -#define MZ_ZIP_ARRAY_ELEMENT(array_ptr, element_type, index) ((element_type *)((array_ptr)->m_p))[index] -#endif - -static MZ_FORCEINLINE void mz_zip_array_init(mz_zip_array *pArray, mz_uint32 element_size) -{ - memset(pArray, 0, sizeof(mz_zip_array)); - pArray->m_element_size = element_size; -} - -static MZ_FORCEINLINE void mz_zip_array_clear(mz_zip_archive *pZip, mz_zip_array *pArray) -{ - pZip->m_pFree(pZip->m_pAlloc_opaque, pArray->m_p); - memset(pArray, 0, sizeof(mz_zip_array)); -} - -static mz_bool mz_zip_array_ensure_capacity(mz_zip_archive *pZip, mz_zip_array *pArray, size_t min_new_capacity, mz_uint growing) -{ - void *pNew_p; - size_t new_capacity = min_new_capacity; - MZ_ASSERT(pArray->m_element_size); - if (pArray->m_capacity >= min_new_capacity) - return MZ_TRUE; - if (growing) - { - new_capacity = MZ_MAX(1, pArray->m_capacity); - while (new_capacity < min_new_capacity) - new_capacity *= 2; - } - if (NULL == (pNew_p = pZip->m_pRealloc(pZip->m_pAlloc_opaque, pArray->m_p, pArray->m_element_size, new_capacity))) - return MZ_FALSE; - pArray->m_p = pNew_p; - pArray->m_capacity = new_capacity; - return MZ_TRUE; -} - -static MZ_FORCEINLINE mz_bool mz_zip_array_reserve(mz_zip_archive *pZip, mz_zip_array *pArray, size_t new_capacity, mz_uint growing) -{ - if (new_capacity > pArray->m_capacity) - { - if (!mz_zip_array_ensure_capacity(pZip, pArray, new_capacity, growing)) - return MZ_FALSE; - } - return MZ_TRUE; -} - -static MZ_FORCEINLINE mz_bool mz_zip_array_resize(mz_zip_archive *pZip, mz_zip_array *pArray, size_t new_size, mz_uint growing) -{ - if (new_size > pArray->m_capacity) - { - if (!mz_zip_array_ensure_capacity(pZip, pArray, new_size, growing)) - return MZ_FALSE; - } - pArray->m_size = new_size; - return MZ_TRUE; -} - -static MZ_FORCEINLINE mz_bool mz_zip_array_ensure_room(mz_zip_archive *pZip, mz_zip_array *pArray, size_t n) -{ - return mz_zip_array_reserve(pZip, pArray, pArray->m_size + n, MZ_TRUE); -} - -static MZ_FORCEINLINE mz_bool mz_zip_array_push_back(mz_zip_archive *pZip, mz_zip_array *pArray, const void *pElements, size_t n) -{ - size_t orig_size = pArray->m_size; - if (!mz_zip_array_resize(pZip, pArray, orig_size + n, MZ_TRUE)) - return MZ_FALSE; - if (n > 0) - memcpy((mz_uint8 *)pArray->m_p + orig_size * pArray->m_element_size, pElements, n * pArray->m_element_size); - return MZ_TRUE; -} - -#ifndef MINIZ_NO_TIME -static MZ_TIME_T mz_zip_dos_to_time_t(int dos_time, int dos_date) -{ - struct tm tm; - memset(&tm, 0, sizeof(tm)); - tm.tm_isdst = -1; - tm.tm_year = ((dos_date >> 9) & 127) + 1980 - 1900; - tm.tm_mon = ((dos_date >> 5) & 15) - 1; - tm.tm_mday = dos_date & 31; - tm.tm_hour = (dos_time >> 11) & 31; - tm.tm_min = (dos_time >> 5) & 63; - tm.tm_sec = (dos_time << 1) & 62; - return mktime(&tm); -} - -#ifndef MINIZ_NO_ARCHIVE_WRITING_APIS -static void mz_zip_time_t_to_dos_time(MZ_TIME_T time, mz_uint16 *pDOS_time, mz_uint16 *pDOS_date) -{ -#ifdef _MSC_VER - struct tm tm_struct; - struct tm *tm = &tm_struct; - errno_t err = localtime_s(tm, &time); - if (err) - { - *pDOS_date = 0; - *pDOS_time = 0; - return; - } -#else - struct tm *tm = localtime(&time); -#endif /* #ifdef _MSC_VER */ - - *pDOS_time = (mz_uint16)(((tm->tm_hour) << 11) + ((tm->tm_min) << 5) + ((tm->tm_sec) >> 1)); - *pDOS_date = (mz_uint16)(((tm->tm_year + 1900 - 1980) << 9) + ((tm->tm_mon + 1) << 5) + tm->tm_mday); -} -#endif /* MINIZ_NO_ARCHIVE_WRITING_APIS */ - -#ifndef MINIZ_NO_STDIO -#ifndef MINIZ_NO_ARCHIVE_WRITING_APIS -static mz_bool mz_zip_get_file_modified_time(const char *pFilename, MZ_TIME_T *pTime) -{ - struct MZ_FILE_STAT_STRUCT file_stat; - - /* On Linux with x86 glibc, this call will fail on large files (I think >= 0x80000000 bytes) unless you compiled with _LARGEFILE64_SOURCE. Argh. */ - if (MZ_FILE_STAT(pFilename, &file_stat) != 0) - return MZ_FALSE; - - *pTime = file_stat.st_mtime; - - return MZ_TRUE; -} -#endif /* #ifndef MINIZ_NO_ARCHIVE_WRITING_APIS*/ - -static mz_bool mz_zip_set_file_times(const char *pFilename, MZ_TIME_T access_time, MZ_TIME_T modified_time) -{ - struct utimbuf t; - - memset(&t, 0, sizeof(t)); - t.actime = access_time; - t.modtime = modified_time; - - return !utime(pFilename, &t); -} -#endif /* #ifndef MINIZ_NO_STDIO */ -#endif /* #ifndef MINIZ_NO_TIME */ - -static MZ_FORCEINLINE mz_bool mz_zip_set_error(mz_zip_archive *pZip, mz_zip_error err_num) -{ - if (pZip) - pZip->m_last_error = err_num; - return MZ_FALSE; -} - -static mz_bool mz_zip_reader_init_internal(mz_zip_archive *pZip, mz_uint flags) -{ - (void)flags; - if ((!pZip) || (pZip->m_pState) || (pZip->m_zip_mode != MZ_ZIP_MODE_INVALID)) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER); - - if (!pZip->m_pAlloc) - pZip->m_pAlloc = miniz_def_alloc_func; - if (!pZip->m_pFree) - pZip->m_pFree = miniz_def_free_func; - if (!pZip->m_pRealloc) - pZip->m_pRealloc = miniz_def_realloc_func; - - pZip->m_archive_size = 0; - pZip->m_central_directory_file_ofs = 0; - pZip->m_total_files = 0; - pZip->m_last_error = MZ_ZIP_NO_ERROR; - - if (NULL == (pZip->m_pState = (mz_zip_internal_state *)pZip->m_pAlloc(pZip->m_pAlloc_opaque, 1, sizeof(mz_zip_internal_state)))) - return mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED); - - memset(pZip->m_pState, 0, sizeof(mz_zip_internal_state)); - MZ_ZIP_ARRAY_SET_ELEMENT_SIZE(&pZip->m_pState->m_central_dir, sizeof(mz_uint8)); - MZ_ZIP_ARRAY_SET_ELEMENT_SIZE(&pZip->m_pState->m_central_dir_offsets, sizeof(mz_uint32)); - MZ_ZIP_ARRAY_SET_ELEMENT_SIZE(&pZip->m_pState->m_sorted_central_dir_offsets, sizeof(mz_uint32)); - pZip->m_pState->m_init_flags = flags; - pZip->m_pState->m_zip64 = MZ_FALSE; - pZip->m_pState->m_zip64_has_extended_info_fields = MZ_FALSE; - - pZip->m_zip_mode = MZ_ZIP_MODE_READING; - - return MZ_TRUE; -} - -static MZ_FORCEINLINE mz_bool mz_zip_reader_filename_less(const mz_zip_array *pCentral_dir_array, const mz_zip_array *pCentral_dir_offsets, mz_uint l_index, mz_uint r_index) -{ - const mz_uint8 *pL = &MZ_ZIP_ARRAY_ELEMENT(pCentral_dir_array, mz_uint8, MZ_ZIP_ARRAY_ELEMENT(pCentral_dir_offsets, mz_uint32, l_index)), *pE; - const mz_uint8 *pR = &MZ_ZIP_ARRAY_ELEMENT(pCentral_dir_array, mz_uint8, MZ_ZIP_ARRAY_ELEMENT(pCentral_dir_offsets, mz_uint32, r_index)); - mz_uint l_len = MZ_READ_LE16(pL + MZ_ZIP_CDH_FILENAME_LEN_OFS), r_len = MZ_READ_LE16(pR + MZ_ZIP_CDH_FILENAME_LEN_OFS); - mz_uint8 l = 0, r = 0; - pL += MZ_ZIP_CENTRAL_DIR_HEADER_SIZE; - pR += MZ_ZIP_CENTRAL_DIR_HEADER_SIZE; - pE = pL + MZ_MIN(l_len, r_len); - while (pL < pE) - { - if ((l = MZ_TOLOWER(*pL)) != (r = MZ_TOLOWER(*pR))) - break; - pL++; - pR++; - } - return (pL == pE) ? (l_len < r_len) : (l < r); -} - -#define MZ_SWAP_UINT32(a, b) \ - do \ - { \ - mz_uint32 t = a; \ - a = b; \ - b = t; \ - } \ - MZ_MACRO_END - -/* Heap sort of lowercased filenames, used to help accelerate plain central directory searches by mz_zip_reader_locate_file(). (Could also use qsort(), but it could allocate memory.) */ -static void mz_zip_reader_sort_central_dir_offsets_by_filename(mz_zip_archive *pZip) -{ - mz_zip_internal_state *pState = pZip->m_pState; - const mz_zip_array *pCentral_dir_offsets = &pState->m_central_dir_offsets; - const mz_zip_array *pCentral_dir = &pState->m_central_dir; - mz_uint32 *pIndices; - mz_uint32 start, end; - const mz_uint32 size = pZip->m_total_files; - - if (size <= 1U) - return; - - pIndices = &MZ_ZIP_ARRAY_ELEMENT(&pState->m_sorted_central_dir_offsets, mz_uint32, 0); - - start = (size - 2U) >> 1U; - for (;;) - { - mz_uint64 child, root = start; - for (;;) - { - if ((child = (root << 1U) + 1U) >= size) - break; - child += (((child + 1U) < size) && (mz_zip_reader_filename_less(pCentral_dir, pCentral_dir_offsets, pIndices[child], pIndices[child + 1U]))); - if (!mz_zip_reader_filename_less(pCentral_dir, pCentral_dir_offsets, pIndices[root], pIndices[child])) - break; - MZ_SWAP_UINT32(pIndices[root], pIndices[child]); - root = child; - } - if (!start) - break; - start--; - } - - end = size - 1; - while (end > 0) - { - mz_uint64 child, root = 0; - MZ_SWAP_UINT32(pIndices[end], pIndices[0]); - for (;;) - { - if ((child = (root << 1U) + 1U) >= end) - break; - child += (((child + 1U) < end) && mz_zip_reader_filename_less(pCentral_dir, pCentral_dir_offsets, pIndices[child], pIndices[child + 1U])); - if (!mz_zip_reader_filename_less(pCentral_dir, pCentral_dir_offsets, pIndices[root], pIndices[child])) - break; - MZ_SWAP_UINT32(pIndices[root], pIndices[child]); - root = child; - } - end--; - } -} - -static mz_bool mz_zip_reader_locate_header_sig(mz_zip_archive *pZip, mz_uint32 record_sig, mz_uint32 record_size, mz_int64 *pOfs) -{ - mz_int64 cur_file_ofs; - mz_uint32 buf_u32[4096 / sizeof(mz_uint32)]; - mz_uint8 *pBuf = (mz_uint8 *)buf_u32; - - /* Basic sanity checks - reject files which are too small */ - if (pZip->m_archive_size < record_size) - return MZ_FALSE; - - /* Find the record by scanning the file from the end towards the beginning. */ - cur_file_ofs = MZ_MAX((mz_int64)pZip->m_archive_size - (mz_int64)sizeof(buf_u32), 0); - for (;;) - { - int i, n = (int)MZ_MIN(sizeof(buf_u32), pZip->m_archive_size - cur_file_ofs); - - if (pZip->m_pRead(pZip->m_pIO_opaque, cur_file_ofs, pBuf, n) != (mz_uint)n) - return MZ_FALSE; - - for (i = n - 4; i >= 0; --i) - { - mz_uint s = MZ_READ_LE32(pBuf + i); - if (s == record_sig) - { - if ((pZip->m_archive_size - (cur_file_ofs + i)) >= record_size) - break; - } - } - - if (i >= 0) - { - cur_file_ofs += i; - break; - } - - /* Give up if we've searched the entire file, or we've gone back "too far" (~64kb) */ - if ((!cur_file_ofs) || ((pZip->m_archive_size - cur_file_ofs) >= (MZ_UINT16_MAX + record_size))) - return MZ_FALSE; - - cur_file_ofs = MZ_MAX(cur_file_ofs - (sizeof(buf_u32) - 3), 0); - } - - *pOfs = cur_file_ofs; - return MZ_TRUE; -} - -static mz_bool mz_zip_reader_read_central_dir(mz_zip_archive *pZip, mz_uint flags) -{ - mz_uint cdir_size = 0, cdir_entries_on_this_disk = 0, num_this_disk = 0, cdir_disk_index = 0; - mz_uint64 cdir_ofs = 0; - mz_int64 cur_file_ofs = 0; - const mz_uint8 *p; - - mz_uint32 buf_u32[4096 / sizeof(mz_uint32)]; - mz_uint8 *pBuf = (mz_uint8 *)buf_u32; - mz_bool sort_central_dir = ((flags & MZ_ZIP_FLAG_DO_NOT_SORT_CENTRAL_DIRECTORY) == 0); - mz_uint32 zip64_end_of_central_dir_locator_u32[(MZ_ZIP64_END_OF_CENTRAL_DIR_LOCATOR_SIZE + sizeof(mz_uint32) - 1) / sizeof(mz_uint32)]; - mz_uint8 *pZip64_locator = (mz_uint8 *)zip64_end_of_central_dir_locator_u32; - - mz_uint32 zip64_end_of_central_dir_header_u32[(MZ_ZIP64_END_OF_CENTRAL_DIR_HEADER_SIZE + sizeof(mz_uint32) - 1) / sizeof(mz_uint32)]; - mz_uint8 *pZip64_end_of_central_dir = (mz_uint8 *)zip64_end_of_central_dir_header_u32; - - mz_uint64 zip64_end_of_central_dir_ofs = 0; - - /* Basic sanity checks - reject files which are too small, and check the first 4 bytes of the file to make sure a local header is there. */ - if (pZip->m_archive_size < MZ_ZIP_END_OF_CENTRAL_DIR_HEADER_SIZE) - return mz_zip_set_error(pZip, MZ_ZIP_NOT_AN_ARCHIVE); - - if (!mz_zip_reader_locate_header_sig(pZip, MZ_ZIP_END_OF_CENTRAL_DIR_HEADER_SIG, MZ_ZIP_END_OF_CENTRAL_DIR_HEADER_SIZE, &cur_file_ofs)) - return mz_zip_set_error(pZip, MZ_ZIP_FAILED_FINDING_CENTRAL_DIR); - - /* Read and verify the end of central directory record. */ - if (pZip->m_pRead(pZip->m_pIO_opaque, cur_file_ofs, pBuf, MZ_ZIP_END_OF_CENTRAL_DIR_HEADER_SIZE) != MZ_ZIP_END_OF_CENTRAL_DIR_HEADER_SIZE) - return mz_zip_set_error(pZip, MZ_ZIP_FILE_READ_FAILED); - - if (MZ_READ_LE32(pBuf + MZ_ZIP_ECDH_SIG_OFS) != MZ_ZIP_END_OF_CENTRAL_DIR_HEADER_SIG) - return mz_zip_set_error(pZip, MZ_ZIP_NOT_AN_ARCHIVE); - - if (cur_file_ofs >= (MZ_ZIP64_END_OF_CENTRAL_DIR_LOCATOR_SIZE + MZ_ZIP64_END_OF_CENTRAL_DIR_HEADER_SIZE)) - { - if (pZip->m_pRead(pZip->m_pIO_opaque, cur_file_ofs - MZ_ZIP64_END_OF_CENTRAL_DIR_LOCATOR_SIZE, pZip64_locator, MZ_ZIP64_END_OF_CENTRAL_DIR_LOCATOR_SIZE) == MZ_ZIP64_END_OF_CENTRAL_DIR_LOCATOR_SIZE) - { - if (MZ_READ_LE32(pZip64_locator + MZ_ZIP64_ECDL_SIG_OFS) == MZ_ZIP64_END_OF_CENTRAL_DIR_LOCATOR_SIG) - { - zip64_end_of_central_dir_ofs = MZ_READ_LE64(pZip64_locator + MZ_ZIP64_ECDL_REL_OFS_TO_ZIP64_ECDR_OFS); - if (zip64_end_of_central_dir_ofs > (pZip->m_archive_size - MZ_ZIP64_END_OF_CENTRAL_DIR_HEADER_SIZE)) - return mz_zip_set_error(pZip, MZ_ZIP_NOT_AN_ARCHIVE); - - if (pZip->m_pRead(pZip->m_pIO_opaque, zip64_end_of_central_dir_ofs, pZip64_end_of_central_dir, MZ_ZIP64_END_OF_CENTRAL_DIR_HEADER_SIZE) == MZ_ZIP64_END_OF_CENTRAL_DIR_HEADER_SIZE) - { - if (MZ_READ_LE32(pZip64_end_of_central_dir + MZ_ZIP64_ECDH_SIG_OFS) == MZ_ZIP64_END_OF_CENTRAL_DIR_HEADER_SIG) - { - pZip->m_pState->m_zip64 = MZ_TRUE; - } - } - } - } - } - - pZip->m_total_files = MZ_READ_LE16(pBuf + MZ_ZIP_ECDH_CDIR_TOTAL_ENTRIES_OFS); - cdir_entries_on_this_disk = MZ_READ_LE16(pBuf + MZ_ZIP_ECDH_CDIR_NUM_ENTRIES_ON_DISK_OFS); - num_this_disk = MZ_READ_LE16(pBuf + MZ_ZIP_ECDH_NUM_THIS_DISK_OFS); - cdir_disk_index = MZ_READ_LE16(pBuf + MZ_ZIP_ECDH_NUM_DISK_CDIR_OFS); - cdir_size = MZ_READ_LE32(pBuf + MZ_ZIP_ECDH_CDIR_SIZE_OFS); - cdir_ofs = MZ_READ_LE32(pBuf + MZ_ZIP_ECDH_CDIR_OFS_OFS); - - if (pZip->m_pState->m_zip64) - { - mz_uint32 zip64_total_num_of_disks = MZ_READ_LE32(pZip64_locator + MZ_ZIP64_ECDL_TOTAL_NUMBER_OF_DISKS_OFS); - mz_uint64 zip64_cdir_total_entries = MZ_READ_LE64(pZip64_end_of_central_dir + MZ_ZIP64_ECDH_CDIR_TOTAL_ENTRIES_OFS); - mz_uint64 zip64_cdir_total_entries_on_this_disk = MZ_READ_LE64(pZip64_end_of_central_dir + MZ_ZIP64_ECDH_CDIR_NUM_ENTRIES_ON_DISK_OFS); - mz_uint64 zip64_size_of_end_of_central_dir_record = MZ_READ_LE64(pZip64_end_of_central_dir + MZ_ZIP64_ECDH_SIZE_OF_RECORD_OFS); - mz_uint64 zip64_size_of_central_directory = MZ_READ_LE64(pZip64_end_of_central_dir + MZ_ZIP64_ECDH_CDIR_SIZE_OFS); - - if (zip64_size_of_end_of_central_dir_record < (MZ_ZIP64_END_OF_CENTRAL_DIR_HEADER_SIZE - 12)) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED); - - if (zip64_total_num_of_disks != 1U) - return mz_zip_set_error(pZip, MZ_ZIP_UNSUPPORTED_MULTIDISK); - - /* Check for miniz's practical limits */ - if (zip64_cdir_total_entries > MZ_UINT32_MAX) - return mz_zip_set_error(pZip, MZ_ZIP_TOO_MANY_FILES); - - pZip->m_total_files = (mz_uint32)zip64_cdir_total_entries; - - if (zip64_cdir_total_entries_on_this_disk > MZ_UINT32_MAX) - return mz_zip_set_error(pZip, MZ_ZIP_TOO_MANY_FILES); - - cdir_entries_on_this_disk = (mz_uint32)zip64_cdir_total_entries_on_this_disk; - - /* Check for miniz's current practical limits (sorry, this should be enough for millions of files) */ - if (zip64_size_of_central_directory > MZ_UINT32_MAX) - return mz_zip_set_error(pZip, MZ_ZIP_UNSUPPORTED_CDIR_SIZE); - - cdir_size = (mz_uint32)zip64_size_of_central_directory; - - num_this_disk = MZ_READ_LE32(pZip64_end_of_central_dir + MZ_ZIP64_ECDH_NUM_THIS_DISK_OFS); - - cdir_disk_index = MZ_READ_LE32(pZip64_end_of_central_dir + MZ_ZIP64_ECDH_NUM_DISK_CDIR_OFS); - - cdir_ofs = MZ_READ_LE64(pZip64_end_of_central_dir + MZ_ZIP64_ECDH_CDIR_OFS_OFS); - } - - if (pZip->m_total_files != cdir_entries_on_this_disk) - return mz_zip_set_error(pZip, MZ_ZIP_UNSUPPORTED_MULTIDISK); - - if (((num_this_disk | cdir_disk_index) != 0) && ((num_this_disk != 1) || (cdir_disk_index != 1))) - return mz_zip_set_error(pZip, MZ_ZIP_UNSUPPORTED_MULTIDISK); - - if (cdir_size < pZip->m_total_files * MZ_ZIP_CENTRAL_DIR_HEADER_SIZE) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED); - - if ((cdir_ofs + (mz_uint64)cdir_size) > pZip->m_archive_size) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED); - - pZip->m_central_directory_file_ofs = cdir_ofs; - - if (pZip->m_total_files) - { - mz_uint i, n; - /* Read the entire central directory into a heap block, and allocate another heap block to hold the unsorted central dir file record offsets, and possibly another to hold the sorted indices. */ - if ((!mz_zip_array_resize(pZip, &pZip->m_pState->m_central_dir, cdir_size, MZ_FALSE)) || - (!mz_zip_array_resize(pZip, &pZip->m_pState->m_central_dir_offsets, pZip->m_total_files, MZ_FALSE))) - return mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED); - - if (sort_central_dir) - { - if (!mz_zip_array_resize(pZip, &pZip->m_pState->m_sorted_central_dir_offsets, pZip->m_total_files, MZ_FALSE)) - return mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED); - } - - if (pZip->m_pRead(pZip->m_pIO_opaque, cdir_ofs, pZip->m_pState->m_central_dir.m_p, cdir_size) != cdir_size) - return mz_zip_set_error(pZip, MZ_ZIP_FILE_READ_FAILED); - - /* Now create an index into the central directory file records, do some basic sanity checking on each record */ - p = (const mz_uint8 *)pZip->m_pState->m_central_dir.m_p; - for (n = cdir_size, i = 0; i < pZip->m_total_files; ++i) - { - mz_uint total_header_size, disk_index, bit_flags, filename_size, ext_data_size; - mz_uint64 comp_size, decomp_size, local_header_ofs; - - if ((n < MZ_ZIP_CENTRAL_DIR_HEADER_SIZE) || (MZ_READ_LE32(p) != MZ_ZIP_CENTRAL_DIR_HEADER_SIG)) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED); - - MZ_ZIP_ARRAY_ELEMENT(&pZip->m_pState->m_central_dir_offsets, mz_uint32, i) = (mz_uint32)(p - (const mz_uint8 *)pZip->m_pState->m_central_dir.m_p); - - if (sort_central_dir) - MZ_ZIP_ARRAY_ELEMENT(&pZip->m_pState->m_sorted_central_dir_offsets, mz_uint32, i) = i; - - comp_size = MZ_READ_LE32(p + MZ_ZIP_CDH_COMPRESSED_SIZE_OFS); - decomp_size = MZ_READ_LE32(p + MZ_ZIP_CDH_DECOMPRESSED_SIZE_OFS); - local_header_ofs = MZ_READ_LE32(p + MZ_ZIP_CDH_LOCAL_HEADER_OFS); - filename_size = MZ_READ_LE16(p + MZ_ZIP_CDH_FILENAME_LEN_OFS); - ext_data_size = MZ_READ_LE16(p + MZ_ZIP_CDH_EXTRA_LEN_OFS); - - if ((!pZip->m_pState->m_zip64_has_extended_info_fields) && - (ext_data_size) && - (MZ_MAX(MZ_MAX(comp_size, decomp_size), local_header_ofs) == MZ_UINT32_MAX)) - { - /* Attempt to find zip64 extended information field in the entry's extra data */ - mz_uint32 extra_size_remaining = ext_data_size; - - if (extra_size_remaining) - { - const mz_uint8 *pExtra_data; - void* buf = NULL; - - if (MZ_ZIP_CENTRAL_DIR_HEADER_SIZE + filename_size + ext_data_size > n) - { - buf = MZ_MALLOC(ext_data_size); - if(buf==NULL) - return mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED); - - if (pZip->m_pRead(pZip->m_pIO_opaque, cdir_ofs + MZ_ZIP_CENTRAL_DIR_HEADER_SIZE + filename_size, buf, ext_data_size) != ext_data_size) - { - MZ_FREE(buf); - return mz_zip_set_error(pZip, MZ_ZIP_FILE_READ_FAILED); - } - - pExtra_data = (mz_uint8*)buf; - } - else - { - pExtra_data = p + MZ_ZIP_CENTRAL_DIR_HEADER_SIZE + filename_size; - } - - do - { - mz_uint32 field_id; - mz_uint32 field_data_size; - - if (extra_size_remaining < (sizeof(mz_uint16) * 2)) - { - MZ_FREE(buf); - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED); - } - - field_id = MZ_READ_LE16(pExtra_data); - field_data_size = MZ_READ_LE16(pExtra_data + sizeof(mz_uint16)); - - if ((field_data_size + sizeof(mz_uint16) * 2) > extra_size_remaining) - { - MZ_FREE(buf); - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED); - } - - if (field_id == MZ_ZIP64_EXTENDED_INFORMATION_FIELD_HEADER_ID) - { - /* Ok, the archive didn't have any zip64 headers but it uses a zip64 extended information field so mark it as zip64 anyway (this can occur with infozip's zip util when it reads compresses files from stdin). */ - pZip->m_pState->m_zip64 = MZ_TRUE; - pZip->m_pState->m_zip64_has_extended_info_fields = MZ_TRUE; - break; - } - - pExtra_data += sizeof(mz_uint16) * 2 + field_data_size; - extra_size_remaining = extra_size_remaining - sizeof(mz_uint16) * 2 - field_data_size; - } while (extra_size_remaining); - - MZ_FREE(buf); - } - } - - /* I've seen archives that aren't marked as zip64 that uses zip64 ext data, argh */ - if ((comp_size != MZ_UINT32_MAX) && (decomp_size != MZ_UINT32_MAX)) - { - if (((!MZ_READ_LE32(p + MZ_ZIP_CDH_METHOD_OFS)) && (decomp_size != comp_size)) || (decomp_size && !comp_size)) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED); - } - - disk_index = MZ_READ_LE16(p + MZ_ZIP_CDH_DISK_START_OFS); - if ((disk_index == MZ_UINT16_MAX) || ((disk_index != num_this_disk) && (disk_index != 1))) - return mz_zip_set_error(pZip, MZ_ZIP_UNSUPPORTED_MULTIDISK); - - if (comp_size != MZ_UINT32_MAX) - { - if (((mz_uint64)MZ_READ_LE32(p + MZ_ZIP_CDH_LOCAL_HEADER_OFS) + MZ_ZIP_LOCAL_DIR_HEADER_SIZE + comp_size) > pZip->m_archive_size) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED); - } - - bit_flags = MZ_READ_LE16(p + MZ_ZIP_CDH_BIT_FLAG_OFS); - if (bit_flags & MZ_ZIP_GENERAL_PURPOSE_BIT_FLAG_LOCAL_DIR_IS_MASKED) - return mz_zip_set_error(pZip, MZ_ZIP_UNSUPPORTED_ENCRYPTION); - - if ((total_header_size = MZ_ZIP_CENTRAL_DIR_HEADER_SIZE + MZ_READ_LE16(p + MZ_ZIP_CDH_FILENAME_LEN_OFS) + MZ_READ_LE16(p + MZ_ZIP_CDH_EXTRA_LEN_OFS) + MZ_READ_LE16(p + MZ_ZIP_CDH_COMMENT_LEN_OFS)) > n) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED); - - n -= total_header_size; - p += total_header_size; - } - } - - if (sort_central_dir) - mz_zip_reader_sort_central_dir_offsets_by_filename(pZip); - - return MZ_TRUE; -} - -void mz_zip_zero_struct(mz_zip_archive *pZip) -{ - if (pZip) - MZ_CLEAR_OBJ(*pZip); -} - -static mz_bool mz_zip_reader_end_internal(mz_zip_archive *pZip, mz_bool set_last_error) -{ - mz_bool status = MZ_TRUE; - - if (!pZip) - return MZ_FALSE; - - if ((!pZip->m_pState) || (!pZip->m_pAlloc) || (!pZip->m_pFree) || (pZip->m_zip_mode != MZ_ZIP_MODE_READING)) - { - if (set_last_error) - pZip->m_last_error = MZ_ZIP_INVALID_PARAMETER; - - return MZ_FALSE; - } - - if (pZip->m_pState) - { - mz_zip_internal_state *pState = pZip->m_pState; - pZip->m_pState = NULL; - - mz_zip_array_clear(pZip, &pState->m_central_dir); - mz_zip_array_clear(pZip, &pState->m_central_dir_offsets); - mz_zip_array_clear(pZip, &pState->m_sorted_central_dir_offsets); - -#ifndef MINIZ_NO_STDIO - if (pState->m_pFile) - { - if (pZip->m_zip_type == MZ_ZIP_TYPE_FILE) - { - if (MZ_FCLOSE(pState->m_pFile) == EOF) - { - if (set_last_error) - pZip->m_last_error = MZ_ZIP_FILE_CLOSE_FAILED; - status = MZ_FALSE; - } - } - pState->m_pFile = NULL; - } -#endif /* #ifndef MINIZ_NO_STDIO */ - - pZip->m_pFree(pZip->m_pAlloc_opaque, pState); - } - pZip->m_zip_mode = MZ_ZIP_MODE_INVALID; - - return status; -} - -mz_bool mz_zip_reader_end(mz_zip_archive *pZip) -{ - return mz_zip_reader_end_internal(pZip, MZ_TRUE); -} -mz_bool mz_zip_reader_init(mz_zip_archive *pZip, mz_uint64 size, mz_uint flags) -{ - if ((!pZip) || (!pZip->m_pRead)) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER); - - if (!mz_zip_reader_init_internal(pZip, flags)) - return MZ_FALSE; - - pZip->m_zip_type = MZ_ZIP_TYPE_USER; - pZip->m_archive_size = size; - - if (!mz_zip_reader_read_central_dir(pZip, flags)) - { - mz_zip_reader_end_internal(pZip, MZ_FALSE); - return MZ_FALSE; - } - - return MZ_TRUE; -} - -static size_t mz_zip_mem_read_func(void *pOpaque, mz_uint64 file_ofs, void *pBuf, size_t n) -{ - mz_zip_archive *pZip = (mz_zip_archive *)pOpaque; - size_t s = (file_ofs >= pZip->m_archive_size) ? 0 : (size_t)MZ_MIN(pZip->m_archive_size - file_ofs, n); - memcpy(pBuf, (const mz_uint8 *)pZip->m_pState->m_pMem + file_ofs, s); - return s; -} - -mz_bool mz_zip_reader_init_mem(mz_zip_archive *pZip, const void *pMem, size_t size, mz_uint flags) -{ - if (!pMem) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER); - - if (size < MZ_ZIP_END_OF_CENTRAL_DIR_HEADER_SIZE) - return mz_zip_set_error(pZip, MZ_ZIP_NOT_AN_ARCHIVE); - - if (!mz_zip_reader_init_internal(pZip, flags)) - return MZ_FALSE; - - pZip->m_zip_type = MZ_ZIP_TYPE_MEMORY; - pZip->m_archive_size = size; - pZip->m_pRead = mz_zip_mem_read_func; - pZip->m_pIO_opaque = pZip; - pZip->m_pNeeds_keepalive = NULL; - -#ifdef __cplusplus - pZip->m_pState->m_pMem = const_cast(pMem); -#else - pZip->m_pState->m_pMem = (void *)pMem; -#endif - - pZip->m_pState->m_mem_size = size; - - if (!mz_zip_reader_read_central_dir(pZip, flags)) - { - mz_zip_reader_end_internal(pZip, MZ_FALSE); - return MZ_FALSE; - } - - return MZ_TRUE; -} - -#ifndef MINIZ_NO_STDIO -static size_t mz_zip_file_read_func(void *pOpaque, mz_uint64 file_ofs, void *pBuf, size_t n) -{ - mz_zip_archive *pZip = (mz_zip_archive *)pOpaque; - mz_int64 cur_ofs = MZ_FTELL64(pZip->m_pState->m_pFile); - - file_ofs += pZip->m_pState->m_file_archive_start_ofs; - - if (((mz_int64)file_ofs < 0) || (((cur_ofs != (mz_int64)file_ofs)) && (MZ_FSEEK64(pZip->m_pState->m_pFile, (mz_int64)file_ofs, SEEK_SET)))) - return 0; - - return MZ_FREAD(pBuf, 1, n, pZip->m_pState->m_pFile); -} - -mz_bool mz_zip_reader_init_file(mz_zip_archive *pZip, const char *pFilename, mz_uint32 flags) -{ - return mz_zip_reader_init_file_v2(pZip, pFilename, flags, 0, 0); -} - -mz_bool mz_zip_reader_init_file_v2(mz_zip_archive *pZip, const char *pFilename, mz_uint flags, mz_uint64 file_start_ofs, mz_uint64 archive_size) -{ - mz_uint64 file_size; - MZ_FILE *pFile; - - if ((!pZip) || (!pFilename) || ((archive_size) && (archive_size < MZ_ZIP_END_OF_CENTRAL_DIR_HEADER_SIZE))) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER); - - pFile = MZ_FOPEN(pFilename, "rb"); - if (!pFile) - return mz_zip_set_error(pZip, MZ_ZIP_FILE_OPEN_FAILED); - - file_size = archive_size; - if (!file_size) - { - if (MZ_FSEEK64(pFile, 0, SEEK_END)) - { - MZ_FCLOSE(pFile); - return mz_zip_set_error(pZip, MZ_ZIP_FILE_SEEK_FAILED); - } - - file_size = MZ_FTELL64(pFile); - } - - /* TODO: Better sanity check archive_size and the # of actual remaining bytes */ - - if (file_size < MZ_ZIP_END_OF_CENTRAL_DIR_HEADER_SIZE) - { - MZ_FCLOSE(pFile); - return mz_zip_set_error(pZip, MZ_ZIP_NOT_AN_ARCHIVE); - } - - if (!mz_zip_reader_init_internal(pZip, flags)) - { - MZ_FCLOSE(pFile); - return MZ_FALSE; - } - - pZip->m_zip_type = MZ_ZIP_TYPE_FILE; - pZip->m_pRead = mz_zip_file_read_func; - pZip->m_pIO_opaque = pZip; - pZip->m_pState->m_pFile = pFile; - pZip->m_archive_size = file_size; - pZip->m_pState->m_file_archive_start_ofs = file_start_ofs; - - if (!mz_zip_reader_read_central_dir(pZip, flags)) - { - mz_zip_reader_end_internal(pZip, MZ_FALSE); - return MZ_FALSE; - } - - return MZ_TRUE; -} - -mz_bool mz_zip_reader_init_cfile(mz_zip_archive *pZip, MZ_FILE *pFile, mz_uint64 archive_size, mz_uint flags) -{ - mz_uint64 cur_file_ofs; - - if ((!pZip) || (!pFile)) - return mz_zip_set_error(pZip, MZ_ZIP_FILE_OPEN_FAILED); - - cur_file_ofs = MZ_FTELL64(pFile); - - if (!archive_size) - { - if (MZ_FSEEK64(pFile, 0, SEEK_END)) - return mz_zip_set_error(pZip, MZ_ZIP_FILE_SEEK_FAILED); - - archive_size = MZ_FTELL64(pFile) - cur_file_ofs; - - if (archive_size < MZ_ZIP_END_OF_CENTRAL_DIR_HEADER_SIZE) - return mz_zip_set_error(pZip, MZ_ZIP_NOT_AN_ARCHIVE); - } - - if (!mz_zip_reader_init_internal(pZip, flags)) - return MZ_FALSE; - - pZip->m_zip_type = MZ_ZIP_TYPE_CFILE; - pZip->m_pRead = mz_zip_file_read_func; - - pZip->m_pIO_opaque = pZip; - pZip->m_pState->m_pFile = pFile; - pZip->m_archive_size = archive_size; - pZip->m_pState->m_file_archive_start_ofs = cur_file_ofs; - - if (!mz_zip_reader_read_central_dir(pZip, flags)) - { - mz_zip_reader_end_internal(pZip, MZ_FALSE); - return MZ_FALSE; - } - - return MZ_TRUE; -} - -#endif /* #ifndef MINIZ_NO_STDIO */ - -static MZ_FORCEINLINE const mz_uint8 *mz_zip_get_cdh(mz_zip_archive *pZip, mz_uint file_index) -{ - if ((!pZip) || (!pZip->m_pState) || (file_index >= pZip->m_total_files)) - return NULL; - return &MZ_ZIP_ARRAY_ELEMENT(&pZip->m_pState->m_central_dir, mz_uint8, MZ_ZIP_ARRAY_ELEMENT(&pZip->m_pState->m_central_dir_offsets, mz_uint32, file_index)); -} - -mz_bool mz_zip_reader_is_file_encrypted(mz_zip_archive *pZip, mz_uint file_index) -{ - mz_uint m_bit_flag; - const mz_uint8 *p = mz_zip_get_cdh(pZip, file_index); - if (!p) - { - mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER); - return MZ_FALSE; - } - - m_bit_flag = MZ_READ_LE16(p + MZ_ZIP_CDH_BIT_FLAG_OFS); - return (m_bit_flag & (MZ_ZIP_GENERAL_PURPOSE_BIT_FLAG_IS_ENCRYPTED | MZ_ZIP_GENERAL_PURPOSE_BIT_FLAG_USES_STRONG_ENCRYPTION)) != 0; -} - -mz_bool mz_zip_reader_is_file_supported(mz_zip_archive *pZip, mz_uint file_index) -{ - mz_uint bit_flag; - mz_uint method; - - const mz_uint8 *p = mz_zip_get_cdh(pZip, file_index); - if (!p) - { - mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER); - return MZ_FALSE; - } - - method = MZ_READ_LE16(p + MZ_ZIP_CDH_METHOD_OFS); - bit_flag = MZ_READ_LE16(p + MZ_ZIP_CDH_BIT_FLAG_OFS); - - if ((method != 0) && (method != MZ_DEFLATED)) - { - mz_zip_set_error(pZip, MZ_ZIP_UNSUPPORTED_METHOD); - return MZ_FALSE; - } - - if (bit_flag & (MZ_ZIP_GENERAL_PURPOSE_BIT_FLAG_IS_ENCRYPTED | MZ_ZIP_GENERAL_PURPOSE_BIT_FLAG_USES_STRONG_ENCRYPTION)) - { - mz_zip_set_error(pZip, MZ_ZIP_UNSUPPORTED_ENCRYPTION); - return MZ_FALSE; - } - - if (bit_flag & MZ_ZIP_GENERAL_PURPOSE_BIT_FLAG_COMPRESSED_PATCH_FLAG) - { - mz_zip_set_error(pZip, MZ_ZIP_UNSUPPORTED_FEATURE); - return MZ_FALSE; - } - - return MZ_TRUE; -} - -mz_bool mz_zip_reader_is_file_a_directory(mz_zip_archive *pZip, mz_uint file_index) -{ - mz_uint filename_len, attribute_mapping_id, external_attr; - const mz_uint8 *p = mz_zip_get_cdh(pZip, file_index); - if (!p) - { - mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER); - return MZ_FALSE; - } - - filename_len = MZ_READ_LE16(p + MZ_ZIP_CDH_FILENAME_LEN_OFS); - if (filename_len) - { - if (*(p + MZ_ZIP_CENTRAL_DIR_HEADER_SIZE + filename_len - 1) == '/') - return MZ_TRUE; - } - - /* Bugfix: This code was also checking if the internal attribute was non-zero, which wasn't correct. */ - /* Most/all zip writers (hopefully) set DOS file/directory attributes in the low 16-bits, so check for the DOS directory flag and ignore the source OS ID in the created by field. */ - /* FIXME: Remove this check? Is it necessary - we already check the filename. */ - attribute_mapping_id = MZ_READ_LE16(p + MZ_ZIP_CDH_VERSION_MADE_BY_OFS) >> 8; - (void)attribute_mapping_id; - - external_attr = MZ_READ_LE32(p + MZ_ZIP_CDH_EXTERNAL_ATTR_OFS); - if ((external_attr & MZ_ZIP_DOS_DIR_ATTRIBUTE_BITFLAG) != 0) - { - return MZ_TRUE; - } - - return MZ_FALSE; -} - -static mz_bool mz_zip_file_stat_internal(mz_zip_archive *pZip, mz_uint file_index, const mz_uint8 *pCentral_dir_header, mz_zip_archive_file_stat *pStat, mz_bool *pFound_zip64_extra_data) -{ - mz_uint n; - const mz_uint8 *p = pCentral_dir_header; - - if (pFound_zip64_extra_data) - *pFound_zip64_extra_data = MZ_FALSE; - - if ((!p) || (!pStat)) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER); - - /* Extract fields from the central directory record. */ - pStat->m_file_index = file_index; - pStat->m_central_dir_ofs = MZ_ZIP_ARRAY_ELEMENT(&pZip->m_pState->m_central_dir_offsets, mz_uint32, file_index); - pStat->m_version_made_by = MZ_READ_LE16(p + MZ_ZIP_CDH_VERSION_MADE_BY_OFS); - pStat->m_version_needed = MZ_READ_LE16(p + MZ_ZIP_CDH_VERSION_NEEDED_OFS); - pStat->m_bit_flag = MZ_READ_LE16(p + MZ_ZIP_CDH_BIT_FLAG_OFS); - pStat->m_method = MZ_READ_LE16(p + MZ_ZIP_CDH_METHOD_OFS); -#ifndef MINIZ_NO_TIME - pStat->m_time = mz_zip_dos_to_time_t(MZ_READ_LE16(p + MZ_ZIP_CDH_FILE_TIME_OFS), MZ_READ_LE16(p + MZ_ZIP_CDH_FILE_DATE_OFS)); -#endif - pStat->m_crc32 = MZ_READ_LE32(p + MZ_ZIP_CDH_CRC32_OFS); - pStat->m_comp_size = MZ_READ_LE32(p + MZ_ZIP_CDH_COMPRESSED_SIZE_OFS); - pStat->m_uncomp_size = MZ_READ_LE32(p + MZ_ZIP_CDH_DECOMPRESSED_SIZE_OFS); - pStat->m_internal_attr = MZ_READ_LE16(p + MZ_ZIP_CDH_INTERNAL_ATTR_OFS); - pStat->m_external_attr = MZ_READ_LE32(p + MZ_ZIP_CDH_EXTERNAL_ATTR_OFS); - pStat->m_local_header_ofs = MZ_READ_LE32(p + MZ_ZIP_CDH_LOCAL_HEADER_OFS); - - /* Copy as much of the filename and comment as possible. */ - n = MZ_READ_LE16(p + MZ_ZIP_CDH_FILENAME_LEN_OFS); - n = MZ_MIN(n, MZ_ZIP_MAX_ARCHIVE_FILENAME_SIZE - 1); - memcpy(pStat->m_filename, p + MZ_ZIP_CENTRAL_DIR_HEADER_SIZE, n); - pStat->m_filename[n] = '\0'; - - n = MZ_READ_LE16(p + MZ_ZIP_CDH_COMMENT_LEN_OFS); - n = MZ_MIN(n, MZ_ZIP_MAX_ARCHIVE_FILE_COMMENT_SIZE - 1); - pStat->m_comment_size = n; - memcpy(pStat->m_comment, p + MZ_ZIP_CENTRAL_DIR_HEADER_SIZE + MZ_READ_LE16(p + MZ_ZIP_CDH_FILENAME_LEN_OFS) + MZ_READ_LE16(p + MZ_ZIP_CDH_EXTRA_LEN_OFS), n); - pStat->m_comment[n] = '\0'; - - /* Set some flags for convienance */ - pStat->m_is_directory = mz_zip_reader_is_file_a_directory(pZip, file_index); - pStat->m_is_encrypted = mz_zip_reader_is_file_encrypted(pZip, file_index); - pStat->m_is_supported = mz_zip_reader_is_file_supported(pZip, file_index); - - /* See if we need to read any zip64 extended information fields. */ - /* Confusingly, these zip64 fields can be present even on non-zip64 archives (Debian zip on a huge files from stdin piped to stdout creates them). */ - if (MZ_MAX(MZ_MAX(pStat->m_comp_size, pStat->m_uncomp_size), pStat->m_local_header_ofs) == MZ_UINT32_MAX) - { - /* Attempt to find zip64 extended information field in the entry's extra data */ - mz_uint32 extra_size_remaining = MZ_READ_LE16(p + MZ_ZIP_CDH_EXTRA_LEN_OFS); - - if (extra_size_remaining) - { - const mz_uint8 *pExtra_data = p + MZ_ZIP_CENTRAL_DIR_HEADER_SIZE + MZ_READ_LE16(p + MZ_ZIP_CDH_FILENAME_LEN_OFS); - - do - { - mz_uint32 field_id; - mz_uint32 field_data_size; - - if (extra_size_remaining < (sizeof(mz_uint16) * 2)) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED); - - field_id = MZ_READ_LE16(pExtra_data); - field_data_size = MZ_READ_LE16(pExtra_data + sizeof(mz_uint16)); - - if ((field_data_size + sizeof(mz_uint16) * 2) > extra_size_remaining) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED); - - if (field_id == MZ_ZIP64_EXTENDED_INFORMATION_FIELD_HEADER_ID) - { - const mz_uint8 *pField_data = pExtra_data + sizeof(mz_uint16) * 2; - mz_uint32 field_data_remaining = field_data_size; - - if (pFound_zip64_extra_data) - *pFound_zip64_extra_data = MZ_TRUE; - - if (pStat->m_uncomp_size == MZ_UINT32_MAX) - { - if (field_data_remaining < sizeof(mz_uint64)) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED); - - pStat->m_uncomp_size = MZ_READ_LE64(pField_data); - pField_data += sizeof(mz_uint64); - field_data_remaining -= sizeof(mz_uint64); - } - - if (pStat->m_comp_size == MZ_UINT32_MAX) - { - if (field_data_remaining < sizeof(mz_uint64)) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED); - - pStat->m_comp_size = MZ_READ_LE64(pField_data); - pField_data += sizeof(mz_uint64); - field_data_remaining -= sizeof(mz_uint64); - } - - if (pStat->m_local_header_ofs == MZ_UINT32_MAX) - { - if (field_data_remaining < sizeof(mz_uint64)) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED); - - pStat->m_local_header_ofs = MZ_READ_LE64(pField_data); - pField_data += sizeof(mz_uint64); - field_data_remaining -= sizeof(mz_uint64); - } - - break; - } - - pExtra_data += sizeof(mz_uint16) * 2 + field_data_size; - extra_size_remaining = extra_size_remaining - sizeof(mz_uint16) * 2 - field_data_size; - } while (extra_size_remaining); - } - } - - return MZ_TRUE; -} - -static MZ_FORCEINLINE mz_bool mz_zip_string_equal(const char *pA, const char *pB, mz_uint len, mz_uint flags) -{ - mz_uint i; - if (flags & MZ_ZIP_FLAG_CASE_SENSITIVE) - return 0 == memcmp(pA, pB, len); - for (i = 0; i < len; ++i) - if (MZ_TOLOWER(pA[i]) != MZ_TOLOWER(pB[i])) - return MZ_FALSE; - return MZ_TRUE; -} - -static MZ_FORCEINLINE int mz_zip_filename_compare(const mz_zip_array *pCentral_dir_array, const mz_zip_array *pCentral_dir_offsets, mz_uint l_index, const char *pR, mz_uint r_len) -{ - const mz_uint8 *pL = &MZ_ZIP_ARRAY_ELEMENT(pCentral_dir_array, mz_uint8, MZ_ZIP_ARRAY_ELEMENT(pCentral_dir_offsets, mz_uint32, l_index)), *pE; - mz_uint l_len = MZ_READ_LE16(pL + MZ_ZIP_CDH_FILENAME_LEN_OFS); - mz_uint8 l = 0, r = 0; - pL += MZ_ZIP_CENTRAL_DIR_HEADER_SIZE; - pE = pL + MZ_MIN(l_len, r_len); - while (pL < pE) - { - if ((l = MZ_TOLOWER(*pL)) != (r = MZ_TOLOWER(*pR))) - break; - pL++; - pR++; - } - return (pL == pE) ? (int)(l_len - r_len) : (l - r); -} - -static mz_bool mz_zip_locate_file_binary_search(mz_zip_archive *pZip, const char *pFilename, mz_uint32 *pIndex) -{ - mz_zip_internal_state *pState = pZip->m_pState; - const mz_zip_array *pCentral_dir_offsets = &pState->m_central_dir_offsets; - const mz_zip_array *pCentral_dir = &pState->m_central_dir; - mz_uint32 *pIndices = &MZ_ZIP_ARRAY_ELEMENT(&pState->m_sorted_central_dir_offsets, mz_uint32, 0); - const uint32_t size = pZip->m_total_files; - const mz_uint filename_len = (mz_uint)strlen(pFilename); - - if (pIndex) - *pIndex = 0; - - if (size) - { - /* yes I could use uint32_t's, but then we would have to add some special case checks in the loop, argh, and */ - /* honestly the major expense here on 32-bit CPU's will still be the filename compare */ - mz_int64 l = 0, h = (mz_int64)size - 1; - - while (l <= h) - { - mz_int64 m = l + ((h - l) >> 1); - uint32_t file_index = pIndices[(uint32_t)m]; - - int comp = mz_zip_filename_compare(pCentral_dir, pCentral_dir_offsets, file_index, pFilename, filename_len); - if (!comp) - { - if (pIndex) - *pIndex = file_index; - return MZ_TRUE; - } - else if (comp < 0) - l = m + 1; - else - h = m - 1; - } - } - - return mz_zip_set_error(pZip, MZ_ZIP_FILE_NOT_FOUND); -} - -int mz_zip_reader_locate_file(mz_zip_archive *pZip, const char *pName, const char *pComment, mz_uint flags) -{ - mz_uint32 index; - if (!mz_zip_reader_locate_file_v2(pZip, pName, pComment, flags, &index)) - return -1; - else - return (int)index; -} - -mz_bool mz_zip_reader_locate_file_v2(mz_zip_archive *pZip, const char *pName, const char *pComment, mz_uint flags, mz_uint32 *pIndex) -{ - mz_uint file_index; - size_t name_len, comment_len; - - if (pIndex) - *pIndex = 0; - - if ((!pZip) || (!pZip->m_pState) || (!pName)) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER); - - /* See if we can use a binary search */ - if (((pZip->m_pState->m_init_flags & MZ_ZIP_FLAG_DO_NOT_SORT_CENTRAL_DIRECTORY) == 0) && - (pZip->m_zip_mode == MZ_ZIP_MODE_READING) && - ((flags & (MZ_ZIP_FLAG_IGNORE_PATH | MZ_ZIP_FLAG_CASE_SENSITIVE)) == 0) && (!pComment) && (pZip->m_pState->m_sorted_central_dir_offsets.m_size)) - { - return mz_zip_locate_file_binary_search(pZip, pName, pIndex); - } - - /* Locate the entry by scanning the entire central directory */ - name_len = strlen(pName); - if (name_len > MZ_UINT16_MAX) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER); - - comment_len = pComment ? strlen(pComment) : 0; - if (comment_len > MZ_UINT16_MAX) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER); - - for (file_index = 0; file_index < pZip->m_total_files; file_index++) - { - const mz_uint8 *pHeader = &MZ_ZIP_ARRAY_ELEMENT(&pZip->m_pState->m_central_dir, mz_uint8, MZ_ZIP_ARRAY_ELEMENT(&pZip->m_pState->m_central_dir_offsets, mz_uint32, file_index)); - mz_uint filename_len = MZ_READ_LE16(pHeader + MZ_ZIP_CDH_FILENAME_LEN_OFS); - const char *pFilename = (const char *)pHeader + MZ_ZIP_CENTRAL_DIR_HEADER_SIZE; - if (filename_len < name_len) - continue; - if (comment_len) - { - mz_uint file_extra_len = MZ_READ_LE16(pHeader + MZ_ZIP_CDH_EXTRA_LEN_OFS), file_comment_len = MZ_READ_LE16(pHeader + MZ_ZIP_CDH_COMMENT_LEN_OFS); - const char *pFile_comment = pFilename + filename_len + file_extra_len; - if ((file_comment_len != comment_len) || (!mz_zip_string_equal(pComment, pFile_comment, file_comment_len, flags))) - continue; - } - if ((flags & MZ_ZIP_FLAG_IGNORE_PATH) && (filename_len)) - { - int ofs = filename_len - 1; - do - { - if ((pFilename[ofs] == '/') || (pFilename[ofs] == '\\') || (pFilename[ofs] == ':')) - break; - } while (--ofs >= 0); - ofs++; - pFilename += ofs; - filename_len -= ofs; - } - if ((filename_len == name_len) && (mz_zip_string_equal(pName, pFilename, filename_len, flags))) - { - if (pIndex) - *pIndex = file_index; - return MZ_TRUE; - } - } - - return mz_zip_set_error(pZip, MZ_ZIP_FILE_NOT_FOUND); -} - -mz_bool mz_zip_reader_extract_to_mem_no_alloc(mz_zip_archive *pZip, mz_uint file_index, void *pBuf, size_t buf_size, mz_uint flags, void *pUser_read_buf, size_t user_read_buf_size) -{ - int status = TINFL_STATUS_DONE; - mz_uint64 needed_size, cur_file_ofs, comp_remaining, out_buf_ofs = 0, read_buf_size, read_buf_ofs = 0, read_buf_avail; - mz_zip_archive_file_stat file_stat; - void *pRead_buf; - mz_uint32 local_header_u32[(MZ_ZIP_LOCAL_DIR_HEADER_SIZE + sizeof(mz_uint32) - 1) / sizeof(mz_uint32)]; - mz_uint8 *pLocal_header = (mz_uint8 *)local_header_u32; - tinfl_decompressor inflator; - - if ((!pZip) || (!pZip->m_pState) || ((buf_size) && (!pBuf)) || ((user_read_buf_size) && (!pUser_read_buf)) || (!pZip->m_pRead)) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER); - - if (!mz_zip_reader_file_stat(pZip, file_index, &file_stat)) - return MZ_FALSE; - - /* A directory or zero length file */ - if ((file_stat.m_is_directory) || (!file_stat.m_comp_size)) - return MZ_TRUE; - - /* Encryption and patch files are not supported. */ - if (file_stat.m_bit_flag & (MZ_ZIP_GENERAL_PURPOSE_BIT_FLAG_IS_ENCRYPTED | MZ_ZIP_GENERAL_PURPOSE_BIT_FLAG_USES_STRONG_ENCRYPTION | MZ_ZIP_GENERAL_PURPOSE_BIT_FLAG_COMPRESSED_PATCH_FLAG)) - return mz_zip_set_error(pZip, MZ_ZIP_UNSUPPORTED_ENCRYPTION); - - /* This function only supports decompressing stored and deflate. */ - if ((!(flags & MZ_ZIP_FLAG_COMPRESSED_DATA)) && (file_stat.m_method != 0) && (file_stat.m_method != MZ_DEFLATED)) - return mz_zip_set_error(pZip, MZ_ZIP_UNSUPPORTED_METHOD); - - /* Ensure supplied output buffer is large enough. */ - needed_size = (flags & MZ_ZIP_FLAG_COMPRESSED_DATA) ? file_stat.m_comp_size : file_stat.m_uncomp_size; - if (buf_size < needed_size) - return mz_zip_set_error(pZip, MZ_ZIP_BUF_TOO_SMALL); - - /* Read and parse the local directory entry. */ - cur_file_ofs = file_stat.m_local_header_ofs; - if (pZip->m_pRead(pZip->m_pIO_opaque, cur_file_ofs, pLocal_header, MZ_ZIP_LOCAL_DIR_HEADER_SIZE) != MZ_ZIP_LOCAL_DIR_HEADER_SIZE) - return mz_zip_set_error(pZip, MZ_ZIP_FILE_READ_FAILED); - - if (MZ_READ_LE32(pLocal_header) != MZ_ZIP_LOCAL_DIR_HEADER_SIG) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED); - - cur_file_ofs += MZ_ZIP_LOCAL_DIR_HEADER_SIZE + MZ_READ_LE16(pLocal_header + MZ_ZIP_LDH_FILENAME_LEN_OFS) + MZ_READ_LE16(pLocal_header + MZ_ZIP_LDH_EXTRA_LEN_OFS); - if ((cur_file_ofs + file_stat.m_comp_size) > pZip->m_archive_size) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED); - - if ((flags & MZ_ZIP_FLAG_COMPRESSED_DATA) || (!file_stat.m_method)) - { - /* The file is stored or the caller has requested the compressed data. */ - if (pZip->m_pRead(pZip->m_pIO_opaque, cur_file_ofs, pBuf, (size_t)needed_size) != needed_size) - return mz_zip_set_error(pZip, MZ_ZIP_FILE_READ_FAILED); - -#ifndef MINIZ_DISABLE_ZIP_READER_CRC32_CHECKS - if ((flags & MZ_ZIP_FLAG_COMPRESSED_DATA) == 0) - { - if (mz_crc32(MZ_CRC32_INIT, (const mz_uint8 *)pBuf, (size_t)file_stat.m_uncomp_size) != file_stat.m_crc32) - return mz_zip_set_error(pZip, MZ_ZIP_CRC_CHECK_FAILED); - } -#endif - - return MZ_TRUE; - } - - /* Decompress the file either directly from memory or from a file input buffer. */ - tinfl_init(&inflator); - - if (pZip->m_pState->m_pMem) - { - /* Read directly from the archive in memory. */ - pRead_buf = (mz_uint8 *)pZip->m_pState->m_pMem + cur_file_ofs; - read_buf_size = read_buf_avail = file_stat.m_comp_size; - comp_remaining = 0; - } - else if (pUser_read_buf) - { - /* Use a user provided read buffer. */ - if (!user_read_buf_size) - return MZ_FALSE; - pRead_buf = (mz_uint8 *)pUser_read_buf; - read_buf_size = user_read_buf_size; - read_buf_avail = 0; - comp_remaining = file_stat.m_comp_size; - } - else - { - /* Temporarily allocate a read buffer. */ - read_buf_size = MZ_MIN(file_stat.m_comp_size, (mz_uint64)MZ_ZIP_MAX_IO_BUF_SIZE); - if (((sizeof(size_t) == sizeof(mz_uint32))) && (read_buf_size > 0x7FFFFFFF)) - return mz_zip_set_error(pZip, MZ_ZIP_INTERNAL_ERROR); - - if (NULL == (pRead_buf = pZip->m_pAlloc(pZip->m_pAlloc_opaque, 1, (size_t)read_buf_size))) - return mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED); - - read_buf_avail = 0; - comp_remaining = file_stat.m_comp_size; - } - - do - { - /* The size_t cast here should be OK because we've verified that the output buffer is >= file_stat.m_uncomp_size above */ - size_t in_buf_size, out_buf_size = (size_t)(file_stat.m_uncomp_size - out_buf_ofs); - if ((!read_buf_avail) && (!pZip->m_pState->m_pMem)) - { - read_buf_avail = MZ_MIN(read_buf_size, comp_remaining); - if (pZip->m_pRead(pZip->m_pIO_opaque, cur_file_ofs, pRead_buf, (size_t)read_buf_avail) != read_buf_avail) - { - status = TINFL_STATUS_FAILED; - mz_zip_set_error(pZip, MZ_ZIP_DECOMPRESSION_FAILED); - break; - } - cur_file_ofs += read_buf_avail; - comp_remaining -= read_buf_avail; - read_buf_ofs = 0; - } - in_buf_size = (size_t)read_buf_avail; - status = tinfl_decompress(&inflator, (mz_uint8 *)pRead_buf + read_buf_ofs, &in_buf_size, (mz_uint8 *)pBuf, (mz_uint8 *)pBuf + out_buf_ofs, &out_buf_size, TINFL_FLAG_USING_NON_WRAPPING_OUTPUT_BUF | (comp_remaining ? TINFL_FLAG_HAS_MORE_INPUT : 0)); - read_buf_avail -= in_buf_size; - read_buf_ofs += in_buf_size; - out_buf_ofs += out_buf_size; - } while (status == TINFL_STATUS_NEEDS_MORE_INPUT); - - if (status == TINFL_STATUS_DONE) - { - /* Make sure the entire file was decompressed, and check its CRC. */ - if (out_buf_ofs != file_stat.m_uncomp_size) - { - mz_zip_set_error(pZip, MZ_ZIP_UNEXPECTED_DECOMPRESSED_SIZE); - status = TINFL_STATUS_FAILED; - } -#ifndef MINIZ_DISABLE_ZIP_READER_CRC32_CHECKS - else if (mz_crc32(MZ_CRC32_INIT, (const mz_uint8 *)pBuf, (size_t)file_stat.m_uncomp_size) != file_stat.m_crc32) - { - mz_zip_set_error(pZip, MZ_ZIP_CRC_CHECK_FAILED); - status = TINFL_STATUS_FAILED; - } -#endif - } - - if ((!pZip->m_pState->m_pMem) && (!pUser_read_buf)) - pZip->m_pFree(pZip->m_pAlloc_opaque, pRead_buf); - - return status == TINFL_STATUS_DONE; -} - -mz_bool mz_zip_reader_extract_file_to_mem_no_alloc(mz_zip_archive *pZip, const char *pFilename, void *pBuf, size_t buf_size, mz_uint flags, void *pUser_read_buf, size_t user_read_buf_size) -{ - mz_uint32 file_index; - if (!mz_zip_reader_locate_file_v2(pZip, pFilename, NULL, flags, &file_index)) - return MZ_FALSE; - return mz_zip_reader_extract_to_mem_no_alloc(pZip, file_index, pBuf, buf_size, flags, pUser_read_buf, user_read_buf_size); -} - -mz_bool mz_zip_reader_extract_to_mem(mz_zip_archive *pZip, mz_uint file_index, void *pBuf, size_t buf_size, mz_uint flags) -{ - return mz_zip_reader_extract_to_mem_no_alloc(pZip, file_index, pBuf, buf_size, flags, NULL, 0); -} - -mz_bool mz_zip_reader_extract_file_to_mem(mz_zip_archive *pZip, const char *pFilename, void *pBuf, size_t buf_size, mz_uint flags) -{ - return mz_zip_reader_extract_file_to_mem_no_alloc(pZip, pFilename, pBuf, buf_size, flags, NULL, 0); -} - -void *mz_zip_reader_extract_to_heap(mz_zip_archive *pZip, mz_uint file_index, size_t *pSize, mz_uint flags) -{ - mz_uint64 comp_size, uncomp_size, alloc_size; - const mz_uint8 *p = mz_zip_get_cdh(pZip, file_index); - void *pBuf; - - if (pSize) - *pSize = 0; - - if (!p) - { - mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER); - return NULL; - } - - comp_size = MZ_READ_LE32(p + MZ_ZIP_CDH_COMPRESSED_SIZE_OFS); - uncomp_size = MZ_READ_LE32(p + MZ_ZIP_CDH_DECOMPRESSED_SIZE_OFS); - - alloc_size = (flags & MZ_ZIP_FLAG_COMPRESSED_DATA) ? comp_size : uncomp_size; - if (((sizeof(size_t) == sizeof(mz_uint32))) && (alloc_size > 0x7FFFFFFF)) - { - mz_zip_set_error(pZip, MZ_ZIP_INTERNAL_ERROR); - return NULL; - } - - if (NULL == (pBuf = pZip->m_pAlloc(pZip->m_pAlloc_opaque, 1, (size_t)alloc_size))) - { - mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED); - return NULL; - } - - if (!mz_zip_reader_extract_to_mem(pZip, file_index, pBuf, (size_t)alloc_size, flags)) - { - pZip->m_pFree(pZip->m_pAlloc_opaque, pBuf); - return NULL; - } - - if (pSize) - *pSize = (size_t)alloc_size; - return pBuf; -} - -void *mz_zip_reader_extract_file_to_heap(mz_zip_archive *pZip, const char *pFilename, size_t *pSize, mz_uint flags) -{ - mz_uint32 file_index; - if (!mz_zip_reader_locate_file_v2(pZip, pFilename, NULL, flags, &file_index)) - { - if (pSize) - *pSize = 0; - return MZ_FALSE; - } - return mz_zip_reader_extract_to_heap(pZip, file_index, pSize, flags); -} - -mz_bool mz_zip_reader_extract_to_callback(mz_zip_archive *pZip, mz_uint file_index, mz_file_write_func pCallback, void *pOpaque, mz_uint flags) -{ - int status = TINFL_STATUS_DONE; - mz_uint file_crc32 = MZ_CRC32_INIT; - mz_uint64 read_buf_size, read_buf_ofs = 0, read_buf_avail, comp_remaining, out_buf_ofs = 0, cur_file_ofs; - mz_zip_archive_file_stat file_stat; - void *pRead_buf = NULL; - void *pWrite_buf = NULL; - mz_uint32 local_header_u32[(MZ_ZIP_LOCAL_DIR_HEADER_SIZE + sizeof(mz_uint32) - 1) / sizeof(mz_uint32)]; - mz_uint8 *pLocal_header = (mz_uint8 *)local_header_u32; - - if ((!pZip) || (!pZip->m_pState) || (!pCallback) || (!pZip->m_pRead)) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER); - - if (!mz_zip_reader_file_stat(pZip, file_index, &file_stat)) - return MZ_FALSE; - - /* A directory or zero length file */ - if ((file_stat.m_is_directory) || (!file_stat.m_comp_size)) - return MZ_TRUE; - - /* Encryption and patch files are not supported. */ - if (file_stat.m_bit_flag & (MZ_ZIP_GENERAL_PURPOSE_BIT_FLAG_IS_ENCRYPTED | MZ_ZIP_GENERAL_PURPOSE_BIT_FLAG_USES_STRONG_ENCRYPTION | MZ_ZIP_GENERAL_PURPOSE_BIT_FLAG_COMPRESSED_PATCH_FLAG)) - return mz_zip_set_error(pZip, MZ_ZIP_UNSUPPORTED_ENCRYPTION); - - /* This function only supports decompressing stored and deflate. */ - if ((!(flags & MZ_ZIP_FLAG_COMPRESSED_DATA)) && (file_stat.m_method != 0) && (file_stat.m_method != MZ_DEFLATED)) - return mz_zip_set_error(pZip, MZ_ZIP_UNSUPPORTED_METHOD); - - /* Read and do some minimal validation of the local directory entry (this doesn't crack the zip64 stuff, which we already have from the central dir) */ - cur_file_ofs = file_stat.m_local_header_ofs; - if (pZip->m_pRead(pZip->m_pIO_opaque, cur_file_ofs, pLocal_header, MZ_ZIP_LOCAL_DIR_HEADER_SIZE) != MZ_ZIP_LOCAL_DIR_HEADER_SIZE) - return mz_zip_set_error(pZip, MZ_ZIP_FILE_READ_FAILED); - - if (MZ_READ_LE32(pLocal_header) != MZ_ZIP_LOCAL_DIR_HEADER_SIG) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED); - - cur_file_ofs += MZ_ZIP_LOCAL_DIR_HEADER_SIZE + MZ_READ_LE16(pLocal_header + MZ_ZIP_LDH_FILENAME_LEN_OFS) + MZ_READ_LE16(pLocal_header + MZ_ZIP_LDH_EXTRA_LEN_OFS); - if ((cur_file_ofs + file_stat.m_comp_size) > pZip->m_archive_size) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED); - - /* Decompress the file either directly from memory or from a file input buffer. */ - if (pZip->m_pState->m_pMem) - { - pRead_buf = (mz_uint8 *)pZip->m_pState->m_pMem + cur_file_ofs; - read_buf_size = read_buf_avail = file_stat.m_comp_size; - comp_remaining = 0; - } - else - { - read_buf_size = MZ_MIN(file_stat.m_comp_size, (mz_uint64)MZ_ZIP_MAX_IO_BUF_SIZE); - if (NULL == (pRead_buf = pZip->m_pAlloc(pZip->m_pAlloc_opaque, 1, (size_t)read_buf_size))) - return mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED); - - read_buf_avail = 0; - comp_remaining = file_stat.m_comp_size; - } - - if ((flags & MZ_ZIP_FLAG_COMPRESSED_DATA) || (!file_stat.m_method)) - { - /* The file is stored or the caller has requested the compressed data. */ - if (pZip->m_pState->m_pMem) - { - if (((sizeof(size_t) == sizeof(mz_uint32))) && (file_stat.m_comp_size > MZ_UINT32_MAX)) - return mz_zip_set_error(pZip, MZ_ZIP_INTERNAL_ERROR); - - if (pCallback(pOpaque, out_buf_ofs, pRead_buf, (size_t)file_stat.m_comp_size) != file_stat.m_comp_size) - { - mz_zip_set_error(pZip, MZ_ZIP_WRITE_CALLBACK_FAILED); - status = TINFL_STATUS_FAILED; - } - else if (!(flags & MZ_ZIP_FLAG_COMPRESSED_DATA)) - { -#ifndef MINIZ_DISABLE_ZIP_READER_CRC32_CHECKS - file_crc32 = (mz_uint32)mz_crc32(file_crc32, (const mz_uint8 *)pRead_buf, (size_t)file_stat.m_comp_size); -#endif - } - - cur_file_ofs += file_stat.m_comp_size; - out_buf_ofs += file_stat.m_comp_size; - comp_remaining = 0; - } - else - { - while (comp_remaining) - { - read_buf_avail = MZ_MIN(read_buf_size, comp_remaining); - if (pZip->m_pRead(pZip->m_pIO_opaque, cur_file_ofs, pRead_buf, (size_t)read_buf_avail) != read_buf_avail) - { - mz_zip_set_error(pZip, MZ_ZIP_FILE_READ_FAILED); - status = TINFL_STATUS_FAILED; - break; - } - -#ifndef MINIZ_DISABLE_ZIP_READER_CRC32_CHECKS - if (!(flags & MZ_ZIP_FLAG_COMPRESSED_DATA)) - { - file_crc32 = (mz_uint32)mz_crc32(file_crc32, (const mz_uint8 *)pRead_buf, (size_t)read_buf_avail); - } -#endif - - if (pCallback(pOpaque, out_buf_ofs, pRead_buf, (size_t)read_buf_avail) != read_buf_avail) - { - mz_zip_set_error(pZip, MZ_ZIP_WRITE_CALLBACK_FAILED); - status = TINFL_STATUS_FAILED; - break; - } - - cur_file_ofs += read_buf_avail; - out_buf_ofs += read_buf_avail; - comp_remaining -= read_buf_avail; - } - } - } - else - { - tinfl_decompressor inflator; - tinfl_init(&inflator); - - if (NULL == (pWrite_buf = pZip->m_pAlloc(pZip->m_pAlloc_opaque, 1, TINFL_LZ_DICT_SIZE))) - { - mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED); - status = TINFL_STATUS_FAILED; - } - else - { - do - { - mz_uint8 *pWrite_buf_cur = (mz_uint8 *)pWrite_buf + (out_buf_ofs & (TINFL_LZ_DICT_SIZE - 1)); - size_t in_buf_size, out_buf_size = TINFL_LZ_DICT_SIZE - (out_buf_ofs & (TINFL_LZ_DICT_SIZE - 1)); - if ((!read_buf_avail) && (!pZip->m_pState->m_pMem)) - { - read_buf_avail = MZ_MIN(read_buf_size, comp_remaining); - if (pZip->m_pRead(pZip->m_pIO_opaque, cur_file_ofs, pRead_buf, (size_t)read_buf_avail) != read_buf_avail) - { - mz_zip_set_error(pZip, MZ_ZIP_FILE_READ_FAILED); - status = TINFL_STATUS_FAILED; - break; - } - cur_file_ofs += read_buf_avail; - comp_remaining -= read_buf_avail; - read_buf_ofs = 0; - } - - in_buf_size = (size_t)read_buf_avail; - status = tinfl_decompress(&inflator, (const mz_uint8 *)pRead_buf + read_buf_ofs, &in_buf_size, (mz_uint8 *)pWrite_buf, pWrite_buf_cur, &out_buf_size, comp_remaining ? TINFL_FLAG_HAS_MORE_INPUT : 0); - read_buf_avail -= in_buf_size; - read_buf_ofs += in_buf_size; - - if (out_buf_size) - { - if (pCallback(pOpaque, out_buf_ofs, pWrite_buf_cur, out_buf_size) != out_buf_size) - { - mz_zip_set_error(pZip, MZ_ZIP_WRITE_CALLBACK_FAILED); - status = TINFL_STATUS_FAILED; - break; - } - -#ifndef MINIZ_DISABLE_ZIP_READER_CRC32_CHECKS - file_crc32 = (mz_uint32)mz_crc32(file_crc32, pWrite_buf_cur, out_buf_size); -#endif - if ((out_buf_ofs += out_buf_size) > file_stat.m_uncomp_size) - { - mz_zip_set_error(pZip, MZ_ZIP_DECOMPRESSION_FAILED); - status = TINFL_STATUS_FAILED; - break; - } - } - } while ((status == TINFL_STATUS_NEEDS_MORE_INPUT) || (status == TINFL_STATUS_HAS_MORE_OUTPUT)); - } - } - - if ((status == TINFL_STATUS_DONE) && (!(flags & MZ_ZIP_FLAG_COMPRESSED_DATA))) - { - /* Make sure the entire file was decompressed, and check its CRC. */ - if (out_buf_ofs != file_stat.m_uncomp_size) - { - mz_zip_set_error(pZip, MZ_ZIP_UNEXPECTED_DECOMPRESSED_SIZE); - status = TINFL_STATUS_FAILED; - } -#ifndef MINIZ_DISABLE_ZIP_READER_CRC32_CHECKS - else if (file_crc32 != file_stat.m_crc32) - { - mz_zip_set_error(pZip, MZ_ZIP_DECOMPRESSION_FAILED); - status = TINFL_STATUS_FAILED; - } -#endif - } - - if (!pZip->m_pState->m_pMem) - pZip->m_pFree(pZip->m_pAlloc_opaque, pRead_buf); - - if (pWrite_buf) - pZip->m_pFree(pZip->m_pAlloc_opaque, pWrite_buf); - - return status == TINFL_STATUS_DONE; -} - -mz_bool mz_zip_reader_extract_file_to_callback(mz_zip_archive *pZip, const char *pFilename, mz_file_write_func pCallback, void *pOpaque, mz_uint flags) -{ - mz_uint32 file_index; - if (!mz_zip_reader_locate_file_v2(pZip, pFilename, NULL, flags, &file_index)) - return MZ_FALSE; - - return mz_zip_reader_extract_to_callback(pZip, file_index, pCallback, pOpaque, flags); -} - -mz_zip_reader_extract_iter_state* mz_zip_reader_extract_iter_new(mz_zip_archive *pZip, mz_uint file_index, mz_uint flags) -{ - mz_zip_reader_extract_iter_state *pState; - mz_uint32 local_header_u32[(MZ_ZIP_LOCAL_DIR_HEADER_SIZE + sizeof(mz_uint32) - 1) / sizeof(mz_uint32)]; - mz_uint8 *pLocal_header = (mz_uint8 *)local_header_u32; - - /* Argument sanity check */ - if ((!pZip) || (!pZip->m_pState)) - return NULL; - - /* Allocate an iterator status structure */ - pState = (mz_zip_reader_extract_iter_state*)pZip->m_pAlloc(pZip->m_pAlloc_opaque, 1, sizeof(mz_zip_reader_extract_iter_state)); - if (!pState) - { - mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED); - return NULL; - } - - /* Fetch file details */ - if (!mz_zip_reader_file_stat(pZip, file_index, &pState->file_stat)) - { - pZip->m_pFree(pZip->m_pAlloc_opaque, pState); - return NULL; - } - - /* Encryption and patch files are not supported. */ - if (pState->file_stat.m_bit_flag & (MZ_ZIP_GENERAL_PURPOSE_BIT_FLAG_IS_ENCRYPTED | MZ_ZIP_GENERAL_PURPOSE_BIT_FLAG_USES_STRONG_ENCRYPTION | MZ_ZIP_GENERAL_PURPOSE_BIT_FLAG_COMPRESSED_PATCH_FLAG)) - { - mz_zip_set_error(pZip, MZ_ZIP_UNSUPPORTED_ENCRYPTION); - pZip->m_pFree(pZip->m_pAlloc_opaque, pState); - return NULL; - } - - /* This function only supports decompressing stored and deflate. */ - if ((!(flags & MZ_ZIP_FLAG_COMPRESSED_DATA)) && (pState->file_stat.m_method != 0) && (pState->file_stat.m_method != MZ_DEFLATED)) - { - mz_zip_set_error(pZip, MZ_ZIP_UNSUPPORTED_METHOD); - pZip->m_pFree(pZip->m_pAlloc_opaque, pState); - return NULL; - } - - /* Init state - save args */ - pState->pZip = pZip; - pState->flags = flags; - - /* Init state - reset variables to defaults */ - pState->status = TINFL_STATUS_DONE; -#ifndef MINIZ_DISABLE_ZIP_READER_CRC32_CHECKS - pState->file_crc32 = MZ_CRC32_INIT; -#endif - pState->read_buf_ofs = 0; - pState->out_buf_ofs = 0; - pState->pRead_buf = NULL; - pState->pWrite_buf = NULL; - pState->out_blk_remain = 0; - - /* Read and parse the local directory entry. */ - pState->cur_file_ofs = pState->file_stat.m_local_header_ofs; - if (pZip->m_pRead(pZip->m_pIO_opaque, pState->cur_file_ofs, pLocal_header, MZ_ZIP_LOCAL_DIR_HEADER_SIZE) != MZ_ZIP_LOCAL_DIR_HEADER_SIZE) - { - mz_zip_set_error(pZip, MZ_ZIP_FILE_READ_FAILED); - pZip->m_pFree(pZip->m_pAlloc_opaque, pState); - return NULL; - } - - if (MZ_READ_LE32(pLocal_header) != MZ_ZIP_LOCAL_DIR_HEADER_SIG) - { - mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED); - pZip->m_pFree(pZip->m_pAlloc_opaque, pState); - return NULL; - } - - pState->cur_file_ofs += MZ_ZIP_LOCAL_DIR_HEADER_SIZE + MZ_READ_LE16(pLocal_header + MZ_ZIP_LDH_FILENAME_LEN_OFS) + MZ_READ_LE16(pLocal_header + MZ_ZIP_LDH_EXTRA_LEN_OFS); - if ((pState->cur_file_ofs + pState->file_stat.m_comp_size) > pZip->m_archive_size) - { - mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED); - pZip->m_pFree(pZip->m_pAlloc_opaque, pState); - return NULL; - } - - /* Decompress the file either directly from memory or from a file input buffer. */ - if (pZip->m_pState->m_pMem) - { - pState->pRead_buf = (mz_uint8 *)pZip->m_pState->m_pMem + pState->cur_file_ofs; - pState->read_buf_size = pState->read_buf_avail = pState->file_stat.m_comp_size; - pState->comp_remaining = pState->file_stat.m_comp_size; - } - else - { - if (!((flags & MZ_ZIP_FLAG_COMPRESSED_DATA) || (!pState->file_stat.m_method))) - { - /* Decompression required, therefore intermediate read buffer required */ - pState->read_buf_size = MZ_MIN(pState->file_stat.m_comp_size, MZ_ZIP_MAX_IO_BUF_SIZE); - if (NULL == (pState->pRead_buf = pZip->m_pAlloc(pZip->m_pAlloc_opaque, 1, (size_t)pState->read_buf_size))) - { - mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED); - pZip->m_pFree(pZip->m_pAlloc_opaque, pState); - return NULL; - } - } - else - { - /* Decompression not required - we will be reading directly into user buffer, no temp buf required */ - pState->read_buf_size = 0; - } - pState->read_buf_avail = 0; - pState->comp_remaining = pState->file_stat.m_comp_size; - } - - if (!((flags & MZ_ZIP_FLAG_COMPRESSED_DATA) || (!pState->file_stat.m_method))) - { - /* Decompression required, init decompressor */ - tinfl_init( &pState->inflator ); - - /* Allocate write buffer */ - if (NULL == (pState->pWrite_buf = pZip->m_pAlloc(pZip->m_pAlloc_opaque, 1, TINFL_LZ_DICT_SIZE))) - { - mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED); - if (pState->pRead_buf) - pZip->m_pFree(pZip->m_pAlloc_opaque, pState->pRead_buf); - pZip->m_pFree(pZip->m_pAlloc_opaque, pState); - return NULL; - } - } - - return pState; -} - -mz_zip_reader_extract_iter_state* mz_zip_reader_extract_file_iter_new(mz_zip_archive *pZip, const char *pFilename, mz_uint flags) -{ - mz_uint32 file_index; - - /* Locate file index by name */ - if (!mz_zip_reader_locate_file_v2(pZip, pFilename, NULL, flags, &file_index)) - return NULL; - - /* Construct iterator */ - return mz_zip_reader_extract_iter_new(pZip, file_index, flags); -} - -size_t mz_zip_reader_extract_iter_read(mz_zip_reader_extract_iter_state* pState, void* pvBuf, size_t buf_size) -{ - size_t copied_to_caller = 0; - - /* Argument sanity check */ - if ((!pState) || (!pState->pZip) || (!pState->pZip->m_pState) || (!pvBuf)) - return 0; - - if ((pState->flags & MZ_ZIP_FLAG_COMPRESSED_DATA) || (!pState->file_stat.m_method)) - { - /* The file is stored or the caller has requested the compressed data, calc amount to return. */ - copied_to_caller = (size_t)MZ_MIN( buf_size, pState->comp_remaining ); - - /* Zip is in memory....or requires reading from a file? */ - if (pState->pZip->m_pState->m_pMem) - { - /* Copy data to caller's buffer */ - memcpy( pvBuf, pState->pRead_buf, copied_to_caller ); - pState->pRead_buf = ((mz_uint8*)pState->pRead_buf) + copied_to_caller; - } - else - { - /* Read directly into caller's buffer */ - if (pState->pZip->m_pRead(pState->pZip->m_pIO_opaque, pState->cur_file_ofs, pvBuf, copied_to_caller) != copied_to_caller) - { - /* Failed to read all that was asked for, flag failure and alert user */ - mz_zip_set_error(pState->pZip, MZ_ZIP_FILE_READ_FAILED); - pState->status = TINFL_STATUS_FAILED; - copied_to_caller = 0; - } - } - -#ifndef MINIZ_DISABLE_ZIP_READER_CRC32_CHECKS - /* Compute CRC if not returning compressed data only */ - if (!(pState->flags & MZ_ZIP_FLAG_COMPRESSED_DATA)) - pState->file_crc32 = (mz_uint32)mz_crc32(pState->file_crc32, (const mz_uint8 *)pvBuf, copied_to_caller); -#endif - - /* Advance offsets, dec counters */ - pState->cur_file_ofs += copied_to_caller; - pState->out_buf_ofs += copied_to_caller; - pState->comp_remaining -= copied_to_caller; - } - else - { - do - { - /* Calc ptr to write buffer - given current output pos and block size */ - mz_uint8 *pWrite_buf_cur = (mz_uint8 *)pState->pWrite_buf + (pState->out_buf_ofs & (TINFL_LZ_DICT_SIZE - 1)); - - /* Calc max output size - given current output pos and block size */ - size_t in_buf_size, out_buf_size = TINFL_LZ_DICT_SIZE - (pState->out_buf_ofs & (TINFL_LZ_DICT_SIZE - 1)); - - if (!pState->out_blk_remain) - { - /* Read more data from file if none available (and reading from file) */ - if ((!pState->read_buf_avail) && (!pState->pZip->m_pState->m_pMem)) - { - /* Calc read size */ - pState->read_buf_avail = MZ_MIN(pState->read_buf_size, pState->comp_remaining); - if (pState->pZip->m_pRead(pState->pZip->m_pIO_opaque, pState->cur_file_ofs, pState->pRead_buf, (size_t)pState->read_buf_avail) != pState->read_buf_avail) - { - mz_zip_set_error(pState->pZip, MZ_ZIP_FILE_READ_FAILED); - pState->status = TINFL_STATUS_FAILED; - break; - } - - /* Advance offsets, dec counters */ - pState->cur_file_ofs += pState->read_buf_avail; - pState->comp_remaining -= pState->read_buf_avail; - pState->read_buf_ofs = 0; - } - - /* Perform decompression */ - in_buf_size = (size_t)pState->read_buf_avail; - pState->status = tinfl_decompress(&pState->inflator, (const mz_uint8 *)pState->pRead_buf + pState->read_buf_ofs, &in_buf_size, (mz_uint8 *)pState->pWrite_buf, pWrite_buf_cur, &out_buf_size, pState->comp_remaining ? TINFL_FLAG_HAS_MORE_INPUT : 0); - pState->read_buf_avail -= in_buf_size; - pState->read_buf_ofs += in_buf_size; - - /* Update current output block size remaining */ - pState->out_blk_remain = out_buf_size; - } - - if (pState->out_blk_remain) - { - /* Calc amount to return. */ - size_t to_copy = MZ_MIN( (buf_size - copied_to_caller), pState->out_blk_remain ); - - /* Copy data to caller's buffer */ - memcpy( (uint8_t*)pvBuf + copied_to_caller, pWrite_buf_cur, to_copy ); - -#ifndef MINIZ_DISABLE_ZIP_READER_CRC32_CHECKS - /* Perform CRC */ - pState->file_crc32 = (mz_uint32)mz_crc32(pState->file_crc32, pWrite_buf_cur, to_copy); -#endif - - /* Decrement data consumed from block */ - pState->out_blk_remain -= to_copy; - - /* Inc output offset, while performing sanity check */ - if ((pState->out_buf_ofs += to_copy) > pState->file_stat.m_uncomp_size) - { - mz_zip_set_error(pState->pZip, MZ_ZIP_DECOMPRESSION_FAILED); - pState->status = TINFL_STATUS_FAILED; - break; - } - - /* Increment counter of data copied to caller */ - copied_to_caller += to_copy; - } - } while ( (copied_to_caller < buf_size) && ((pState->status == TINFL_STATUS_NEEDS_MORE_INPUT) || (pState->status == TINFL_STATUS_HAS_MORE_OUTPUT)) ); - } - - /* Return how many bytes were copied into user buffer */ - return copied_to_caller; -} - -mz_bool mz_zip_reader_extract_iter_free(mz_zip_reader_extract_iter_state* pState) -{ - int status; - - /* Argument sanity check */ - if ((!pState) || (!pState->pZip) || (!pState->pZip->m_pState)) - return MZ_FALSE; - - /* Was decompression completed and requested? */ - if ((pState->status == TINFL_STATUS_DONE) && (!(pState->flags & MZ_ZIP_FLAG_COMPRESSED_DATA))) - { - /* Make sure the entire file was decompressed, and check its CRC. */ - if (pState->out_buf_ofs != pState->file_stat.m_uncomp_size) - { - mz_zip_set_error(pState->pZip, MZ_ZIP_UNEXPECTED_DECOMPRESSED_SIZE); - pState->status = TINFL_STATUS_FAILED; - } -#ifndef MINIZ_DISABLE_ZIP_READER_CRC32_CHECKS - else if (pState->file_crc32 != pState->file_stat.m_crc32) - { - mz_zip_set_error(pState->pZip, MZ_ZIP_DECOMPRESSION_FAILED); - pState->status = TINFL_STATUS_FAILED; - } -#endif - } - - /* Free buffers */ - if (!pState->pZip->m_pState->m_pMem) - pState->pZip->m_pFree(pState->pZip->m_pAlloc_opaque, pState->pRead_buf); - if (pState->pWrite_buf) - pState->pZip->m_pFree(pState->pZip->m_pAlloc_opaque, pState->pWrite_buf); - - /* Save status */ - status = pState->status; - - /* Free context */ - pState->pZip->m_pFree(pState->pZip->m_pAlloc_opaque, pState); - - return status == TINFL_STATUS_DONE; -} - -#ifndef MINIZ_NO_STDIO -static size_t mz_zip_file_write_callback(void *pOpaque, mz_uint64 ofs, const void *pBuf, size_t n) -{ - (void)ofs; - - return MZ_FWRITE(pBuf, 1, n, (MZ_FILE *)pOpaque); -} - -mz_bool mz_zip_reader_extract_to_file(mz_zip_archive *pZip, mz_uint file_index, const char *pDst_filename, mz_uint flags) -{ - mz_bool status; - mz_zip_archive_file_stat file_stat; - MZ_FILE *pFile; - - if (!mz_zip_reader_file_stat(pZip, file_index, &file_stat)) - return MZ_FALSE; - - if ((file_stat.m_is_directory) || (!file_stat.m_is_supported)) - return mz_zip_set_error(pZip, MZ_ZIP_UNSUPPORTED_FEATURE); - - pFile = MZ_FOPEN(pDst_filename, "wb"); - if (!pFile) - return mz_zip_set_error(pZip, MZ_ZIP_FILE_OPEN_FAILED); - - status = mz_zip_reader_extract_to_callback(pZip, file_index, mz_zip_file_write_callback, pFile, flags); - - if (MZ_FCLOSE(pFile) == EOF) - { - if (status) - mz_zip_set_error(pZip, MZ_ZIP_FILE_CLOSE_FAILED); - - status = MZ_FALSE; - } - -#if !defined(MINIZ_NO_TIME) && !defined(MINIZ_NO_STDIO) - if (status) - mz_zip_set_file_times(pDst_filename, file_stat.m_time, file_stat.m_time); -#endif - - return status; -} - -mz_bool mz_zip_reader_extract_file_to_file(mz_zip_archive *pZip, const char *pArchive_filename, const char *pDst_filename, mz_uint flags) -{ - mz_uint32 file_index; - if (!mz_zip_reader_locate_file_v2(pZip, pArchive_filename, NULL, flags, &file_index)) - return MZ_FALSE; - - return mz_zip_reader_extract_to_file(pZip, file_index, pDst_filename, flags); -} - -mz_bool mz_zip_reader_extract_to_cfile(mz_zip_archive *pZip, mz_uint file_index, MZ_FILE *pFile, mz_uint flags) -{ - mz_zip_archive_file_stat file_stat; - - if (!mz_zip_reader_file_stat(pZip, file_index, &file_stat)) - return MZ_FALSE; - - if ((file_stat.m_is_directory) || (!file_stat.m_is_supported)) - return mz_zip_set_error(pZip, MZ_ZIP_UNSUPPORTED_FEATURE); - - return mz_zip_reader_extract_to_callback(pZip, file_index, mz_zip_file_write_callback, pFile, flags); -} - -mz_bool mz_zip_reader_extract_file_to_cfile(mz_zip_archive *pZip, const char *pArchive_filename, MZ_FILE *pFile, mz_uint flags) -{ - mz_uint32 file_index; - if (!mz_zip_reader_locate_file_v2(pZip, pArchive_filename, NULL, flags, &file_index)) - return MZ_FALSE; - - return mz_zip_reader_extract_to_cfile(pZip, file_index, pFile, flags); -} -#endif /* #ifndef MINIZ_NO_STDIO */ - -static size_t mz_zip_compute_crc32_callback(void *pOpaque, mz_uint64 file_ofs, const void *pBuf, size_t n) -{ - mz_uint32 *p = (mz_uint32 *)pOpaque; - (void)file_ofs; - *p = (mz_uint32)mz_crc32(*p, (const mz_uint8 *)pBuf, n); - return n; -} - -mz_bool mz_zip_validate_file(mz_zip_archive *pZip, mz_uint file_index, mz_uint flags) -{ - mz_zip_archive_file_stat file_stat; - mz_zip_internal_state *pState; - const mz_uint8 *pCentral_dir_header; - mz_bool found_zip64_ext_data_in_cdir = MZ_FALSE; - mz_bool found_zip64_ext_data_in_ldir = MZ_FALSE; - mz_uint32 local_header_u32[(MZ_ZIP_LOCAL_DIR_HEADER_SIZE + sizeof(mz_uint32) - 1) / sizeof(mz_uint32)]; - mz_uint8 *pLocal_header = (mz_uint8 *)local_header_u32; - mz_uint64 local_header_ofs = 0; - mz_uint32 local_header_filename_len, local_header_extra_len, local_header_crc32; - mz_uint64 local_header_comp_size, local_header_uncomp_size; - mz_uint32 uncomp_crc32 = MZ_CRC32_INIT; - mz_bool has_data_descriptor; - mz_uint32 local_header_bit_flags; - - mz_zip_array file_data_array; - mz_zip_array_init(&file_data_array, 1); - - if ((!pZip) || (!pZip->m_pState) || (!pZip->m_pAlloc) || (!pZip->m_pFree) || (!pZip->m_pRead)) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER); - - if (file_index > pZip->m_total_files) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER); - - pState = pZip->m_pState; - - pCentral_dir_header = mz_zip_get_cdh(pZip, file_index); - - if (!mz_zip_file_stat_internal(pZip, file_index, pCentral_dir_header, &file_stat, &found_zip64_ext_data_in_cdir)) - return MZ_FALSE; - - /* A directory or zero length file */ - if ((file_stat.m_is_directory) || (!file_stat.m_uncomp_size)) - return MZ_TRUE; - - /* Encryption and patch files are not supported. */ - if (file_stat.m_is_encrypted) - return mz_zip_set_error(pZip, MZ_ZIP_UNSUPPORTED_ENCRYPTION); - - /* This function only supports stored and deflate. */ - if ((file_stat.m_method != 0) && (file_stat.m_method != MZ_DEFLATED)) - return mz_zip_set_error(pZip, MZ_ZIP_UNSUPPORTED_METHOD); - - if (!file_stat.m_is_supported) - return mz_zip_set_error(pZip, MZ_ZIP_UNSUPPORTED_FEATURE); - - /* Read and parse the local directory entry. */ - local_header_ofs = file_stat.m_local_header_ofs; - if (pZip->m_pRead(pZip->m_pIO_opaque, local_header_ofs, pLocal_header, MZ_ZIP_LOCAL_DIR_HEADER_SIZE) != MZ_ZIP_LOCAL_DIR_HEADER_SIZE) - return mz_zip_set_error(pZip, MZ_ZIP_FILE_READ_FAILED); - - if (MZ_READ_LE32(pLocal_header) != MZ_ZIP_LOCAL_DIR_HEADER_SIG) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED); - - local_header_filename_len = MZ_READ_LE16(pLocal_header + MZ_ZIP_LDH_FILENAME_LEN_OFS); - local_header_extra_len = MZ_READ_LE16(pLocal_header + MZ_ZIP_LDH_EXTRA_LEN_OFS); - local_header_comp_size = MZ_READ_LE32(pLocal_header + MZ_ZIP_LDH_COMPRESSED_SIZE_OFS); - local_header_uncomp_size = MZ_READ_LE32(pLocal_header + MZ_ZIP_LDH_DECOMPRESSED_SIZE_OFS); - local_header_crc32 = MZ_READ_LE32(pLocal_header + MZ_ZIP_LDH_CRC32_OFS); - local_header_bit_flags = MZ_READ_LE16(pLocal_header + MZ_ZIP_LDH_BIT_FLAG_OFS); - has_data_descriptor = (local_header_bit_flags & 8) != 0; - - if (local_header_filename_len != strlen(file_stat.m_filename)) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED); - - if ((local_header_ofs + MZ_ZIP_LOCAL_DIR_HEADER_SIZE + local_header_filename_len + local_header_extra_len + file_stat.m_comp_size) > pZip->m_archive_size) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED); - - if (!mz_zip_array_resize(pZip, &file_data_array, MZ_MAX(local_header_filename_len, local_header_extra_len), MZ_FALSE)) - return mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED); - - if (local_header_filename_len) - { - if (pZip->m_pRead(pZip->m_pIO_opaque, local_header_ofs + MZ_ZIP_LOCAL_DIR_HEADER_SIZE, file_data_array.m_p, local_header_filename_len) != local_header_filename_len) - { - mz_zip_set_error(pZip, MZ_ZIP_FILE_READ_FAILED); - goto handle_failure; - } - - /* I've seen 1 archive that had the same pathname, but used backslashes in the local dir and forward slashes in the central dir. Do we care about this? For now, this case will fail validation. */ - if (memcmp(file_stat.m_filename, file_data_array.m_p, local_header_filename_len) != 0) - { - mz_zip_set_error(pZip, MZ_ZIP_VALIDATION_FAILED); - goto handle_failure; - } - } - - if ((local_header_extra_len) && ((local_header_comp_size == MZ_UINT32_MAX) || (local_header_uncomp_size == MZ_UINT32_MAX))) - { - mz_uint32 extra_size_remaining = local_header_extra_len; - const mz_uint8 *pExtra_data = (const mz_uint8 *)file_data_array.m_p; - - if (pZip->m_pRead(pZip->m_pIO_opaque, local_header_ofs + MZ_ZIP_LOCAL_DIR_HEADER_SIZE + local_header_filename_len, file_data_array.m_p, local_header_extra_len) != local_header_extra_len) - { - mz_zip_set_error(pZip, MZ_ZIP_FILE_READ_FAILED); - goto handle_failure; - } - - do - { - mz_uint32 field_id, field_data_size, field_total_size; - - if (extra_size_remaining < (sizeof(mz_uint16) * 2)) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED); - - field_id = MZ_READ_LE16(pExtra_data); - field_data_size = MZ_READ_LE16(pExtra_data + sizeof(mz_uint16)); - field_total_size = field_data_size + sizeof(mz_uint16) * 2; - - if (field_total_size > extra_size_remaining) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED); - - if (field_id == MZ_ZIP64_EXTENDED_INFORMATION_FIELD_HEADER_ID) - { - const mz_uint8 *pSrc_field_data = pExtra_data + sizeof(mz_uint32); - - if (field_data_size < sizeof(mz_uint64) * 2) - { - mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED); - goto handle_failure; - } - - local_header_uncomp_size = MZ_READ_LE64(pSrc_field_data); - local_header_comp_size = MZ_READ_LE64(pSrc_field_data + sizeof(mz_uint64)); - - found_zip64_ext_data_in_ldir = MZ_TRUE; - break; - } - - pExtra_data += field_total_size; - extra_size_remaining -= field_total_size; - } while (extra_size_remaining); - } - - /* TODO: parse local header extra data when local_header_comp_size is 0xFFFFFFFF! (big_descriptor.zip) */ - /* I've seen zips in the wild with the data descriptor bit set, but proper local header values and bogus data descriptors */ - if ((has_data_descriptor) && (!local_header_comp_size) && (!local_header_crc32)) - { - mz_uint8 descriptor_buf[32]; - mz_bool has_id; - const mz_uint8 *pSrc; - mz_uint32 file_crc32; - mz_uint64 comp_size = 0, uncomp_size = 0; - - mz_uint32 num_descriptor_uint32s = ((pState->m_zip64) || (found_zip64_ext_data_in_ldir)) ? 6 : 4; - - if (pZip->m_pRead(pZip->m_pIO_opaque, local_header_ofs + MZ_ZIP_LOCAL_DIR_HEADER_SIZE + local_header_filename_len + local_header_extra_len + file_stat.m_comp_size, descriptor_buf, sizeof(mz_uint32) * num_descriptor_uint32s) != (sizeof(mz_uint32) * num_descriptor_uint32s)) - { - mz_zip_set_error(pZip, MZ_ZIP_FILE_READ_FAILED); - goto handle_failure; - } - - has_id = (MZ_READ_LE32(descriptor_buf) == MZ_ZIP_DATA_DESCRIPTOR_ID); - pSrc = has_id ? (descriptor_buf + sizeof(mz_uint32)) : descriptor_buf; - - file_crc32 = MZ_READ_LE32(pSrc); - - if ((pState->m_zip64) || (found_zip64_ext_data_in_ldir)) - { - comp_size = MZ_READ_LE64(pSrc + sizeof(mz_uint32)); - uncomp_size = MZ_READ_LE64(pSrc + sizeof(mz_uint32) + sizeof(mz_uint64)); - } - else - { - comp_size = MZ_READ_LE32(pSrc + sizeof(mz_uint32)); - uncomp_size = MZ_READ_LE32(pSrc + sizeof(mz_uint32) + sizeof(mz_uint32)); - } - - if ((file_crc32 != file_stat.m_crc32) || (comp_size != file_stat.m_comp_size) || (uncomp_size != file_stat.m_uncomp_size)) - { - mz_zip_set_error(pZip, MZ_ZIP_VALIDATION_FAILED); - goto handle_failure; - } - } - else - { - if ((local_header_crc32 != file_stat.m_crc32) || (local_header_comp_size != file_stat.m_comp_size) || (local_header_uncomp_size != file_stat.m_uncomp_size)) - { - mz_zip_set_error(pZip, MZ_ZIP_VALIDATION_FAILED); - goto handle_failure; - } - } - - mz_zip_array_clear(pZip, &file_data_array); - - if ((flags & MZ_ZIP_FLAG_VALIDATE_HEADERS_ONLY) == 0) - { - if (!mz_zip_reader_extract_to_callback(pZip, file_index, mz_zip_compute_crc32_callback, &uncomp_crc32, 0)) - return MZ_FALSE; - - /* 1 more check to be sure, although the extract checks too. */ - if (uncomp_crc32 != file_stat.m_crc32) - { - mz_zip_set_error(pZip, MZ_ZIP_VALIDATION_FAILED); - return MZ_FALSE; - } - } - - return MZ_TRUE; - -handle_failure: - mz_zip_array_clear(pZip, &file_data_array); - return MZ_FALSE; -} - -mz_bool mz_zip_validate_archive(mz_zip_archive *pZip, mz_uint flags) -{ - mz_zip_internal_state *pState; - uint32_t i; - - if ((!pZip) || (!pZip->m_pState) || (!pZip->m_pAlloc) || (!pZip->m_pFree) || (!pZip->m_pRead)) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER); - - pState = pZip->m_pState; - - /* Basic sanity checks */ - if (!pState->m_zip64) - { - if (pZip->m_total_files > MZ_UINT16_MAX) - return mz_zip_set_error(pZip, MZ_ZIP_ARCHIVE_TOO_LARGE); - - if (pZip->m_archive_size > MZ_UINT32_MAX) - return mz_zip_set_error(pZip, MZ_ZIP_ARCHIVE_TOO_LARGE); - } - else - { - if (pZip->m_total_files >= MZ_UINT32_MAX) - return mz_zip_set_error(pZip, MZ_ZIP_ARCHIVE_TOO_LARGE); - - if (pState->m_central_dir.m_size >= MZ_UINT32_MAX) - return mz_zip_set_error(pZip, MZ_ZIP_ARCHIVE_TOO_LARGE); - } - - for (i = 0; i < pZip->m_total_files; i++) - { - if (MZ_ZIP_FLAG_VALIDATE_LOCATE_FILE_FLAG & flags) - { - mz_uint32 found_index; - mz_zip_archive_file_stat stat; - - if (!mz_zip_reader_file_stat(pZip, i, &stat)) - return MZ_FALSE; - - if (!mz_zip_reader_locate_file_v2(pZip, stat.m_filename, NULL, 0, &found_index)) - return MZ_FALSE; - - /* This check can fail if there are duplicate filenames in the archive (which we don't check for when writing - that's up to the user) */ - if (found_index != i) - return mz_zip_set_error(pZip, MZ_ZIP_VALIDATION_FAILED); - } - - if (!mz_zip_validate_file(pZip, i, flags)) - return MZ_FALSE; - } - - return MZ_TRUE; -} - -mz_bool mz_zip_validate_mem_archive(const void *pMem, size_t size, mz_uint flags, mz_zip_error *pErr) -{ - mz_bool success = MZ_TRUE; - mz_zip_archive zip; - mz_zip_error actual_err = MZ_ZIP_NO_ERROR; - - if ((!pMem) || (!size)) - { - if (pErr) - *pErr = MZ_ZIP_INVALID_PARAMETER; - return MZ_FALSE; - } - - mz_zip_zero_struct(&zip); - - if (!mz_zip_reader_init_mem(&zip, pMem, size, flags)) - { - if (pErr) - *pErr = zip.m_last_error; - return MZ_FALSE; - } - - if (!mz_zip_validate_archive(&zip, flags)) - { - actual_err = zip.m_last_error; - success = MZ_FALSE; - } - - if (!mz_zip_reader_end_internal(&zip, success)) - { - if (!actual_err) - actual_err = zip.m_last_error; - success = MZ_FALSE; - } - - if (pErr) - *pErr = actual_err; - - return success; -} - -#ifndef MINIZ_NO_STDIO -mz_bool mz_zip_validate_file_archive(const char *pFilename, mz_uint flags, mz_zip_error *pErr) -{ - mz_bool success = MZ_TRUE; - mz_zip_archive zip; - mz_zip_error actual_err = MZ_ZIP_NO_ERROR; - - if (!pFilename) - { - if (pErr) - *pErr = MZ_ZIP_INVALID_PARAMETER; - return MZ_FALSE; - } - - mz_zip_zero_struct(&zip); - - if (!mz_zip_reader_init_file_v2(&zip, pFilename, flags, 0, 0)) - { - if (pErr) - *pErr = zip.m_last_error; - return MZ_FALSE; - } - - if (!mz_zip_validate_archive(&zip, flags)) - { - actual_err = zip.m_last_error; - success = MZ_FALSE; - } - - if (!mz_zip_reader_end_internal(&zip, success)) - { - if (!actual_err) - actual_err = zip.m_last_error; - success = MZ_FALSE; - } - - if (pErr) - *pErr = actual_err; - - return success; -} -#endif /* #ifndef MINIZ_NO_STDIO */ - -/* ------------------- .ZIP archive writing */ - -#ifndef MINIZ_NO_ARCHIVE_WRITING_APIS - -static MZ_FORCEINLINE void mz_write_le16(mz_uint8 *p, mz_uint16 v) -{ - p[0] = (mz_uint8)v; - p[1] = (mz_uint8)(v >> 8); -} -static MZ_FORCEINLINE void mz_write_le32(mz_uint8 *p, mz_uint32 v) -{ - p[0] = (mz_uint8)v; - p[1] = (mz_uint8)(v >> 8); - p[2] = (mz_uint8)(v >> 16); - p[3] = (mz_uint8)(v >> 24); -} -static MZ_FORCEINLINE void mz_write_le64(mz_uint8 *p, mz_uint64 v) -{ - mz_write_le32(p, (mz_uint32)v); - mz_write_le32(p + sizeof(mz_uint32), (mz_uint32)(v >> 32)); -} - -#define MZ_WRITE_LE16(p, v) mz_write_le16((mz_uint8 *)(p), (mz_uint16)(v)) -#define MZ_WRITE_LE32(p, v) mz_write_le32((mz_uint8 *)(p), (mz_uint32)(v)) -#define MZ_WRITE_LE64(p, v) mz_write_le64((mz_uint8 *)(p), (mz_uint64)(v)) - -static size_t mz_zip_heap_write_func(void *pOpaque, mz_uint64 file_ofs, const void *pBuf, size_t n) -{ - mz_zip_archive *pZip = (mz_zip_archive *)pOpaque; - mz_zip_internal_state *pState = pZip->m_pState; - mz_uint64 new_size = MZ_MAX(file_ofs + n, pState->m_mem_size); - - if (!n) - return 0; - - /* An allocation this big is likely to just fail on 32-bit systems, so don't even go there. */ - if ((sizeof(size_t) == sizeof(mz_uint32)) && (new_size > 0x7FFFFFFF)) - { - mz_zip_set_error(pZip, MZ_ZIP_FILE_TOO_LARGE); - return 0; - } - - if (new_size > pState->m_mem_capacity) - { - void *pNew_block; - size_t new_capacity = MZ_MAX(64, pState->m_mem_capacity); - - while (new_capacity < new_size) - new_capacity *= 2; - - if (NULL == (pNew_block = pZip->m_pRealloc(pZip->m_pAlloc_opaque, pState->m_pMem, 1, new_capacity))) - { - mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED); - return 0; - } - - pState->m_pMem = pNew_block; - pState->m_mem_capacity = new_capacity; - } - memcpy((mz_uint8 *)pState->m_pMem + file_ofs, pBuf, n); - pState->m_mem_size = (size_t)new_size; - return n; -} - -static mz_bool mz_zip_writer_end_internal(mz_zip_archive *pZip, mz_bool set_last_error) -{ - mz_zip_internal_state *pState; - mz_bool status = MZ_TRUE; - - if ((!pZip) || (!pZip->m_pState) || (!pZip->m_pAlloc) || (!pZip->m_pFree) || ((pZip->m_zip_mode != MZ_ZIP_MODE_WRITING) && (pZip->m_zip_mode != MZ_ZIP_MODE_WRITING_HAS_BEEN_FINALIZED))) - { - if (set_last_error) - mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER); - return MZ_FALSE; - } - - pState = pZip->m_pState; - pZip->m_pState = NULL; - mz_zip_array_clear(pZip, &pState->m_central_dir); - mz_zip_array_clear(pZip, &pState->m_central_dir_offsets); - mz_zip_array_clear(pZip, &pState->m_sorted_central_dir_offsets); - -#ifndef MINIZ_NO_STDIO - if (pState->m_pFile) - { - if (pZip->m_zip_type == MZ_ZIP_TYPE_FILE) - { - if (MZ_FCLOSE(pState->m_pFile) == EOF) - { - if (set_last_error) - mz_zip_set_error(pZip, MZ_ZIP_FILE_CLOSE_FAILED); - status = MZ_FALSE; - } - } - - pState->m_pFile = NULL; - } -#endif /* #ifndef MINIZ_NO_STDIO */ - - if ((pZip->m_pWrite == mz_zip_heap_write_func) && (pState->m_pMem)) - { - pZip->m_pFree(pZip->m_pAlloc_opaque, pState->m_pMem); - pState->m_pMem = NULL; - } - - pZip->m_pFree(pZip->m_pAlloc_opaque, pState); - pZip->m_zip_mode = MZ_ZIP_MODE_INVALID; - return status; -} - -mz_bool mz_zip_writer_init_v2(mz_zip_archive *pZip, mz_uint64 existing_size, mz_uint flags) -{ - mz_bool zip64 = (flags & MZ_ZIP_FLAG_WRITE_ZIP64) != 0; - - if ((!pZip) || (pZip->m_pState) || (!pZip->m_pWrite) || (pZip->m_zip_mode != MZ_ZIP_MODE_INVALID)) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER); - - if (flags & MZ_ZIP_FLAG_WRITE_ALLOW_READING) - { - if (!pZip->m_pRead) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER); - } - - if (pZip->m_file_offset_alignment) - { - /* Ensure user specified file offset alignment is a power of 2. */ - if (pZip->m_file_offset_alignment & (pZip->m_file_offset_alignment - 1)) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER); - } - - if (!pZip->m_pAlloc) - pZip->m_pAlloc = miniz_def_alloc_func; - if (!pZip->m_pFree) - pZip->m_pFree = miniz_def_free_func; - if (!pZip->m_pRealloc) - pZip->m_pRealloc = miniz_def_realloc_func; - - pZip->m_archive_size = existing_size; - pZip->m_central_directory_file_ofs = 0; - pZip->m_total_files = 0; - - if (NULL == (pZip->m_pState = (mz_zip_internal_state *)pZip->m_pAlloc(pZip->m_pAlloc_opaque, 1, sizeof(mz_zip_internal_state)))) - return mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED); - - memset(pZip->m_pState, 0, sizeof(mz_zip_internal_state)); - - MZ_ZIP_ARRAY_SET_ELEMENT_SIZE(&pZip->m_pState->m_central_dir, sizeof(mz_uint8)); - MZ_ZIP_ARRAY_SET_ELEMENT_SIZE(&pZip->m_pState->m_central_dir_offsets, sizeof(mz_uint32)); - MZ_ZIP_ARRAY_SET_ELEMENT_SIZE(&pZip->m_pState->m_sorted_central_dir_offsets, sizeof(mz_uint32)); - - pZip->m_pState->m_zip64 = zip64; - pZip->m_pState->m_zip64_has_extended_info_fields = zip64; - - pZip->m_zip_type = MZ_ZIP_TYPE_USER; - pZip->m_zip_mode = MZ_ZIP_MODE_WRITING; - - return MZ_TRUE; -} - -mz_bool mz_zip_writer_init(mz_zip_archive *pZip, mz_uint64 existing_size) -{ - return mz_zip_writer_init_v2(pZip, existing_size, 0); -} - -mz_bool mz_zip_writer_init_heap_v2(mz_zip_archive *pZip, size_t size_to_reserve_at_beginning, size_t initial_allocation_size, mz_uint flags) -{ - pZip->m_pWrite = mz_zip_heap_write_func; - pZip->m_pNeeds_keepalive = NULL; - - if (flags & MZ_ZIP_FLAG_WRITE_ALLOW_READING) - pZip->m_pRead = mz_zip_mem_read_func; - - pZip->m_pIO_opaque = pZip; - - if (!mz_zip_writer_init_v2(pZip, size_to_reserve_at_beginning, flags)) - return MZ_FALSE; - - pZip->m_zip_type = MZ_ZIP_TYPE_HEAP; - - if (0 != (initial_allocation_size = MZ_MAX(initial_allocation_size, size_to_reserve_at_beginning))) - { - if (NULL == (pZip->m_pState->m_pMem = pZip->m_pAlloc(pZip->m_pAlloc_opaque, 1, initial_allocation_size))) - { - mz_zip_writer_end_internal(pZip, MZ_FALSE); - return mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED); - } - pZip->m_pState->m_mem_capacity = initial_allocation_size; - } - - return MZ_TRUE; -} - -mz_bool mz_zip_writer_init_heap(mz_zip_archive *pZip, size_t size_to_reserve_at_beginning, size_t initial_allocation_size) -{ - return mz_zip_writer_init_heap_v2(pZip, size_to_reserve_at_beginning, initial_allocation_size, 0); -} - -#ifndef MINIZ_NO_STDIO -static size_t mz_zip_file_write_func(void *pOpaque, mz_uint64 file_ofs, const void *pBuf, size_t n) -{ - mz_zip_archive *pZip = (mz_zip_archive *)pOpaque; - mz_int64 cur_ofs = MZ_FTELL64(pZip->m_pState->m_pFile); - - file_ofs += pZip->m_pState->m_file_archive_start_ofs; - - if (((mz_int64)file_ofs < 0) || (((cur_ofs != (mz_int64)file_ofs)) && (MZ_FSEEK64(pZip->m_pState->m_pFile, (mz_int64)file_ofs, SEEK_SET)))) - { - mz_zip_set_error(pZip, MZ_ZIP_FILE_SEEK_FAILED); - return 0; - } - - return MZ_FWRITE(pBuf, 1, n, pZip->m_pState->m_pFile); -} - -mz_bool mz_zip_writer_init_file(mz_zip_archive *pZip, const char *pFilename, mz_uint64 size_to_reserve_at_beginning) -{ - return mz_zip_writer_init_file_v2(pZip, pFilename, size_to_reserve_at_beginning, 0); -} - -mz_bool mz_zip_writer_init_file_v2(mz_zip_archive *pZip, const char *pFilename, mz_uint64 size_to_reserve_at_beginning, mz_uint flags) -{ - MZ_FILE *pFile; - - pZip->m_pWrite = mz_zip_file_write_func; - pZip->m_pNeeds_keepalive = NULL; - - if (flags & MZ_ZIP_FLAG_WRITE_ALLOW_READING) - pZip->m_pRead = mz_zip_file_read_func; - - pZip->m_pIO_opaque = pZip; - - if (!mz_zip_writer_init_v2(pZip, size_to_reserve_at_beginning, flags)) - return MZ_FALSE; - - if (NULL == (pFile = MZ_FOPEN(pFilename, (flags & MZ_ZIP_FLAG_WRITE_ALLOW_READING) ? "w+b" : "wb"))) - { - mz_zip_writer_end(pZip); - return mz_zip_set_error(pZip, MZ_ZIP_FILE_OPEN_FAILED); - } - - pZip->m_pState->m_pFile = pFile; - pZip->m_zip_type = MZ_ZIP_TYPE_FILE; - - if (size_to_reserve_at_beginning) - { - mz_uint64 cur_ofs = 0; - char buf[4096]; - - MZ_CLEAR_OBJ(buf); - - do - { - size_t n = (size_t)MZ_MIN(sizeof(buf), size_to_reserve_at_beginning); - if (pZip->m_pWrite(pZip->m_pIO_opaque, cur_ofs, buf, n) != n) - { - mz_zip_writer_end(pZip); - return mz_zip_set_error(pZip, MZ_ZIP_FILE_WRITE_FAILED); - } - cur_ofs += n; - size_to_reserve_at_beginning -= n; - } while (size_to_reserve_at_beginning); - } - - return MZ_TRUE; -} - -mz_bool mz_zip_writer_init_cfile(mz_zip_archive *pZip, MZ_FILE *pFile, mz_uint flags) -{ - pZip->m_pWrite = mz_zip_file_write_func; - pZip->m_pNeeds_keepalive = NULL; - - if (flags & MZ_ZIP_FLAG_WRITE_ALLOW_READING) - pZip->m_pRead = mz_zip_file_read_func; - - pZip->m_pIO_opaque = pZip; - - if (!mz_zip_writer_init_v2(pZip, 0, flags)) - return MZ_FALSE; - - pZip->m_pState->m_pFile = pFile; - pZip->m_pState->m_file_archive_start_ofs = MZ_FTELL64(pZip->m_pState->m_pFile); - pZip->m_zip_type = MZ_ZIP_TYPE_CFILE; - - return MZ_TRUE; -} -#endif /* #ifndef MINIZ_NO_STDIO */ - -mz_bool mz_zip_writer_init_from_reader_v2(mz_zip_archive *pZip, const char *pFilename, mz_uint flags) -{ - mz_zip_internal_state *pState; - - if ((!pZip) || (!pZip->m_pState) || (pZip->m_zip_mode != MZ_ZIP_MODE_READING)) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER); - - if (flags & MZ_ZIP_FLAG_WRITE_ZIP64) - { - /* We don't support converting a non-zip64 file to zip64 - this seems like more trouble than it's worth. (What about the existing 32-bit data descriptors that could follow the compressed data?) */ - if (!pZip->m_pState->m_zip64) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER); - } - - /* No sense in trying to write to an archive that's already at the support max size */ - if (pZip->m_pState->m_zip64) - { - if (pZip->m_total_files == MZ_UINT32_MAX) - return mz_zip_set_error(pZip, MZ_ZIP_TOO_MANY_FILES); - } - else - { - if (pZip->m_total_files == MZ_UINT16_MAX) - return mz_zip_set_error(pZip, MZ_ZIP_TOO_MANY_FILES); - - if ((pZip->m_archive_size + MZ_ZIP_CENTRAL_DIR_HEADER_SIZE + MZ_ZIP_LOCAL_DIR_HEADER_SIZE) > MZ_UINT32_MAX) - return mz_zip_set_error(pZip, MZ_ZIP_FILE_TOO_LARGE); - } - - pState = pZip->m_pState; - - if (pState->m_pFile) - { -#ifdef MINIZ_NO_STDIO - (void)pFilename; - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER); -#else - if (pZip->m_pIO_opaque != pZip) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER); - - if (pZip->m_zip_type == MZ_ZIP_TYPE_FILE) - { - if (!pFilename) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER); - - /* Archive is being read from stdio and was originally opened only for reading. Try to reopen as writable. */ - if (NULL == (pState->m_pFile = MZ_FREOPEN(pFilename, "r+b", pState->m_pFile))) - { - /* The mz_zip_archive is now in a bogus state because pState->m_pFile is NULL, so just close it. */ - mz_zip_reader_end_internal(pZip, MZ_FALSE); - return mz_zip_set_error(pZip, MZ_ZIP_FILE_OPEN_FAILED); - } - } - - pZip->m_pWrite = mz_zip_file_write_func; - pZip->m_pNeeds_keepalive = NULL; -#endif /* #ifdef MINIZ_NO_STDIO */ - } - else if (pState->m_pMem) - { - /* Archive lives in a memory block. Assume it's from the heap that we can resize using the realloc callback. */ - if (pZip->m_pIO_opaque != pZip) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER); - - pState->m_mem_capacity = pState->m_mem_size; - pZip->m_pWrite = mz_zip_heap_write_func; - pZip->m_pNeeds_keepalive = NULL; - } - /* Archive is being read via a user provided read function - make sure the user has specified a write function too. */ - else if (!pZip->m_pWrite) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER); - - /* Start writing new files at the archive's current central directory location. */ - /* TODO: We could add a flag that lets the user start writing immediately AFTER the existing central dir - this would be safer. */ - pZip->m_archive_size = pZip->m_central_directory_file_ofs; - pZip->m_central_directory_file_ofs = 0; - - /* Clear the sorted central dir offsets, they aren't useful or maintained now. */ - /* Even though we're now in write mode, files can still be extracted and verified, but file locates will be slow. */ - /* TODO: We could easily maintain the sorted central directory offsets. */ - mz_zip_array_clear(pZip, &pZip->m_pState->m_sorted_central_dir_offsets); - - pZip->m_zip_mode = MZ_ZIP_MODE_WRITING; - - return MZ_TRUE; -} - -mz_bool mz_zip_writer_init_from_reader(mz_zip_archive *pZip, const char *pFilename) -{ - return mz_zip_writer_init_from_reader_v2(pZip, pFilename, 0); -} - -/* TODO: pArchive_name is a terrible name here! */ -mz_bool mz_zip_writer_add_mem(mz_zip_archive *pZip, const char *pArchive_name, const void *pBuf, size_t buf_size, mz_uint level_and_flags) -{ - return mz_zip_writer_add_mem_ex(pZip, pArchive_name, pBuf, buf_size, NULL, 0, level_and_flags, 0, 0); -} - -typedef struct -{ - mz_zip_archive *m_pZip; - mz_uint64 m_cur_archive_file_ofs; - mz_uint64 m_comp_size; -} mz_zip_writer_add_state; - -static mz_bool mz_zip_writer_add_put_buf_callback(const void *pBuf, int len, void *pUser) -{ - mz_zip_writer_add_state *pState = (mz_zip_writer_add_state *)pUser; - if ((int)pState->m_pZip->m_pWrite(pState->m_pZip->m_pIO_opaque, pState->m_cur_archive_file_ofs, pBuf, len) != len) - return MZ_FALSE; - - pState->m_cur_archive_file_ofs += len; - pState->m_comp_size += len; - return MZ_TRUE; -} - -#define MZ_ZIP64_MAX_LOCAL_EXTRA_FIELD_SIZE (sizeof(mz_uint16) * 2 + sizeof(mz_uint64) * 2) -#define MZ_ZIP64_MAX_CENTRAL_EXTRA_FIELD_SIZE (sizeof(mz_uint16) * 2 + sizeof(mz_uint64) * 3) -static mz_uint32 mz_zip_writer_create_zip64_extra_data(mz_uint8 *pBuf, mz_uint64 *pUncomp_size, mz_uint64 *pComp_size, mz_uint64 *pLocal_header_ofs) -{ - mz_uint8 *pDst = pBuf; - mz_uint32 field_size = 0; - - MZ_WRITE_LE16(pDst + 0, MZ_ZIP64_EXTENDED_INFORMATION_FIELD_HEADER_ID); - MZ_WRITE_LE16(pDst + 2, 0); - pDst += sizeof(mz_uint16) * 2; - - if (pUncomp_size) - { - MZ_WRITE_LE64(pDst, *pUncomp_size); - pDst += sizeof(mz_uint64); - field_size += sizeof(mz_uint64); - } - - if (pComp_size) - { - MZ_WRITE_LE64(pDst, *pComp_size); - pDst += sizeof(mz_uint64); - field_size += sizeof(mz_uint64); - } - - if (pLocal_header_ofs) - { - MZ_WRITE_LE64(pDst, *pLocal_header_ofs); - pDst += sizeof(mz_uint64); - field_size += sizeof(mz_uint64); - } - - MZ_WRITE_LE16(pBuf + 2, field_size); - - return (mz_uint32)(pDst - pBuf); -} - -static mz_bool mz_zip_writer_create_local_dir_header(mz_zip_archive *pZip, mz_uint8 *pDst, mz_uint16 filename_size, mz_uint16 extra_size, mz_uint64 uncomp_size, mz_uint64 comp_size, mz_uint32 uncomp_crc32, mz_uint16 method, mz_uint16 bit_flags, mz_uint16 dos_time, mz_uint16 dos_date) -{ - (void)pZip; - memset(pDst, 0, MZ_ZIP_LOCAL_DIR_HEADER_SIZE); - MZ_WRITE_LE32(pDst + MZ_ZIP_LDH_SIG_OFS, MZ_ZIP_LOCAL_DIR_HEADER_SIG); - MZ_WRITE_LE16(pDst + MZ_ZIP_LDH_VERSION_NEEDED_OFS, method ? 20 : 0); - MZ_WRITE_LE16(pDst + MZ_ZIP_LDH_BIT_FLAG_OFS, bit_flags); - MZ_WRITE_LE16(pDst + MZ_ZIP_LDH_METHOD_OFS, method); - MZ_WRITE_LE16(pDst + MZ_ZIP_LDH_FILE_TIME_OFS, dos_time); - MZ_WRITE_LE16(pDst + MZ_ZIP_LDH_FILE_DATE_OFS, dos_date); - MZ_WRITE_LE32(pDst + MZ_ZIP_LDH_CRC32_OFS, uncomp_crc32); - MZ_WRITE_LE32(pDst + MZ_ZIP_LDH_COMPRESSED_SIZE_OFS, MZ_MIN(comp_size, MZ_UINT32_MAX)); - MZ_WRITE_LE32(pDst + MZ_ZIP_LDH_DECOMPRESSED_SIZE_OFS, MZ_MIN(uncomp_size, MZ_UINT32_MAX)); - MZ_WRITE_LE16(pDst + MZ_ZIP_LDH_FILENAME_LEN_OFS, filename_size); - MZ_WRITE_LE16(pDst + MZ_ZIP_LDH_EXTRA_LEN_OFS, extra_size); - return MZ_TRUE; -} - -static mz_bool mz_zip_writer_create_central_dir_header(mz_zip_archive *pZip, mz_uint8 *pDst, - mz_uint16 filename_size, mz_uint16 extra_size, mz_uint16 comment_size, - mz_uint64 uncomp_size, mz_uint64 comp_size, mz_uint32 uncomp_crc32, - mz_uint16 method, mz_uint16 bit_flags, mz_uint16 dos_time, mz_uint16 dos_date, - mz_uint64 local_header_ofs, mz_uint32 ext_attributes) -{ - (void)pZip; - memset(pDst, 0, MZ_ZIP_CENTRAL_DIR_HEADER_SIZE); - MZ_WRITE_LE32(pDst + MZ_ZIP_CDH_SIG_OFS, MZ_ZIP_CENTRAL_DIR_HEADER_SIG); - MZ_WRITE_LE16(pDst + MZ_ZIP_CDH_VERSION_NEEDED_OFS, method ? 20 : 0); - MZ_WRITE_LE16(pDst + MZ_ZIP_CDH_BIT_FLAG_OFS, bit_flags); - MZ_WRITE_LE16(pDst + MZ_ZIP_CDH_METHOD_OFS, method); - MZ_WRITE_LE16(pDst + MZ_ZIP_CDH_FILE_TIME_OFS, dos_time); - MZ_WRITE_LE16(pDst + MZ_ZIP_CDH_FILE_DATE_OFS, dos_date); - MZ_WRITE_LE32(pDst + MZ_ZIP_CDH_CRC32_OFS, uncomp_crc32); - MZ_WRITE_LE32(pDst + MZ_ZIP_CDH_COMPRESSED_SIZE_OFS, MZ_MIN(comp_size, MZ_UINT32_MAX)); - MZ_WRITE_LE32(pDst + MZ_ZIP_CDH_DECOMPRESSED_SIZE_OFS, MZ_MIN(uncomp_size, MZ_UINT32_MAX)); - MZ_WRITE_LE16(pDst + MZ_ZIP_CDH_FILENAME_LEN_OFS, filename_size); - MZ_WRITE_LE16(pDst + MZ_ZIP_CDH_EXTRA_LEN_OFS, extra_size); - MZ_WRITE_LE16(pDst + MZ_ZIP_CDH_COMMENT_LEN_OFS, comment_size); - MZ_WRITE_LE32(pDst + MZ_ZIP_CDH_EXTERNAL_ATTR_OFS, ext_attributes); - MZ_WRITE_LE32(pDst + MZ_ZIP_CDH_LOCAL_HEADER_OFS, MZ_MIN(local_header_ofs, MZ_UINT32_MAX)); - return MZ_TRUE; -} - -static mz_bool mz_zip_writer_add_to_central_dir(mz_zip_archive *pZip, const char *pFilename, mz_uint16 filename_size, - const void *pExtra, mz_uint16 extra_size, const void *pComment, mz_uint16 comment_size, - mz_uint64 uncomp_size, mz_uint64 comp_size, mz_uint32 uncomp_crc32, - mz_uint16 method, mz_uint16 bit_flags, mz_uint16 dos_time, mz_uint16 dos_date, - mz_uint64 local_header_ofs, mz_uint32 ext_attributes, - const char *user_extra_data, mz_uint user_extra_data_len) -{ - mz_zip_internal_state *pState = pZip->m_pState; - mz_uint32 central_dir_ofs = (mz_uint32)pState->m_central_dir.m_size; - size_t orig_central_dir_size = pState->m_central_dir.m_size; - mz_uint8 central_dir_header[MZ_ZIP_CENTRAL_DIR_HEADER_SIZE]; - - if (!pZip->m_pState->m_zip64) - { - if (local_header_ofs > 0xFFFFFFFF) - return mz_zip_set_error(pZip, MZ_ZIP_FILE_TOO_LARGE); - } - - /* miniz doesn't support central dirs >= MZ_UINT32_MAX bytes yet */ - if (((mz_uint64)pState->m_central_dir.m_size + MZ_ZIP_CENTRAL_DIR_HEADER_SIZE + filename_size + extra_size + user_extra_data_len + comment_size) >= MZ_UINT32_MAX) - return mz_zip_set_error(pZip, MZ_ZIP_UNSUPPORTED_CDIR_SIZE); - - if (!mz_zip_writer_create_central_dir_header(pZip, central_dir_header, filename_size, (mz_uint16)(extra_size + user_extra_data_len), comment_size, uncomp_size, comp_size, uncomp_crc32, method, bit_flags, dos_time, dos_date, local_header_ofs, ext_attributes)) - return mz_zip_set_error(pZip, MZ_ZIP_INTERNAL_ERROR); - - if ((!mz_zip_array_push_back(pZip, &pState->m_central_dir, central_dir_header, MZ_ZIP_CENTRAL_DIR_HEADER_SIZE)) || - (!mz_zip_array_push_back(pZip, &pState->m_central_dir, pFilename, filename_size)) || - (!mz_zip_array_push_back(pZip, &pState->m_central_dir, pExtra, extra_size)) || - (!mz_zip_array_push_back(pZip, &pState->m_central_dir, user_extra_data, user_extra_data_len)) || - (!mz_zip_array_push_back(pZip, &pState->m_central_dir, pComment, comment_size)) || - (!mz_zip_array_push_back(pZip, &pState->m_central_dir_offsets, ¢ral_dir_ofs, 1))) - { - /* Try to resize the central directory array back into its original state. */ - mz_zip_array_resize(pZip, &pState->m_central_dir, orig_central_dir_size, MZ_FALSE); - return mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED); - } - - return MZ_TRUE; -} - -static mz_bool mz_zip_writer_validate_archive_name(const char *pArchive_name) -{ - /* Basic ZIP archive filename validity checks: Valid filenames cannot start with a forward slash, cannot contain a drive letter, and cannot use DOS-style backward slashes. */ - if (*pArchive_name == '/') - return MZ_FALSE; - - /* Making sure the name does not contain drive letters or DOS style backward slashes is the responsibility of the program using miniz*/ - - return MZ_TRUE; -} - -static mz_uint mz_zip_writer_compute_padding_needed_for_file_alignment(mz_zip_archive *pZip) -{ - mz_uint32 n; - if (!pZip->m_file_offset_alignment) - return 0; - n = (mz_uint32)(pZip->m_archive_size & (pZip->m_file_offset_alignment - 1)); - return (mz_uint)((pZip->m_file_offset_alignment - n) & (pZip->m_file_offset_alignment - 1)); -} - -static mz_bool mz_zip_writer_write_zeros(mz_zip_archive *pZip, mz_uint64 cur_file_ofs, mz_uint32 n) -{ - char buf[4096]; - memset(buf, 0, MZ_MIN(sizeof(buf), n)); - while (n) - { - mz_uint32 s = MZ_MIN(sizeof(buf), n); - if (pZip->m_pWrite(pZip->m_pIO_opaque, cur_file_ofs, buf, s) != s) - return mz_zip_set_error(pZip, MZ_ZIP_FILE_WRITE_FAILED); - - cur_file_ofs += s; - n -= s; - } - return MZ_TRUE; -} - -mz_bool mz_zip_writer_add_mem_ex(mz_zip_archive *pZip, const char *pArchive_name, const void *pBuf, size_t buf_size, const void *pComment, mz_uint16 comment_size, mz_uint level_and_flags, - mz_uint64 uncomp_size, mz_uint32 uncomp_crc32) -{ - return mz_zip_writer_add_mem_ex_v2(pZip, pArchive_name, pBuf, buf_size, pComment, comment_size, level_and_flags, uncomp_size, uncomp_crc32, NULL, NULL, 0, NULL, 0); -} - -mz_bool mz_zip_writer_add_mem_ex_v2(mz_zip_archive *pZip, const char *pArchive_name, const void *pBuf, size_t buf_size, const void *pComment, mz_uint16 comment_size, - mz_uint level_and_flags, mz_uint64 uncomp_size, mz_uint32 uncomp_crc32, MZ_TIME_T *last_modified, - const char *user_extra_data, mz_uint user_extra_data_len, const char *user_extra_data_central, mz_uint user_extra_data_central_len) -{ - mz_uint16 method = 0, dos_time = 0, dos_date = 0; - mz_uint level, ext_attributes = 0, num_alignment_padding_bytes; - mz_uint64 local_dir_header_ofs = pZip->m_archive_size, cur_archive_file_ofs = pZip->m_archive_size, comp_size = 0; - size_t archive_name_size; - mz_uint8 local_dir_header[MZ_ZIP_LOCAL_DIR_HEADER_SIZE]; - tdefl_compressor *pComp = NULL; - mz_bool store_data_uncompressed; - mz_zip_internal_state *pState; - mz_uint8 *pExtra_data = NULL; - mz_uint32 extra_size = 0; - mz_uint8 extra_data[MZ_ZIP64_MAX_CENTRAL_EXTRA_FIELD_SIZE]; - mz_uint16 bit_flags = 0; - - if ((int)level_and_flags < 0) - level_and_flags = MZ_DEFAULT_LEVEL; - - if (uncomp_size || (buf_size && !(level_and_flags & MZ_ZIP_FLAG_COMPRESSED_DATA))) - bit_flags |= MZ_ZIP_LDH_BIT_FLAG_HAS_LOCATOR; - - if (!(level_and_flags & MZ_ZIP_FLAG_ASCII_FILENAME)) - bit_flags |= MZ_ZIP_GENERAL_PURPOSE_BIT_FLAG_UTF8; - - level = level_and_flags & 0xF; - store_data_uncompressed = ((!level) || (level_and_flags & MZ_ZIP_FLAG_COMPRESSED_DATA)); - - if ((!pZip) || (!pZip->m_pState) || (pZip->m_zip_mode != MZ_ZIP_MODE_WRITING) || ((buf_size) && (!pBuf)) || (!pArchive_name) || ((comment_size) && (!pComment)) || (level > MZ_UBER_COMPRESSION)) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER); - - pState = pZip->m_pState; - - if (pState->m_zip64) - { - if (pZip->m_total_files == MZ_UINT32_MAX) - return mz_zip_set_error(pZip, MZ_ZIP_TOO_MANY_FILES); - } - else - { - if (pZip->m_total_files == MZ_UINT16_MAX) - { - pState->m_zip64 = MZ_TRUE; - /*return mz_zip_set_error(pZip, MZ_ZIP_TOO_MANY_FILES); */ - } - if ((buf_size > 0xFFFFFFFF) || (uncomp_size > 0xFFFFFFFF)) - { - pState->m_zip64 = MZ_TRUE; - /*return mz_zip_set_error(pZip, MZ_ZIP_ARCHIVE_TOO_LARGE); */ - } - } - - if ((!(level_and_flags & MZ_ZIP_FLAG_COMPRESSED_DATA)) && (uncomp_size)) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER); - - if (!mz_zip_writer_validate_archive_name(pArchive_name)) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_FILENAME); - -#ifndef MINIZ_NO_TIME - if (last_modified != NULL) - { - mz_zip_time_t_to_dos_time(*last_modified, &dos_time, &dos_date); - } - else - { - MZ_TIME_T cur_time; - time(&cur_time); - mz_zip_time_t_to_dos_time(cur_time, &dos_time, &dos_date); - } -#endif /* #ifndef MINIZ_NO_TIME */ - - if (!(level_and_flags & MZ_ZIP_FLAG_COMPRESSED_DATA)) - { - uncomp_crc32 = (mz_uint32)mz_crc32(MZ_CRC32_INIT, (const mz_uint8 *)pBuf, buf_size); - uncomp_size = buf_size; - if (uncomp_size <= 3) - { - level = 0; - store_data_uncompressed = MZ_TRUE; - } - } - - archive_name_size = strlen(pArchive_name); - if (archive_name_size > MZ_UINT16_MAX) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_FILENAME); - - num_alignment_padding_bytes = mz_zip_writer_compute_padding_needed_for_file_alignment(pZip); - - /* miniz doesn't support central dirs >= MZ_UINT32_MAX bytes yet */ - if (((mz_uint64)pState->m_central_dir.m_size + MZ_ZIP_CENTRAL_DIR_HEADER_SIZE + archive_name_size + MZ_ZIP64_MAX_CENTRAL_EXTRA_FIELD_SIZE + comment_size) >= MZ_UINT32_MAX) - return mz_zip_set_error(pZip, MZ_ZIP_UNSUPPORTED_CDIR_SIZE); - - if (!pState->m_zip64) - { - /* Bail early if the archive would obviously become too large */ - if ((pZip->m_archive_size + num_alignment_padding_bytes + MZ_ZIP_LOCAL_DIR_HEADER_SIZE + archive_name_size - + MZ_ZIP_CENTRAL_DIR_HEADER_SIZE + archive_name_size + comment_size + user_extra_data_len + - pState->m_central_dir.m_size + MZ_ZIP_END_OF_CENTRAL_DIR_HEADER_SIZE + user_extra_data_central_len - + MZ_ZIP_DATA_DESCRIPTER_SIZE32) > 0xFFFFFFFF) - { - pState->m_zip64 = MZ_TRUE; - /*return mz_zip_set_error(pZip, MZ_ZIP_ARCHIVE_TOO_LARGE); */ - } - } - - if ((archive_name_size) && (pArchive_name[archive_name_size - 1] == '/')) - { - /* Set DOS Subdirectory attribute bit. */ - ext_attributes |= MZ_ZIP_DOS_DIR_ATTRIBUTE_BITFLAG; - - /* Subdirectories cannot contain data. */ - if ((buf_size) || (uncomp_size)) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER); - } - - /* Try to do any allocations before writing to the archive, so if an allocation fails the file remains unmodified. (A good idea if we're doing an in-place modification.) */ - if ((!mz_zip_array_ensure_room(pZip, &pState->m_central_dir, MZ_ZIP_CENTRAL_DIR_HEADER_SIZE + archive_name_size + comment_size + (pState->m_zip64 ? MZ_ZIP64_MAX_CENTRAL_EXTRA_FIELD_SIZE : 0))) || (!mz_zip_array_ensure_room(pZip, &pState->m_central_dir_offsets, 1))) - return mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED); - - if ((!store_data_uncompressed) && (buf_size)) - { - if (NULL == (pComp = (tdefl_compressor *)pZip->m_pAlloc(pZip->m_pAlloc_opaque, 1, sizeof(tdefl_compressor)))) - return mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED); - } - - if (!mz_zip_writer_write_zeros(pZip, cur_archive_file_ofs, num_alignment_padding_bytes)) - { - pZip->m_pFree(pZip->m_pAlloc_opaque, pComp); - return MZ_FALSE; - } - - local_dir_header_ofs += num_alignment_padding_bytes; - if (pZip->m_file_offset_alignment) - { - MZ_ASSERT((local_dir_header_ofs & (pZip->m_file_offset_alignment - 1)) == 0); - } - cur_archive_file_ofs += num_alignment_padding_bytes; - - MZ_CLEAR_OBJ(local_dir_header); - - if (!store_data_uncompressed || (level_and_flags & MZ_ZIP_FLAG_COMPRESSED_DATA)) - { - method = MZ_DEFLATED; - } - - if (pState->m_zip64) - { - if (uncomp_size >= MZ_UINT32_MAX || local_dir_header_ofs >= MZ_UINT32_MAX) - { - pExtra_data = extra_data; - extra_size = mz_zip_writer_create_zip64_extra_data(extra_data, (uncomp_size >= MZ_UINT32_MAX) ? &uncomp_size : NULL, - (uncomp_size >= MZ_UINT32_MAX) ? &comp_size : NULL, (local_dir_header_ofs >= MZ_UINT32_MAX) ? &local_dir_header_ofs : NULL); - } - - if (!mz_zip_writer_create_local_dir_header(pZip, local_dir_header, (mz_uint16)archive_name_size, (mz_uint16)(extra_size + user_extra_data_len), 0, 0, 0, method, bit_flags, dos_time, dos_date)) - return mz_zip_set_error(pZip, MZ_ZIP_INTERNAL_ERROR); - - if (pZip->m_pWrite(pZip->m_pIO_opaque, local_dir_header_ofs, local_dir_header, sizeof(local_dir_header)) != sizeof(local_dir_header)) - return mz_zip_set_error(pZip, MZ_ZIP_FILE_WRITE_FAILED); - - cur_archive_file_ofs += sizeof(local_dir_header); - - if (pZip->m_pWrite(pZip->m_pIO_opaque, cur_archive_file_ofs, pArchive_name, archive_name_size) != archive_name_size) - { - pZip->m_pFree(pZip->m_pAlloc_opaque, pComp); - return mz_zip_set_error(pZip, MZ_ZIP_FILE_WRITE_FAILED); - } - cur_archive_file_ofs += archive_name_size; - - if (pExtra_data != NULL) - { - if (pZip->m_pWrite(pZip->m_pIO_opaque, cur_archive_file_ofs, extra_data, extra_size) != extra_size) - return mz_zip_set_error(pZip, MZ_ZIP_FILE_WRITE_FAILED); - - cur_archive_file_ofs += extra_size; - } - } - else - { - if ((comp_size > MZ_UINT32_MAX) || (cur_archive_file_ofs > MZ_UINT32_MAX)) - return mz_zip_set_error(pZip, MZ_ZIP_ARCHIVE_TOO_LARGE); - if (!mz_zip_writer_create_local_dir_header(pZip, local_dir_header, (mz_uint16)archive_name_size, (mz_uint16)user_extra_data_len, 0, 0, 0, method, bit_flags, dos_time, dos_date)) - return mz_zip_set_error(pZip, MZ_ZIP_INTERNAL_ERROR); - - if (pZip->m_pWrite(pZip->m_pIO_opaque, local_dir_header_ofs, local_dir_header, sizeof(local_dir_header)) != sizeof(local_dir_header)) - return mz_zip_set_error(pZip, MZ_ZIP_FILE_WRITE_FAILED); - - cur_archive_file_ofs += sizeof(local_dir_header); - - if (pZip->m_pWrite(pZip->m_pIO_opaque, cur_archive_file_ofs, pArchive_name, archive_name_size) != archive_name_size) - { - pZip->m_pFree(pZip->m_pAlloc_opaque, pComp); - return mz_zip_set_error(pZip, MZ_ZIP_FILE_WRITE_FAILED); - } - cur_archive_file_ofs += archive_name_size; - } - - if (user_extra_data_len > 0) - { - if (pZip->m_pWrite(pZip->m_pIO_opaque, cur_archive_file_ofs, user_extra_data, user_extra_data_len) != user_extra_data_len) - return mz_zip_set_error(pZip, MZ_ZIP_FILE_WRITE_FAILED); - - cur_archive_file_ofs += user_extra_data_len; - } - - if (store_data_uncompressed) - { - if (pZip->m_pWrite(pZip->m_pIO_opaque, cur_archive_file_ofs, pBuf, buf_size) != buf_size) - { - pZip->m_pFree(pZip->m_pAlloc_opaque, pComp); - return mz_zip_set_error(pZip, MZ_ZIP_FILE_WRITE_FAILED); - } - - cur_archive_file_ofs += buf_size; - comp_size = buf_size; - } - else if (buf_size) - { - mz_zip_writer_add_state state; - - state.m_pZip = pZip; - state.m_cur_archive_file_ofs = cur_archive_file_ofs; - state.m_comp_size = 0; - - if ((tdefl_init(pComp, mz_zip_writer_add_put_buf_callback, &state, tdefl_create_comp_flags_from_zip_params(level, -15, MZ_DEFAULT_STRATEGY)) != TDEFL_STATUS_OKAY) || - (tdefl_compress_buffer(pComp, pBuf, buf_size, TDEFL_FINISH) != TDEFL_STATUS_DONE)) - { - pZip->m_pFree(pZip->m_pAlloc_opaque, pComp); - return mz_zip_set_error(pZip, MZ_ZIP_COMPRESSION_FAILED); - } - - comp_size = state.m_comp_size; - cur_archive_file_ofs = state.m_cur_archive_file_ofs; - } - - pZip->m_pFree(pZip->m_pAlloc_opaque, pComp); - pComp = NULL; - - if (uncomp_size) - { - mz_uint8 local_dir_footer[MZ_ZIP_DATA_DESCRIPTER_SIZE64]; - mz_uint32 local_dir_footer_size = MZ_ZIP_DATA_DESCRIPTER_SIZE32; - - MZ_ASSERT(bit_flags & MZ_ZIP_LDH_BIT_FLAG_HAS_LOCATOR); - - MZ_WRITE_LE32(local_dir_footer + 0, MZ_ZIP_DATA_DESCRIPTOR_ID); - MZ_WRITE_LE32(local_dir_footer + 4, uncomp_crc32); - if (pExtra_data == NULL) - { - if (comp_size > MZ_UINT32_MAX) - return mz_zip_set_error(pZip, MZ_ZIP_ARCHIVE_TOO_LARGE); - - MZ_WRITE_LE32(local_dir_footer + 8, comp_size); - MZ_WRITE_LE32(local_dir_footer + 12, uncomp_size); - } - else - { - MZ_WRITE_LE64(local_dir_footer + 8, comp_size); - MZ_WRITE_LE64(local_dir_footer + 16, uncomp_size); - local_dir_footer_size = MZ_ZIP_DATA_DESCRIPTER_SIZE64; - } - - if (pZip->m_pWrite(pZip->m_pIO_opaque, cur_archive_file_ofs, local_dir_footer, local_dir_footer_size) != local_dir_footer_size) - return MZ_FALSE; - - cur_archive_file_ofs += local_dir_footer_size; - } - - if (pExtra_data != NULL) - { - extra_size = mz_zip_writer_create_zip64_extra_data(extra_data, (uncomp_size >= MZ_UINT32_MAX) ? &uncomp_size : NULL, - (uncomp_size >= MZ_UINT32_MAX) ? &comp_size : NULL, (local_dir_header_ofs >= MZ_UINT32_MAX) ? &local_dir_header_ofs : NULL); - } - - if (!mz_zip_writer_add_to_central_dir(pZip, pArchive_name, (mz_uint16)archive_name_size, pExtra_data, (mz_uint16)extra_size, pComment, - comment_size, uncomp_size, comp_size, uncomp_crc32, method, bit_flags, dos_time, dos_date, local_dir_header_ofs, ext_attributes, - user_extra_data_central, user_extra_data_central_len)) - return MZ_FALSE; - - pZip->m_total_files++; - pZip->m_archive_size = cur_archive_file_ofs; - - return MZ_TRUE; -} - -mz_bool mz_zip_writer_add_read_buf_callback(mz_zip_archive *pZip, const char *pArchive_name, mz_file_read_func read_callback, void* callback_opaque, mz_uint64 size_to_add, const MZ_TIME_T *pFile_time, const void *pComment, mz_uint16 comment_size, mz_uint level_and_flags, - const char *user_extra_data, mz_uint user_extra_data_len, const char *user_extra_data_central, mz_uint user_extra_data_central_len) -{ - mz_uint16 gen_flags = MZ_ZIP_LDH_BIT_FLAG_HAS_LOCATOR; - mz_uint uncomp_crc32 = MZ_CRC32_INIT, level, num_alignment_padding_bytes; - mz_uint16 method = 0, dos_time = 0, dos_date = 0, ext_attributes = 0; - mz_uint64 local_dir_header_ofs, cur_archive_file_ofs = pZip->m_archive_size, uncomp_size = size_to_add, comp_size = 0; - size_t archive_name_size; - mz_uint8 local_dir_header[MZ_ZIP_LOCAL_DIR_HEADER_SIZE]; - mz_uint8 *pExtra_data = NULL; - mz_uint32 extra_size = 0; - mz_uint8 extra_data[MZ_ZIP64_MAX_CENTRAL_EXTRA_FIELD_SIZE]; - mz_zip_internal_state *pState; - mz_uint64 file_ofs = 0; - - if (!(level_and_flags & MZ_ZIP_FLAG_ASCII_FILENAME)) - gen_flags |= MZ_ZIP_GENERAL_PURPOSE_BIT_FLAG_UTF8; - - if ((int)level_and_flags < 0) - level_and_flags = MZ_DEFAULT_LEVEL; - level = level_and_flags & 0xF; - - /* Sanity checks */ - if ((!pZip) || (!pZip->m_pState) || (pZip->m_zip_mode != MZ_ZIP_MODE_WRITING) || (!pArchive_name) || ((comment_size) && (!pComment)) || (level > MZ_UBER_COMPRESSION)) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER); - - pState = pZip->m_pState; - - if ((!pState->m_zip64) && (uncomp_size > MZ_UINT32_MAX)) - { - /* Source file is too large for non-zip64 */ - /*return mz_zip_set_error(pZip, MZ_ZIP_ARCHIVE_TOO_LARGE); */ - pState->m_zip64 = MZ_TRUE; - } - - /* We could support this, but why? */ - if (level_and_flags & MZ_ZIP_FLAG_COMPRESSED_DATA) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER); - - if (!mz_zip_writer_validate_archive_name(pArchive_name)) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_FILENAME); - - if (pState->m_zip64) - { - if (pZip->m_total_files == MZ_UINT32_MAX) - return mz_zip_set_error(pZip, MZ_ZIP_TOO_MANY_FILES); - } - else - { - if (pZip->m_total_files == MZ_UINT16_MAX) - { - pState->m_zip64 = MZ_TRUE; - /*return mz_zip_set_error(pZip, MZ_ZIP_TOO_MANY_FILES); */ - } - } - - archive_name_size = strlen(pArchive_name); - if (archive_name_size > MZ_UINT16_MAX) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_FILENAME); - - num_alignment_padding_bytes = mz_zip_writer_compute_padding_needed_for_file_alignment(pZip); - - /* miniz doesn't support central dirs >= MZ_UINT32_MAX bytes yet */ - if (((mz_uint64)pState->m_central_dir.m_size + MZ_ZIP_CENTRAL_DIR_HEADER_SIZE + archive_name_size + MZ_ZIP64_MAX_CENTRAL_EXTRA_FIELD_SIZE + comment_size) >= MZ_UINT32_MAX) - return mz_zip_set_error(pZip, MZ_ZIP_UNSUPPORTED_CDIR_SIZE); - - if (!pState->m_zip64) - { - /* Bail early if the archive would obviously become too large */ - if ((pZip->m_archive_size + num_alignment_padding_bytes + MZ_ZIP_LOCAL_DIR_HEADER_SIZE + archive_name_size + MZ_ZIP_CENTRAL_DIR_HEADER_SIZE - + archive_name_size + comment_size + user_extra_data_len + pState->m_central_dir.m_size + MZ_ZIP_END_OF_CENTRAL_DIR_HEADER_SIZE + 1024 - + MZ_ZIP_DATA_DESCRIPTER_SIZE32 + user_extra_data_central_len) > 0xFFFFFFFF) - { - pState->m_zip64 = MZ_TRUE; - /*return mz_zip_set_error(pZip, MZ_ZIP_ARCHIVE_TOO_LARGE); */ - } - } - -#ifndef MINIZ_NO_TIME - if (pFile_time) - { - mz_zip_time_t_to_dos_time(*pFile_time, &dos_time, &dos_date); - } -#endif - - if (uncomp_size <= 3) - level = 0; - - if (!mz_zip_writer_write_zeros(pZip, cur_archive_file_ofs, num_alignment_padding_bytes)) - { - return mz_zip_set_error(pZip, MZ_ZIP_FILE_WRITE_FAILED); - } - - cur_archive_file_ofs += num_alignment_padding_bytes; - local_dir_header_ofs = cur_archive_file_ofs; - - if (pZip->m_file_offset_alignment) - { - MZ_ASSERT((cur_archive_file_ofs & (pZip->m_file_offset_alignment - 1)) == 0); - } - - if (uncomp_size && level) - { - method = MZ_DEFLATED; - } - - MZ_CLEAR_OBJ(local_dir_header); - if (pState->m_zip64) - { - if (uncomp_size >= MZ_UINT32_MAX || local_dir_header_ofs >= MZ_UINT32_MAX) - { - pExtra_data = extra_data; - extra_size = mz_zip_writer_create_zip64_extra_data(extra_data, (uncomp_size >= MZ_UINT32_MAX) ? &uncomp_size : NULL, - (uncomp_size >= MZ_UINT32_MAX) ? &comp_size : NULL, (local_dir_header_ofs >= MZ_UINT32_MAX) ? &local_dir_header_ofs : NULL); - } - - if (!mz_zip_writer_create_local_dir_header(pZip, local_dir_header, (mz_uint16)archive_name_size, (mz_uint16)(extra_size + user_extra_data_len), 0, 0, 0, method, gen_flags, dos_time, dos_date)) - return mz_zip_set_error(pZip, MZ_ZIP_INTERNAL_ERROR); - - if (pZip->m_pWrite(pZip->m_pIO_opaque, cur_archive_file_ofs, local_dir_header, sizeof(local_dir_header)) != sizeof(local_dir_header)) - return mz_zip_set_error(pZip, MZ_ZIP_FILE_WRITE_FAILED); - - cur_archive_file_ofs += sizeof(local_dir_header); - - if (pZip->m_pWrite(pZip->m_pIO_opaque, cur_archive_file_ofs, pArchive_name, archive_name_size) != archive_name_size) - { - return mz_zip_set_error(pZip, MZ_ZIP_FILE_WRITE_FAILED); - } - - cur_archive_file_ofs += archive_name_size; - - if (pZip->m_pWrite(pZip->m_pIO_opaque, cur_archive_file_ofs, extra_data, extra_size) != extra_size) - return mz_zip_set_error(pZip, MZ_ZIP_FILE_WRITE_FAILED); - - cur_archive_file_ofs += extra_size; - } - else - { - if ((comp_size > MZ_UINT32_MAX) || (cur_archive_file_ofs > MZ_UINT32_MAX)) - return mz_zip_set_error(pZip, MZ_ZIP_ARCHIVE_TOO_LARGE); - if (!mz_zip_writer_create_local_dir_header(pZip, local_dir_header, (mz_uint16)archive_name_size, (mz_uint16)user_extra_data_len, 0, 0, 0, method, gen_flags, dos_time, dos_date)) - return mz_zip_set_error(pZip, MZ_ZIP_INTERNAL_ERROR); - - if (pZip->m_pWrite(pZip->m_pIO_opaque, cur_archive_file_ofs, local_dir_header, sizeof(local_dir_header)) != sizeof(local_dir_header)) - return mz_zip_set_error(pZip, MZ_ZIP_FILE_WRITE_FAILED); - - cur_archive_file_ofs += sizeof(local_dir_header); - - if (pZip->m_pWrite(pZip->m_pIO_opaque, cur_archive_file_ofs, pArchive_name, archive_name_size) != archive_name_size) - { - return mz_zip_set_error(pZip, MZ_ZIP_FILE_WRITE_FAILED); - } - - cur_archive_file_ofs += archive_name_size; - } - - if (user_extra_data_len > 0) - { - if (pZip->m_pWrite(pZip->m_pIO_opaque, cur_archive_file_ofs, user_extra_data, user_extra_data_len) != user_extra_data_len) - return mz_zip_set_error(pZip, MZ_ZIP_FILE_WRITE_FAILED); - - cur_archive_file_ofs += user_extra_data_len; - } - - if (uncomp_size) - { - mz_uint64 uncomp_remaining = uncomp_size; - void *pRead_buf = pZip->m_pAlloc(pZip->m_pAlloc_opaque, 1, MZ_ZIP_MAX_IO_BUF_SIZE); - if (!pRead_buf) - { - return mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED); - } - - if (!level) - { - while (uncomp_remaining) - { - mz_uint n = (mz_uint)MZ_MIN((mz_uint64)MZ_ZIP_MAX_IO_BUF_SIZE, uncomp_remaining); - if ((read_callback(callback_opaque, file_ofs, pRead_buf, n) != n) || (pZip->m_pWrite(pZip->m_pIO_opaque, cur_archive_file_ofs, pRead_buf, n) != n)) - { - pZip->m_pFree(pZip->m_pAlloc_opaque, pRead_buf); - return mz_zip_set_error(pZip, MZ_ZIP_FILE_READ_FAILED); - } - file_ofs += n; - uncomp_crc32 = (mz_uint32)mz_crc32(uncomp_crc32, (const mz_uint8 *)pRead_buf, n); - uncomp_remaining -= n; - cur_archive_file_ofs += n; - } - comp_size = uncomp_size; - } - else - { - mz_bool result = MZ_FALSE; - mz_zip_writer_add_state state; - tdefl_compressor *pComp = (tdefl_compressor *)pZip->m_pAlloc(pZip->m_pAlloc_opaque, 1, sizeof(tdefl_compressor)); - if (!pComp) - { - pZip->m_pFree(pZip->m_pAlloc_opaque, pRead_buf); - return mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED); - } - - state.m_pZip = pZip; - state.m_cur_archive_file_ofs = cur_archive_file_ofs; - state.m_comp_size = 0; - - if (tdefl_init(pComp, mz_zip_writer_add_put_buf_callback, &state, tdefl_create_comp_flags_from_zip_params(level, -15, MZ_DEFAULT_STRATEGY)) != TDEFL_STATUS_OKAY) - { - pZip->m_pFree(pZip->m_pAlloc_opaque, pComp); - pZip->m_pFree(pZip->m_pAlloc_opaque, pRead_buf); - return mz_zip_set_error(pZip, MZ_ZIP_INTERNAL_ERROR); - } - - for (;;) - { - size_t in_buf_size = (mz_uint32)MZ_MIN(uncomp_remaining, (mz_uint64)MZ_ZIP_MAX_IO_BUF_SIZE); - tdefl_status status; - tdefl_flush flush = TDEFL_NO_FLUSH; - - if (read_callback(callback_opaque, file_ofs, pRead_buf, in_buf_size)!= in_buf_size) - { - mz_zip_set_error(pZip, MZ_ZIP_FILE_READ_FAILED); - break; - } - - file_ofs += in_buf_size; - uncomp_crc32 = (mz_uint32)mz_crc32(uncomp_crc32, (const mz_uint8 *)pRead_buf, in_buf_size); - uncomp_remaining -= in_buf_size; - - if (pZip->m_pNeeds_keepalive != NULL && pZip->m_pNeeds_keepalive(pZip->m_pIO_opaque)) - flush = TDEFL_FULL_FLUSH; - - status = tdefl_compress_buffer(pComp, pRead_buf, in_buf_size, uncomp_remaining ? flush : TDEFL_FINISH); - if (status == TDEFL_STATUS_DONE) - { - result = MZ_TRUE; - break; - } - else if (status != TDEFL_STATUS_OKAY) - { - mz_zip_set_error(pZip, MZ_ZIP_COMPRESSION_FAILED); - break; - } - } - - pZip->m_pFree(pZip->m_pAlloc_opaque, pComp); - - if (!result) - { - pZip->m_pFree(pZip->m_pAlloc_opaque, pRead_buf); - return MZ_FALSE; - } - - comp_size = state.m_comp_size; - cur_archive_file_ofs = state.m_cur_archive_file_ofs; - } - - pZip->m_pFree(pZip->m_pAlloc_opaque, pRead_buf); - } - - { - mz_uint8 local_dir_footer[MZ_ZIP_DATA_DESCRIPTER_SIZE64]; - mz_uint32 local_dir_footer_size = MZ_ZIP_DATA_DESCRIPTER_SIZE32; - - MZ_WRITE_LE32(local_dir_footer + 0, MZ_ZIP_DATA_DESCRIPTOR_ID); - MZ_WRITE_LE32(local_dir_footer + 4, uncomp_crc32); - if (pExtra_data == NULL) - { - if (comp_size > MZ_UINT32_MAX) - return mz_zip_set_error(pZip, MZ_ZIP_ARCHIVE_TOO_LARGE); - - MZ_WRITE_LE32(local_dir_footer + 8, comp_size); - MZ_WRITE_LE32(local_dir_footer + 12, uncomp_size); - } - else - { - MZ_WRITE_LE64(local_dir_footer + 8, comp_size); - MZ_WRITE_LE64(local_dir_footer + 16, uncomp_size); - local_dir_footer_size = MZ_ZIP_DATA_DESCRIPTER_SIZE64; - } - - if (pZip->m_pWrite(pZip->m_pIO_opaque, cur_archive_file_ofs, local_dir_footer, local_dir_footer_size) != local_dir_footer_size) - return MZ_FALSE; - - cur_archive_file_ofs += local_dir_footer_size; - } - - if (pExtra_data != NULL) - { - extra_size = mz_zip_writer_create_zip64_extra_data(extra_data, (uncomp_size >= MZ_UINT32_MAX) ? &uncomp_size : NULL, - (uncomp_size >= MZ_UINT32_MAX) ? &comp_size : NULL, (local_dir_header_ofs >= MZ_UINT32_MAX) ? &local_dir_header_ofs : NULL); - } - - if (!mz_zip_writer_add_to_central_dir(pZip, pArchive_name, (mz_uint16)archive_name_size, pExtra_data, (mz_uint16)extra_size, pComment, comment_size, - uncomp_size, comp_size, uncomp_crc32, method, gen_flags, dos_time, dos_date, local_dir_header_ofs, ext_attributes, - user_extra_data_central, user_extra_data_central_len)) - return MZ_FALSE; - - pZip->m_total_files++; - pZip->m_archive_size = cur_archive_file_ofs; - - return MZ_TRUE; -} - -#ifndef MINIZ_NO_STDIO - -static size_t mz_file_read_func_stdio(void *pOpaque, mz_uint64 file_ofs, void *pBuf, size_t n) -{ - MZ_FILE *pSrc_file = (MZ_FILE *)pOpaque; - mz_int64 cur_ofs = MZ_FTELL64(pSrc_file); - - if (((mz_int64)file_ofs < 0) || (((cur_ofs != (mz_int64)file_ofs)) && (MZ_FSEEK64(pSrc_file, (mz_int64)file_ofs, SEEK_SET)))) - return 0; - - return MZ_FREAD(pBuf, 1, n, pSrc_file); -} - -mz_bool mz_zip_writer_add_cfile(mz_zip_archive *pZip, const char *pArchive_name, MZ_FILE *pSrc_file, mz_uint64 size_to_add, const MZ_TIME_T *pFile_time, const void *pComment, mz_uint16 comment_size, mz_uint level_and_flags, - const char *user_extra_data, mz_uint user_extra_data_len, const char *user_extra_data_central, mz_uint user_extra_data_central_len) -{ - return mz_zip_writer_add_read_buf_callback(pZip, pArchive_name, mz_file_read_func_stdio, pSrc_file, size_to_add, pFile_time, pComment, comment_size, level_and_flags, - user_extra_data, user_extra_data_len, user_extra_data_central, user_extra_data_central_len); -} - -mz_bool mz_zip_writer_add_file(mz_zip_archive *pZip, const char *pArchive_name, const char *pSrc_filename, const void *pComment, mz_uint16 comment_size, mz_uint level_and_flags) -{ - MZ_FILE *pSrc_file = NULL; - mz_uint64 uncomp_size = 0; - MZ_TIME_T file_modified_time; - MZ_TIME_T *pFile_time = NULL; - mz_bool status; - - memset(&file_modified_time, 0, sizeof(file_modified_time)); - -#if !defined(MINIZ_NO_TIME) && !defined(MINIZ_NO_STDIO) - pFile_time = &file_modified_time; - if (!mz_zip_get_file_modified_time(pSrc_filename, &file_modified_time)) - return mz_zip_set_error(pZip, MZ_ZIP_FILE_STAT_FAILED); -#endif - - pSrc_file = MZ_FOPEN(pSrc_filename, "rb"); - if (!pSrc_file) - return mz_zip_set_error(pZip, MZ_ZIP_FILE_OPEN_FAILED); - - MZ_FSEEK64(pSrc_file, 0, SEEK_END); - uncomp_size = MZ_FTELL64(pSrc_file); - MZ_FSEEK64(pSrc_file, 0, SEEK_SET); - - status = mz_zip_writer_add_cfile(pZip, pArchive_name, pSrc_file, uncomp_size, pFile_time, pComment, comment_size, level_and_flags, NULL, 0, NULL, 0); - - MZ_FCLOSE(pSrc_file); - - return status; -} -#endif /* #ifndef MINIZ_NO_STDIO */ - -static mz_bool mz_zip_writer_update_zip64_extension_block(mz_zip_array *pNew_ext, mz_zip_archive *pZip, const mz_uint8 *pExt, uint32_t ext_len, mz_uint64 *pComp_size, mz_uint64 *pUncomp_size, mz_uint64 *pLocal_header_ofs, mz_uint32 *pDisk_start) -{ - /* + 64 should be enough for any new zip64 data */ - if (!mz_zip_array_reserve(pZip, pNew_ext, ext_len + 64, MZ_FALSE)) - return mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED); - - mz_zip_array_resize(pZip, pNew_ext, 0, MZ_FALSE); - - if ((pUncomp_size) || (pComp_size) || (pLocal_header_ofs) || (pDisk_start)) - { - mz_uint8 new_ext_block[64]; - mz_uint8 *pDst = new_ext_block; - mz_write_le16(pDst, MZ_ZIP64_EXTENDED_INFORMATION_FIELD_HEADER_ID); - mz_write_le16(pDst + sizeof(mz_uint16), 0); - pDst += sizeof(mz_uint16) * 2; - - if (pUncomp_size) - { - mz_write_le64(pDst, *pUncomp_size); - pDst += sizeof(mz_uint64); - } - - if (pComp_size) - { - mz_write_le64(pDst, *pComp_size); - pDst += sizeof(mz_uint64); - } - - if (pLocal_header_ofs) - { - mz_write_le64(pDst, *pLocal_header_ofs); - pDst += sizeof(mz_uint64); - } - - if (pDisk_start) - { - mz_write_le32(pDst, *pDisk_start); - pDst += sizeof(mz_uint32); - } - - mz_write_le16(new_ext_block + sizeof(mz_uint16), (mz_uint16)((pDst - new_ext_block) - sizeof(mz_uint16) * 2)); - - if (!mz_zip_array_push_back(pZip, pNew_ext, new_ext_block, pDst - new_ext_block)) - return mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED); - } - - if ((pExt) && (ext_len)) - { - mz_uint32 extra_size_remaining = ext_len; - const mz_uint8 *pExtra_data = pExt; - - do - { - mz_uint32 field_id, field_data_size, field_total_size; - - if (extra_size_remaining < (sizeof(mz_uint16) * 2)) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED); - - field_id = MZ_READ_LE16(pExtra_data); - field_data_size = MZ_READ_LE16(pExtra_data + sizeof(mz_uint16)); - field_total_size = field_data_size + sizeof(mz_uint16) * 2; - - if (field_total_size > extra_size_remaining) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED); - - if (field_id != MZ_ZIP64_EXTENDED_INFORMATION_FIELD_HEADER_ID) - { - if (!mz_zip_array_push_back(pZip, pNew_ext, pExtra_data, field_total_size)) - return mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED); - } - - pExtra_data += field_total_size; - extra_size_remaining -= field_total_size; - } while (extra_size_remaining); - } - - return MZ_TRUE; -} - -/* TODO: This func is now pretty freakin complex due to zip64, split it up? */ -mz_bool mz_zip_writer_add_from_zip_reader(mz_zip_archive *pZip, mz_zip_archive *pSource_zip, mz_uint src_file_index) -{ - mz_uint n, bit_flags, num_alignment_padding_bytes, src_central_dir_following_data_size; - mz_uint64 src_archive_bytes_remaining, local_dir_header_ofs; - mz_uint64 cur_src_file_ofs, cur_dst_file_ofs; - mz_uint32 local_header_u32[(MZ_ZIP_LOCAL_DIR_HEADER_SIZE + sizeof(mz_uint32) - 1) / sizeof(mz_uint32)]; - mz_uint8 *pLocal_header = (mz_uint8 *)local_header_u32; - mz_uint8 new_central_header[MZ_ZIP_CENTRAL_DIR_HEADER_SIZE]; - size_t orig_central_dir_size; - mz_zip_internal_state *pState; - void *pBuf; - const mz_uint8 *pSrc_central_header; - mz_zip_archive_file_stat src_file_stat; - mz_uint32 src_filename_len, src_comment_len, src_ext_len; - mz_uint32 local_header_filename_size, local_header_extra_len; - mz_uint64 local_header_comp_size, local_header_uncomp_size; - mz_bool found_zip64_ext_data_in_ldir = MZ_FALSE; - - /* Sanity checks */ - if ((!pZip) || (!pZip->m_pState) || (pZip->m_zip_mode != MZ_ZIP_MODE_WRITING) || (!pSource_zip->m_pRead)) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER); - - pState = pZip->m_pState; - - /* Don't support copying files from zip64 archives to non-zip64, even though in some cases this is possible */ - if ((pSource_zip->m_pState->m_zip64) && (!pZip->m_pState->m_zip64)) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER); - - /* Get pointer to the source central dir header and crack it */ - if (NULL == (pSrc_central_header = mz_zip_get_cdh(pSource_zip, src_file_index))) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER); - - if (MZ_READ_LE32(pSrc_central_header + MZ_ZIP_CDH_SIG_OFS) != MZ_ZIP_CENTRAL_DIR_HEADER_SIG) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED); - - src_filename_len = MZ_READ_LE16(pSrc_central_header + MZ_ZIP_CDH_FILENAME_LEN_OFS); - src_comment_len = MZ_READ_LE16(pSrc_central_header + MZ_ZIP_CDH_COMMENT_LEN_OFS); - src_ext_len = MZ_READ_LE16(pSrc_central_header + MZ_ZIP_CDH_EXTRA_LEN_OFS); - src_central_dir_following_data_size = src_filename_len + src_ext_len + src_comment_len; - - /* TODO: We don't support central dir's >= MZ_UINT32_MAX bytes right now (+32 fudge factor in case we need to add more extra data) */ - if ((pState->m_central_dir.m_size + MZ_ZIP_CENTRAL_DIR_HEADER_SIZE + src_central_dir_following_data_size + 32) >= MZ_UINT32_MAX) - return mz_zip_set_error(pZip, MZ_ZIP_UNSUPPORTED_CDIR_SIZE); - - num_alignment_padding_bytes = mz_zip_writer_compute_padding_needed_for_file_alignment(pZip); - - if (!pState->m_zip64) - { - if (pZip->m_total_files == MZ_UINT16_MAX) - return mz_zip_set_error(pZip, MZ_ZIP_TOO_MANY_FILES); - } - else - { - /* TODO: Our zip64 support still has some 32-bit limits that may not be worth fixing. */ - if (pZip->m_total_files == MZ_UINT32_MAX) - return mz_zip_set_error(pZip, MZ_ZIP_TOO_MANY_FILES); - } - - if (!mz_zip_file_stat_internal(pSource_zip, src_file_index, pSrc_central_header, &src_file_stat, NULL)) - return MZ_FALSE; - - cur_src_file_ofs = src_file_stat.m_local_header_ofs; - cur_dst_file_ofs = pZip->m_archive_size; - - /* Read the source archive's local dir header */ - if (pSource_zip->m_pRead(pSource_zip->m_pIO_opaque, cur_src_file_ofs, pLocal_header, MZ_ZIP_LOCAL_DIR_HEADER_SIZE) != MZ_ZIP_LOCAL_DIR_HEADER_SIZE) - return mz_zip_set_error(pZip, MZ_ZIP_FILE_READ_FAILED); - - if (MZ_READ_LE32(pLocal_header) != MZ_ZIP_LOCAL_DIR_HEADER_SIG) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED); - - cur_src_file_ofs += MZ_ZIP_LOCAL_DIR_HEADER_SIZE; - - /* Compute the total size we need to copy (filename+extra data+compressed data) */ - local_header_filename_size = MZ_READ_LE16(pLocal_header + MZ_ZIP_LDH_FILENAME_LEN_OFS); - local_header_extra_len = MZ_READ_LE16(pLocal_header + MZ_ZIP_LDH_EXTRA_LEN_OFS); - local_header_comp_size = MZ_READ_LE32(pLocal_header + MZ_ZIP_LDH_COMPRESSED_SIZE_OFS); - local_header_uncomp_size = MZ_READ_LE32(pLocal_header + MZ_ZIP_LDH_DECOMPRESSED_SIZE_OFS); - src_archive_bytes_remaining = local_header_filename_size + local_header_extra_len + src_file_stat.m_comp_size; - - /* Try to find a zip64 extended information field */ - if ((local_header_extra_len) && ((local_header_comp_size == MZ_UINT32_MAX) || (local_header_uncomp_size == MZ_UINT32_MAX))) - { - mz_zip_array file_data_array; - const mz_uint8 *pExtra_data; - mz_uint32 extra_size_remaining = local_header_extra_len; - - mz_zip_array_init(&file_data_array, 1); - if (!mz_zip_array_resize(pZip, &file_data_array, local_header_extra_len, MZ_FALSE)) - { - return mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED); - } - - if (pSource_zip->m_pRead(pSource_zip->m_pIO_opaque, src_file_stat.m_local_header_ofs + MZ_ZIP_LOCAL_DIR_HEADER_SIZE + local_header_filename_size, file_data_array.m_p, local_header_extra_len) != local_header_extra_len) - { - mz_zip_array_clear(pZip, &file_data_array); - return mz_zip_set_error(pZip, MZ_ZIP_FILE_READ_FAILED); - } - - pExtra_data = (const mz_uint8 *)file_data_array.m_p; - - do - { - mz_uint32 field_id, field_data_size, field_total_size; - - if (extra_size_remaining < (sizeof(mz_uint16) * 2)) - { - mz_zip_array_clear(pZip, &file_data_array); - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED); - } - - field_id = MZ_READ_LE16(pExtra_data); - field_data_size = MZ_READ_LE16(pExtra_data + sizeof(mz_uint16)); - field_total_size = field_data_size + sizeof(mz_uint16) * 2; - - if (field_total_size > extra_size_remaining) - { - mz_zip_array_clear(pZip, &file_data_array); - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED); - } - - if (field_id == MZ_ZIP64_EXTENDED_INFORMATION_FIELD_HEADER_ID) - { - const mz_uint8 *pSrc_field_data = pExtra_data + sizeof(mz_uint32); - - if (field_data_size < sizeof(mz_uint64) * 2) - { - mz_zip_array_clear(pZip, &file_data_array); - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_HEADER_OR_CORRUPTED); - } - - local_header_uncomp_size = MZ_READ_LE64(pSrc_field_data); - local_header_comp_size = MZ_READ_LE64(pSrc_field_data + sizeof(mz_uint64)); /* may be 0 if there's a descriptor */ - - found_zip64_ext_data_in_ldir = MZ_TRUE; - break; - } - - pExtra_data += field_total_size; - extra_size_remaining -= field_total_size; - } while (extra_size_remaining); - - mz_zip_array_clear(pZip, &file_data_array); - } - - if (!pState->m_zip64) - { - /* Try to detect if the new archive will most likely wind up too big and bail early (+(sizeof(mz_uint32) * 4) is for the optional descriptor which could be present, +64 is a fudge factor). */ - /* We also check when the archive is finalized so this doesn't need to be perfect. */ - mz_uint64 approx_new_archive_size = cur_dst_file_ofs + num_alignment_padding_bytes + MZ_ZIP_LOCAL_DIR_HEADER_SIZE + src_archive_bytes_remaining + (sizeof(mz_uint32) * 4) + - pState->m_central_dir.m_size + MZ_ZIP_CENTRAL_DIR_HEADER_SIZE + src_central_dir_following_data_size + MZ_ZIP_END_OF_CENTRAL_DIR_HEADER_SIZE + 64; - - if (approx_new_archive_size >= MZ_UINT32_MAX) - return mz_zip_set_error(pZip, MZ_ZIP_ARCHIVE_TOO_LARGE); - } - - /* Write dest archive padding */ - if (!mz_zip_writer_write_zeros(pZip, cur_dst_file_ofs, num_alignment_padding_bytes)) - return MZ_FALSE; - - cur_dst_file_ofs += num_alignment_padding_bytes; - - local_dir_header_ofs = cur_dst_file_ofs; - if (pZip->m_file_offset_alignment) - { - MZ_ASSERT((local_dir_header_ofs & (pZip->m_file_offset_alignment - 1)) == 0); - } - - /* The original zip's local header+ext block doesn't change, even with zip64, so we can just copy it over to the dest zip */ - if (pZip->m_pWrite(pZip->m_pIO_opaque, cur_dst_file_ofs, pLocal_header, MZ_ZIP_LOCAL_DIR_HEADER_SIZE) != MZ_ZIP_LOCAL_DIR_HEADER_SIZE) - return mz_zip_set_error(pZip, MZ_ZIP_FILE_WRITE_FAILED); - - cur_dst_file_ofs += MZ_ZIP_LOCAL_DIR_HEADER_SIZE; - - /* Copy over the source archive bytes to the dest archive, also ensure we have enough buf space to handle optional data descriptor */ - if (NULL == (pBuf = pZip->m_pAlloc(pZip->m_pAlloc_opaque, 1, (size_t)MZ_MAX(32U, MZ_MIN((mz_uint64)MZ_ZIP_MAX_IO_BUF_SIZE, src_archive_bytes_remaining))))) - return mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED); - - while (src_archive_bytes_remaining) - { - n = (mz_uint)MZ_MIN((mz_uint64)MZ_ZIP_MAX_IO_BUF_SIZE, src_archive_bytes_remaining); - if (pSource_zip->m_pRead(pSource_zip->m_pIO_opaque, cur_src_file_ofs, pBuf, n) != n) - { - pZip->m_pFree(pZip->m_pAlloc_opaque, pBuf); - return mz_zip_set_error(pZip, MZ_ZIP_FILE_READ_FAILED); - } - cur_src_file_ofs += n; - - if (pZip->m_pWrite(pZip->m_pIO_opaque, cur_dst_file_ofs, pBuf, n) != n) - { - pZip->m_pFree(pZip->m_pAlloc_opaque, pBuf); - return mz_zip_set_error(pZip, MZ_ZIP_FILE_WRITE_FAILED); - } - cur_dst_file_ofs += n; - - src_archive_bytes_remaining -= n; - } - - /* Now deal with the optional data descriptor */ - bit_flags = MZ_READ_LE16(pLocal_header + MZ_ZIP_LDH_BIT_FLAG_OFS); - if (bit_flags & 8) - { - /* Copy data descriptor */ - if ((pSource_zip->m_pState->m_zip64) || (found_zip64_ext_data_in_ldir)) - { - /* src is zip64, dest must be zip64 */ - - /* name uint32_t's */ - /* id 1 (optional in zip64?) */ - /* crc 1 */ - /* comp_size 2 */ - /* uncomp_size 2 */ - if (pSource_zip->m_pRead(pSource_zip->m_pIO_opaque, cur_src_file_ofs, pBuf, (sizeof(mz_uint32) * 6)) != (sizeof(mz_uint32) * 6)) - { - pZip->m_pFree(pZip->m_pAlloc_opaque, pBuf); - return mz_zip_set_error(pZip, MZ_ZIP_FILE_READ_FAILED); - } - - n = sizeof(mz_uint32) * ((MZ_READ_LE32(pBuf) == MZ_ZIP_DATA_DESCRIPTOR_ID) ? 6 : 5); - } - else - { - /* src is NOT zip64 */ - mz_bool has_id; - - if (pSource_zip->m_pRead(pSource_zip->m_pIO_opaque, cur_src_file_ofs, pBuf, sizeof(mz_uint32) * 4) != sizeof(mz_uint32) * 4) - { - pZip->m_pFree(pZip->m_pAlloc_opaque, pBuf); - return mz_zip_set_error(pZip, MZ_ZIP_FILE_READ_FAILED); - } - - has_id = (MZ_READ_LE32(pBuf) == MZ_ZIP_DATA_DESCRIPTOR_ID); - - if (pZip->m_pState->m_zip64) - { - /* dest is zip64, so upgrade the data descriptor */ - const mz_uint32 *pSrc_descriptor = (const mz_uint32 *)((const mz_uint8 *)pBuf + (has_id ? sizeof(mz_uint32) : 0)); - const mz_uint32 src_crc32 = pSrc_descriptor[0]; - const mz_uint64 src_comp_size = pSrc_descriptor[1]; - const mz_uint64 src_uncomp_size = pSrc_descriptor[2]; - - mz_write_le32((mz_uint8 *)pBuf, MZ_ZIP_DATA_DESCRIPTOR_ID); - mz_write_le32((mz_uint8 *)pBuf + sizeof(mz_uint32) * 1, src_crc32); - mz_write_le64((mz_uint8 *)pBuf + sizeof(mz_uint32) * 2, src_comp_size); - mz_write_le64((mz_uint8 *)pBuf + sizeof(mz_uint32) * 4, src_uncomp_size); - - n = sizeof(mz_uint32) * 6; - } - else - { - /* dest is NOT zip64, just copy it as-is */ - n = sizeof(mz_uint32) * (has_id ? 4 : 3); - } - } - - if (pZip->m_pWrite(pZip->m_pIO_opaque, cur_dst_file_ofs, pBuf, n) != n) - { - pZip->m_pFree(pZip->m_pAlloc_opaque, pBuf); - return mz_zip_set_error(pZip, MZ_ZIP_FILE_WRITE_FAILED); - } - - cur_src_file_ofs += n; - cur_dst_file_ofs += n; - } - pZip->m_pFree(pZip->m_pAlloc_opaque, pBuf); - - /* Finally, add the new central dir header */ - orig_central_dir_size = pState->m_central_dir.m_size; - - memcpy(new_central_header, pSrc_central_header, MZ_ZIP_CENTRAL_DIR_HEADER_SIZE); - - if (pState->m_zip64) - { - /* This is the painful part: We need to write a new central dir header + ext block with updated zip64 fields, and ensure the old fields (if any) are not included. */ - const mz_uint8 *pSrc_ext = pSrc_central_header + MZ_ZIP_CENTRAL_DIR_HEADER_SIZE + src_filename_len; - mz_zip_array new_ext_block; - - mz_zip_array_init(&new_ext_block, sizeof(mz_uint8)); - - MZ_WRITE_LE32(new_central_header + MZ_ZIP_CDH_COMPRESSED_SIZE_OFS, MZ_UINT32_MAX); - MZ_WRITE_LE32(new_central_header + MZ_ZIP_CDH_DECOMPRESSED_SIZE_OFS, MZ_UINT32_MAX); - MZ_WRITE_LE32(new_central_header + MZ_ZIP_CDH_LOCAL_HEADER_OFS, MZ_UINT32_MAX); - - if (!mz_zip_writer_update_zip64_extension_block(&new_ext_block, pZip, pSrc_ext, src_ext_len, &src_file_stat.m_comp_size, &src_file_stat.m_uncomp_size, &local_dir_header_ofs, NULL)) - { - mz_zip_array_clear(pZip, &new_ext_block); - return MZ_FALSE; - } - - MZ_WRITE_LE16(new_central_header + MZ_ZIP_CDH_EXTRA_LEN_OFS, new_ext_block.m_size); - - if (!mz_zip_array_push_back(pZip, &pState->m_central_dir, new_central_header, MZ_ZIP_CENTRAL_DIR_HEADER_SIZE)) - { - mz_zip_array_clear(pZip, &new_ext_block); - return mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED); - } - - if (!mz_zip_array_push_back(pZip, &pState->m_central_dir, pSrc_central_header + MZ_ZIP_CENTRAL_DIR_HEADER_SIZE, src_filename_len)) - { - mz_zip_array_clear(pZip, &new_ext_block); - mz_zip_array_resize(pZip, &pState->m_central_dir, orig_central_dir_size, MZ_FALSE); - return mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED); - } - - if (!mz_zip_array_push_back(pZip, &pState->m_central_dir, new_ext_block.m_p, new_ext_block.m_size)) - { - mz_zip_array_clear(pZip, &new_ext_block); - mz_zip_array_resize(pZip, &pState->m_central_dir, orig_central_dir_size, MZ_FALSE); - return mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED); - } - - if (!mz_zip_array_push_back(pZip, &pState->m_central_dir, pSrc_central_header + MZ_ZIP_CENTRAL_DIR_HEADER_SIZE + src_filename_len + src_ext_len, src_comment_len)) - { - mz_zip_array_clear(pZip, &new_ext_block); - mz_zip_array_resize(pZip, &pState->m_central_dir, orig_central_dir_size, MZ_FALSE); - return mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED); - } - - mz_zip_array_clear(pZip, &new_ext_block); - } - else - { - /* sanity checks */ - if (cur_dst_file_ofs > MZ_UINT32_MAX) - return mz_zip_set_error(pZip, MZ_ZIP_ARCHIVE_TOO_LARGE); - - if (local_dir_header_ofs >= MZ_UINT32_MAX) - return mz_zip_set_error(pZip, MZ_ZIP_ARCHIVE_TOO_LARGE); - - MZ_WRITE_LE32(new_central_header + MZ_ZIP_CDH_LOCAL_HEADER_OFS, local_dir_header_ofs); - - if (!mz_zip_array_push_back(pZip, &pState->m_central_dir, new_central_header, MZ_ZIP_CENTRAL_DIR_HEADER_SIZE)) - return mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED); - - if (!mz_zip_array_push_back(pZip, &pState->m_central_dir, pSrc_central_header + MZ_ZIP_CENTRAL_DIR_HEADER_SIZE, src_central_dir_following_data_size)) - { - mz_zip_array_resize(pZip, &pState->m_central_dir, orig_central_dir_size, MZ_FALSE); - return mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED); - } - } - - /* This shouldn't trigger unless we screwed up during the initial sanity checks */ - if (pState->m_central_dir.m_size >= MZ_UINT32_MAX) - { - /* TODO: Support central dirs >= 32-bits in size */ - mz_zip_array_resize(pZip, &pState->m_central_dir, orig_central_dir_size, MZ_FALSE); - return mz_zip_set_error(pZip, MZ_ZIP_UNSUPPORTED_CDIR_SIZE); - } - - n = (mz_uint32)orig_central_dir_size; - if (!mz_zip_array_push_back(pZip, &pState->m_central_dir_offsets, &n, 1)) - { - mz_zip_array_resize(pZip, &pState->m_central_dir, orig_central_dir_size, MZ_FALSE); - return mz_zip_set_error(pZip, MZ_ZIP_ALLOC_FAILED); - } - - pZip->m_total_files++; - pZip->m_archive_size = cur_dst_file_ofs; - - return MZ_TRUE; -} - -mz_bool mz_zip_writer_finalize_archive(mz_zip_archive *pZip) -{ - mz_zip_internal_state *pState; - mz_uint64 central_dir_ofs, central_dir_size; - mz_uint8 hdr[256]; - - if ((!pZip) || (!pZip->m_pState) || (pZip->m_zip_mode != MZ_ZIP_MODE_WRITING)) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER); - - pState = pZip->m_pState; - - if (pState->m_zip64) - { - if ((pZip->m_total_files > MZ_UINT32_MAX) || (pState->m_central_dir.m_size >= MZ_UINT32_MAX)) - return mz_zip_set_error(pZip, MZ_ZIP_TOO_MANY_FILES); - } - else - { - if ((pZip->m_total_files > MZ_UINT16_MAX) || ((pZip->m_archive_size + pState->m_central_dir.m_size + MZ_ZIP_END_OF_CENTRAL_DIR_HEADER_SIZE) > MZ_UINT32_MAX)) - return mz_zip_set_error(pZip, MZ_ZIP_TOO_MANY_FILES); - } - - central_dir_ofs = 0; - central_dir_size = 0; - if (pZip->m_total_files) - { - /* Write central directory */ - central_dir_ofs = pZip->m_archive_size; - central_dir_size = pState->m_central_dir.m_size; - pZip->m_central_directory_file_ofs = central_dir_ofs; - if (pZip->m_pWrite(pZip->m_pIO_opaque, central_dir_ofs, pState->m_central_dir.m_p, (size_t)central_dir_size) != central_dir_size) - return mz_zip_set_error(pZip, MZ_ZIP_FILE_WRITE_FAILED); - - pZip->m_archive_size += central_dir_size; - } - - if (pState->m_zip64) - { - /* Write zip64 end of central directory header */ - mz_uint64 rel_ofs_to_zip64_ecdr = pZip->m_archive_size; - - MZ_CLEAR_OBJ(hdr); - MZ_WRITE_LE32(hdr + MZ_ZIP64_ECDH_SIG_OFS, MZ_ZIP64_END_OF_CENTRAL_DIR_HEADER_SIG); - MZ_WRITE_LE64(hdr + MZ_ZIP64_ECDH_SIZE_OF_RECORD_OFS, MZ_ZIP64_END_OF_CENTRAL_DIR_HEADER_SIZE - sizeof(mz_uint32) - sizeof(mz_uint64)); - MZ_WRITE_LE16(hdr + MZ_ZIP64_ECDH_VERSION_MADE_BY_OFS, 0x031E); /* TODO: always Unix */ - MZ_WRITE_LE16(hdr + MZ_ZIP64_ECDH_VERSION_NEEDED_OFS, 0x002D); - MZ_WRITE_LE64(hdr + MZ_ZIP64_ECDH_CDIR_NUM_ENTRIES_ON_DISK_OFS, pZip->m_total_files); - MZ_WRITE_LE64(hdr + MZ_ZIP64_ECDH_CDIR_TOTAL_ENTRIES_OFS, pZip->m_total_files); - MZ_WRITE_LE64(hdr + MZ_ZIP64_ECDH_CDIR_SIZE_OFS, central_dir_size); - MZ_WRITE_LE64(hdr + MZ_ZIP64_ECDH_CDIR_OFS_OFS, central_dir_ofs); - if (pZip->m_pWrite(pZip->m_pIO_opaque, pZip->m_archive_size, hdr, MZ_ZIP64_END_OF_CENTRAL_DIR_HEADER_SIZE) != MZ_ZIP64_END_OF_CENTRAL_DIR_HEADER_SIZE) - return mz_zip_set_error(pZip, MZ_ZIP_FILE_WRITE_FAILED); - - pZip->m_archive_size += MZ_ZIP64_END_OF_CENTRAL_DIR_HEADER_SIZE; - - /* Write zip64 end of central directory locator */ - MZ_CLEAR_OBJ(hdr); - MZ_WRITE_LE32(hdr + MZ_ZIP64_ECDL_SIG_OFS, MZ_ZIP64_END_OF_CENTRAL_DIR_LOCATOR_SIG); - MZ_WRITE_LE64(hdr + MZ_ZIP64_ECDL_REL_OFS_TO_ZIP64_ECDR_OFS, rel_ofs_to_zip64_ecdr); - MZ_WRITE_LE32(hdr + MZ_ZIP64_ECDL_TOTAL_NUMBER_OF_DISKS_OFS, 1); - if (pZip->m_pWrite(pZip->m_pIO_opaque, pZip->m_archive_size, hdr, MZ_ZIP64_END_OF_CENTRAL_DIR_LOCATOR_SIZE) != MZ_ZIP64_END_OF_CENTRAL_DIR_LOCATOR_SIZE) - return mz_zip_set_error(pZip, MZ_ZIP_FILE_WRITE_FAILED); - - pZip->m_archive_size += MZ_ZIP64_END_OF_CENTRAL_DIR_LOCATOR_SIZE; - } - - /* Write end of central directory record */ - MZ_CLEAR_OBJ(hdr); - MZ_WRITE_LE32(hdr + MZ_ZIP_ECDH_SIG_OFS, MZ_ZIP_END_OF_CENTRAL_DIR_HEADER_SIG); - MZ_WRITE_LE16(hdr + MZ_ZIP_ECDH_CDIR_NUM_ENTRIES_ON_DISK_OFS, MZ_MIN(MZ_UINT16_MAX, pZip->m_total_files)); - MZ_WRITE_LE16(hdr + MZ_ZIP_ECDH_CDIR_TOTAL_ENTRIES_OFS, MZ_MIN(MZ_UINT16_MAX, pZip->m_total_files)); - MZ_WRITE_LE32(hdr + MZ_ZIP_ECDH_CDIR_SIZE_OFS, MZ_MIN(MZ_UINT32_MAX, central_dir_size)); - MZ_WRITE_LE32(hdr + MZ_ZIP_ECDH_CDIR_OFS_OFS, MZ_MIN(MZ_UINT32_MAX, central_dir_ofs)); - - if (pZip->m_pWrite(pZip->m_pIO_opaque, pZip->m_archive_size, hdr, MZ_ZIP_END_OF_CENTRAL_DIR_HEADER_SIZE) != MZ_ZIP_END_OF_CENTRAL_DIR_HEADER_SIZE) - return mz_zip_set_error(pZip, MZ_ZIP_FILE_WRITE_FAILED); - -#ifndef MINIZ_NO_STDIO - if ((pState->m_pFile) && (MZ_FFLUSH(pState->m_pFile) == EOF)) - return mz_zip_set_error(pZip, MZ_ZIP_FILE_CLOSE_FAILED); -#endif /* #ifndef MINIZ_NO_STDIO */ - - pZip->m_archive_size += MZ_ZIP_END_OF_CENTRAL_DIR_HEADER_SIZE; - - pZip->m_zip_mode = MZ_ZIP_MODE_WRITING_HAS_BEEN_FINALIZED; - return MZ_TRUE; -} - -mz_bool mz_zip_writer_finalize_heap_archive(mz_zip_archive *pZip, void **ppBuf, size_t *pSize) -{ - if ((!ppBuf) || (!pSize)) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER); - - *ppBuf = NULL; - *pSize = 0; - - if ((!pZip) || (!pZip->m_pState)) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER); - - if (pZip->m_pWrite != mz_zip_heap_write_func) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER); - - if (!mz_zip_writer_finalize_archive(pZip)) - return MZ_FALSE; - - *ppBuf = pZip->m_pState->m_pMem; - *pSize = pZip->m_pState->m_mem_size; - pZip->m_pState->m_pMem = NULL; - pZip->m_pState->m_mem_size = pZip->m_pState->m_mem_capacity = 0; - - return MZ_TRUE; -} - -mz_bool mz_zip_writer_end(mz_zip_archive *pZip) -{ - return mz_zip_writer_end_internal(pZip, MZ_TRUE); -} - -#ifndef MINIZ_NO_STDIO -mz_bool mz_zip_add_mem_to_archive_file_in_place(const char *pZip_filename, const char *pArchive_name, const void *pBuf, size_t buf_size, const void *pComment, mz_uint16 comment_size, mz_uint level_and_flags) -{ - return mz_zip_add_mem_to_archive_file_in_place_v2(pZip_filename, pArchive_name, pBuf, buf_size, pComment, comment_size, level_and_flags, NULL); -} - -mz_bool mz_zip_add_mem_to_archive_file_in_place_v2(const char *pZip_filename, const char *pArchive_name, const void *pBuf, size_t buf_size, const void *pComment, mz_uint16 comment_size, mz_uint level_and_flags, mz_zip_error *pErr) -{ - mz_bool status, created_new_archive = MZ_FALSE; - mz_zip_archive zip_archive; - struct MZ_FILE_STAT_STRUCT file_stat; - mz_zip_error actual_err = MZ_ZIP_NO_ERROR; - - mz_zip_zero_struct(&zip_archive); - if ((int)level_and_flags < 0) - level_and_flags = MZ_DEFAULT_LEVEL; - - if ((!pZip_filename) || (!pArchive_name) || ((buf_size) && (!pBuf)) || ((comment_size) && (!pComment)) || ((level_and_flags & 0xF) > MZ_UBER_COMPRESSION)) - { - if (pErr) - *pErr = MZ_ZIP_INVALID_PARAMETER; - return MZ_FALSE; - } - - if (!mz_zip_writer_validate_archive_name(pArchive_name)) - { - if (pErr) - *pErr = MZ_ZIP_INVALID_FILENAME; - return MZ_FALSE; - } - - /* Important: The regular non-64 bit version of stat() can fail here if the file is very large, which could cause the archive to be overwritten. */ - /* So be sure to compile with _LARGEFILE64_SOURCE 1 */ - if (MZ_FILE_STAT(pZip_filename, &file_stat) != 0) - { - /* Create a new archive. */ - if (!mz_zip_writer_init_file_v2(&zip_archive, pZip_filename, 0, level_and_flags)) - { - if (pErr) - *pErr = zip_archive.m_last_error; - return MZ_FALSE; - } - - created_new_archive = MZ_TRUE; - } - else - { - /* Append to an existing archive. */ - if (!mz_zip_reader_init_file_v2(&zip_archive, pZip_filename, level_and_flags | MZ_ZIP_FLAG_DO_NOT_SORT_CENTRAL_DIRECTORY, 0, 0)) - { - if (pErr) - *pErr = zip_archive.m_last_error; - return MZ_FALSE; - } - - if (!mz_zip_writer_init_from_reader_v2(&zip_archive, pZip_filename, level_and_flags)) - { - if (pErr) - *pErr = zip_archive.m_last_error; - - mz_zip_reader_end_internal(&zip_archive, MZ_FALSE); - - return MZ_FALSE; - } - } - - status = mz_zip_writer_add_mem_ex(&zip_archive, pArchive_name, pBuf, buf_size, pComment, comment_size, level_and_flags, 0, 0); - actual_err = zip_archive.m_last_error; - - /* Always finalize, even if adding failed for some reason, so we have a valid central directory. (This may not always succeed, but we can try.) */ - if (!mz_zip_writer_finalize_archive(&zip_archive)) - { - if (!actual_err) - actual_err = zip_archive.m_last_error; - - status = MZ_FALSE; - } - - if (!mz_zip_writer_end_internal(&zip_archive, status)) - { - if (!actual_err) - actual_err = zip_archive.m_last_error; - - status = MZ_FALSE; - } - - if ((!status) && (created_new_archive)) - { - /* It's a new archive and something went wrong, so just delete it. */ - int ignoredStatus = MZ_DELETE_FILE(pZip_filename); - (void)ignoredStatus; - } - - if (pErr) - *pErr = actual_err; - - return status; -} - -void *mz_zip_extract_archive_file_to_heap_v2(const char *pZip_filename, const char *pArchive_name, const char *pComment, size_t *pSize, mz_uint flags, mz_zip_error *pErr) -{ - mz_uint32 file_index; - mz_zip_archive zip_archive; - void *p = NULL; - - if (pSize) - *pSize = 0; - - if ((!pZip_filename) || (!pArchive_name)) - { - if (pErr) - *pErr = MZ_ZIP_INVALID_PARAMETER; - - return NULL; - } - - mz_zip_zero_struct(&zip_archive); - if (!mz_zip_reader_init_file_v2(&zip_archive, pZip_filename, flags | MZ_ZIP_FLAG_DO_NOT_SORT_CENTRAL_DIRECTORY, 0, 0)) - { - if (pErr) - *pErr = zip_archive.m_last_error; - - return NULL; - } - - if (mz_zip_reader_locate_file_v2(&zip_archive, pArchive_name, pComment, flags, &file_index)) - { - p = mz_zip_reader_extract_to_heap(&zip_archive, file_index, pSize, flags); - } - - mz_zip_reader_end_internal(&zip_archive, p != NULL); - - if (pErr) - *pErr = zip_archive.m_last_error; - - return p; -} - -void *mz_zip_extract_archive_file_to_heap(const char *pZip_filename, const char *pArchive_name, size_t *pSize, mz_uint flags) -{ - return mz_zip_extract_archive_file_to_heap_v2(pZip_filename, pArchive_name, NULL, pSize, flags, NULL); -} - -#endif /* #ifndef MINIZ_NO_STDIO */ - -#endif /* #ifndef MINIZ_NO_ARCHIVE_WRITING_APIS */ - -/* ------------------- Misc utils */ - -mz_zip_mode mz_zip_get_mode(mz_zip_archive *pZip) -{ - return pZip ? pZip->m_zip_mode : MZ_ZIP_MODE_INVALID; -} - -mz_zip_type mz_zip_get_type(mz_zip_archive *pZip) -{ - return pZip ? pZip->m_zip_type : MZ_ZIP_TYPE_INVALID; -} - -mz_zip_error mz_zip_set_last_error(mz_zip_archive *pZip, mz_zip_error err_num) -{ - mz_zip_error prev_err; - - if (!pZip) - return MZ_ZIP_INVALID_PARAMETER; - - prev_err = pZip->m_last_error; - - pZip->m_last_error = err_num; - return prev_err; -} - -mz_zip_error mz_zip_peek_last_error(mz_zip_archive *pZip) -{ - if (!pZip) - return MZ_ZIP_INVALID_PARAMETER; - - return pZip->m_last_error; -} - -mz_zip_error mz_zip_clear_last_error(mz_zip_archive *pZip) -{ - return mz_zip_set_last_error(pZip, MZ_ZIP_NO_ERROR); -} - -mz_zip_error mz_zip_get_last_error(mz_zip_archive *pZip) -{ - mz_zip_error prev_err; - - if (!pZip) - return MZ_ZIP_INVALID_PARAMETER; - - prev_err = pZip->m_last_error; - - pZip->m_last_error = MZ_ZIP_NO_ERROR; - return prev_err; -} - -const char *mz_zip_get_error_string(mz_zip_error mz_err) -{ - switch (mz_err) - { - case MZ_ZIP_NO_ERROR: - return "no error"; - case MZ_ZIP_UNDEFINED_ERROR: - return "undefined error"; - case MZ_ZIP_TOO_MANY_FILES: - return "too many files"; - case MZ_ZIP_FILE_TOO_LARGE: - return "file too large"; - case MZ_ZIP_UNSUPPORTED_METHOD: - return "unsupported method"; - case MZ_ZIP_UNSUPPORTED_ENCRYPTION: - return "unsupported encryption"; - case MZ_ZIP_UNSUPPORTED_FEATURE: - return "unsupported feature"; - case MZ_ZIP_FAILED_FINDING_CENTRAL_DIR: - return "failed finding central directory"; - case MZ_ZIP_NOT_AN_ARCHIVE: - return "not a ZIP archive"; - case MZ_ZIP_INVALID_HEADER_OR_CORRUPTED: - return "invalid header or archive is corrupted"; - case MZ_ZIP_UNSUPPORTED_MULTIDISK: - return "unsupported multidisk archive"; - case MZ_ZIP_DECOMPRESSION_FAILED: - return "decompression failed or archive is corrupted"; - case MZ_ZIP_COMPRESSION_FAILED: - return "compression failed"; - case MZ_ZIP_UNEXPECTED_DECOMPRESSED_SIZE: - return "unexpected decompressed size"; - case MZ_ZIP_CRC_CHECK_FAILED: - return "CRC-32 check failed"; - case MZ_ZIP_UNSUPPORTED_CDIR_SIZE: - return "unsupported central directory size"; - case MZ_ZIP_ALLOC_FAILED: - return "allocation failed"; - case MZ_ZIP_FILE_OPEN_FAILED: - return "file open failed"; - case MZ_ZIP_FILE_CREATE_FAILED: - return "file create failed"; - case MZ_ZIP_FILE_WRITE_FAILED: - return "file write failed"; - case MZ_ZIP_FILE_READ_FAILED: - return "file read failed"; - case MZ_ZIP_FILE_CLOSE_FAILED: - return "file close failed"; - case MZ_ZIP_FILE_SEEK_FAILED: - return "file seek failed"; - case MZ_ZIP_FILE_STAT_FAILED: - return "file stat failed"; - case MZ_ZIP_INVALID_PARAMETER: - return "invalid parameter"; - case MZ_ZIP_INVALID_FILENAME: - return "invalid filename"; - case MZ_ZIP_BUF_TOO_SMALL: - return "buffer too small"; - case MZ_ZIP_INTERNAL_ERROR: - return "internal error"; - case MZ_ZIP_FILE_NOT_FOUND: - return "file not found"; - case MZ_ZIP_ARCHIVE_TOO_LARGE: - return "archive is too large"; - case MZ_ZIP_VALIDATION_FAILED: - return "validation failed"; - case MZ_ZIP_WRITE_CALLBACK_FAILED: - return "write calledback failed"; - default: - break; - } - - return "unknown error"; -} - -/* Note: Just because the archive is not zip64 doesn't necessarily mean it doesn't have Zip64 extended information extra field, argh. */ -mz_bool mz_zip_is_zip64(mz_zip_archive *pZip) -{ - if ((!pZip) || (!pZip->m_pState)) - return MZ_FALSE; - - return pZip->m_pState->m_zip64; -} - -size_t mz_zip_get_central_dir_size(mz_zip_archive *pZip) -{ - if ((!pZip) || (!pZip->m_pState)) - return 0; - - return pZip->m_pState->m_central_dir.m_size; -} - -mz_uint mz_zip_reader_get_num_files(mz_zip_archive *pZip) -{ - return pZip ? pZip->m_total_files : 0; -} - -mz_uint64 mz_zip_get_archive_size(mz_zip_archive *pZip) -{ - if (!pZip) - return 0; - return pZip->m_archive_size; -} - -mz_uint64 mz_zip_get_archive_file_start_offset(mz_zip_archive *pZip) -{ - if ((!pZip) || (!pZip->m_pState)) - return 0; - return pZip->m_pState->m_file_archive_start_ofs; -} - -MZ_FILE *mz_zip_get_cfile(mz_zip_archive *pZip) -{ - if ((!pZip) || (!pZip->m_pState)) - return 0; - return pZip->m_pState->m_pFile; -} - -size_t mz_zip_read_archive_data(mz_zip_archive *pZip, mz_uint64 file_ofs, void *pBuf, size_t n) -{ - if ((!pZip) || (!pZip->m_pState) || (!pBuf) || (!pZip->m_pRead)) - return mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER); - - return pZip->m_pRead(pZip->m_pIO_opaque, file_ofs, pBuf, n); -} - -mz_uint mz_zip_reader_get_filename(mz_zip_archive *pZip, mz_uint file_index, char *pFilename, mz_uint filename_buf_size) -{ - mz_uint n; - const mz_uint8 *p = mz_zip_get_cdh(pZip, file_index); - if (!p) - { - if (filename_buf_size) - pFilename[0] = '\0'; - mz_zip_set_error(pZip, MZ_ZIP_INVALID_PARAMETER); - return 0; - } - n = MZ_READ_LE16(p + MZ_ZIP_CDH_FILENAME_LEN_OFS); - if (filename_buf_size) - { - n = MZ_MIN(n, filename_buf_size - 1); - memcpy(pFilename, p + MZ_ZIP_CENTRAL_DIR_HEADER_SIZE, n); - pFilename[n] = '\0'; - } - return n + 1; -} - -mz_bool mz_zip_reader_file_stat(mz_zip_archive *pZip, mz_uint file_index, mz_zip_archive_file_stat *pStat) -{ - return mz_zip_file_stat_internal(pZip, file_index, mz_zip_get_cdh(pZip, file_index), pStat, NULL); -} - -mz_bool mz_zip_end(mz_zip_archive *pZip) -{ - if (!pZip) - return MZ_FALSE; - - if (pZip->m_zip_mode == MZ_ZIP_MODE_READING) - return mz_zip_reader_end(pZip); -#ifndef MINIZ_NO_ARCHIVE_WRITING_APIS - else if ((pZip->m_zip_mode == MZ_ZIP_MODE_WRITING) || (pZip->m_zip_mode == MZ_ZIP_MODE_WRITING_HAS_BEEN_FINALIZED)) - return mz_zip_writer_end(pZip); -#endif - - return MZ_FALSE; -} - -#ifdef __cplusplus -} -#endif - -#endif /*#ifndef MINIZ_NO_ARCHIVE_APIS*/ diff --git a/flasher_stub/run_tests_with_stub.sh b/flasher_stub/run_tests_with_stub.sh deleted file mode 100755 index bb1b07a49..000000000 --- a/flasher_stub/run_tests_with_stub.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh -# -# Run "pytest test/test_esptool.py" using the newly compiled stub, for quick tests -# -# Usage same as "pytest test/test_esptool.py --port --chip --baud " - -THISDIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) - -export ESPTOOL_PY="${THISDIR}/esptool_test_stub.py" -pytest ${THISDIR}/../test/test_esptool.py $@ diff --git a/flasher_stub/slip.c b/flasher_stub/slip.c deleted file mode 100644 index ddd8f265e..000000000 --- a/flasher_stub/slip.c +++ /dev/null @@ -1,94 +0,0 @@ -/* - * SPDX-FileCopyrightText: 2016 Cesanta Software Limited - * - * SPDX-License-Identifier: GPL-2.0-or-later - * - * SPDX-FileContributor: 2016-2022 Espressif Systems (Shanghai) CO LTD - */ - -#include -#include "slip.h" -#include "stub_io.h" - -void SLIP_send_frame_delimiter(void) { - stub_tx_one_char('\xc0'); -} - -void SLIP_send_frame_data(char ch) { - if(ch == '\xc0') { - stub_tx_one_char('\xdb'); - stub_tx_one_char('\xdc'); - } else if (ch == '\xdb') { - stub_tx_one_char('\xdb'); - stub_tx_one_char('\xdd'); - } else { - stub_tx_one_char(ch); - } -} - -void SLIP_send_frame_data_buf(const void *buf, uint32_t size) { - const uint8_t *buf_c = (const uint8_t *)buf; - for(int i = 0; i < size; i++) { - SLIP_send_frame_data(buf_c[i]); - } -} - -void SLIP_send(const void *pkt, uint32_t size) { - SLIP_send_frame_delimiter(); - SLIP_send_frame_data_buf(pkt, size); - SLIP_send_frame_delimiter(); -} - -int16_t SLIP_recv_byte(char byte, slip_state_t *state) -{ - if (byte == '\xc0') { - if (*state == SLIP_NO_FRAME) { - *state = SLIP_FRAME; - return SLIP_NO_BYTE; - } else { - *state = SLIP_NO_FRAME; - return SLIP_FINISHED_FRAME; - } - } - - switch(*state) { - case SLIP_NO_FRAME: - return SLIP_NO_BYTE; - case SLIP_FRAME: - if (byte == '\xdb') { - *state = SLIP_FRAME_ESCAPING; - return SLIP_NO_BYTE; - } - return byte; - case SLIP_FRAME_ESCAPING: - if (byte == '\xdc') { - *state = SLIP_FRAME; - return '\xc0'; - } - if (byte == '\xdd') { - *state = SLIP_FRAME; - return '\xdb'; - } - return SLIP_NO_BYTE; /* actually a framing error */ - } - return SLIP_NO_BYTE; /* actually a framing error */ -} - -/* This function is needed for the synchornous I/O case, - * which is only flash_read command at the moment. - */ -uint32_t SLIP_recv(void *pkt, uint32_t max_len) { - uint32_t len = 0; - slip_state_t state = SLIP_NO_FRAME; - uint8_t *p = (uint8_t *) pkt; - - int16_t r; - do { - r = SLIP_recv_byte(stub_rx_one_char(), &state); - if(r >= 0 && len < max_len) { - p[len++] = (uint8_t)r; - } - } while(r != SLIP_FINISHED_FRAME); - - return len; -} diff --git a/flasher_stub/stub_commands.c b/flasher_stub/stub_commands.c deleted file mode 100644 index f2b658245..000000000 --- a/flasher_stub/stub_commands.c +++ /dev/null @@ -1,279 +0,0 @@ -/* - * SPDX-FileCopyrightText: 2019-2022 Espressif Systems (Shanghai) CO LTD - * - * SPDX-License-Identifier: GPL-2.0-or-later - */ - -#include -#include "stub_commands.h" -#include "stub_flasher.h" -#include "rom_functions.h" -#include "slip.h" -#include "soc_support.h" -#include "stub_io.h" - -#if defined(ESP32S3) && !defined(ESP32S3BETA2) -static esp_rom_spiflash_result_t SPIRead4B(int spi_num, uint32_t flash_addr, uint8_t* buf, int len) -{ - uint8_t cmd_len = 8; - - esp_rom_opiflash_wait_idle(); - while (len > 0) { - int rd_length; - if (len > 16 ) { //16 = read_sub_len - rd_length = 16; - } else { - rd_length = len; - } - esp_rom_opiflash_exec_cmd(spi_num, SPI_FLASH_FASTRD_MODE, - CMD_FSTRD4B, cmd_len, - flash_addr, 32, - 8, - NULL, 0, - buf, 8 * rd_length, - ESP_ROM_OPIFLASH_SEL_CS0, - false); - - len -= rd_length; - buf += rd_length; - flash_addr += rd_length; - } - return ESP_ROM_SPIFLASH_RESULT_OK; -} -#endif // ESP32S3 - -int handle_flash_erase(uint32_t addr, uint32_t len) { - if (addr % FLASH_SECTOR_SIZE != 0) return 0x32; - if (len % FLASH_SECTOR_SIZE != 0) return 0x33; - if (SPIUnlock() != 0) return 0x34; - - while (len > 0 && (addr % FLASH_BLOCK_SIZE != 0)) { - #if defined(ESP32S3) && !defined(ESP32S3BETA2) - if (large_flash_mode) { - if (esp_rom_opiflash_erase_sector(addr / FLASH_SECTOR_SIZE) != 0) return 0x35; - } else { - if (SPIEraseSector(addr / FLASH_SECTOR_SIZE) != 0) return 0x35; - } - #else - if (SPIEraseSector(addr / FLASH_SECTOR_SIZE) != 0) return 0x35; - #endif // ESP32S3 - len -= FLASH_SECTOR_SIZE; - addr += FLASH_SECTOR_SIZE; - } - - while (len > FLASH_BLOCK_SIZE) { - #if defined(ESP32S3) && !defined(ESP32S3BETA2) - if (large_flash_mode) { - if (esp_rom_opiflash_erase_block_64k(addr / FLASH_BLOCK_SIZE) != 0) return 0x36; - } else { - if (SPIEraseBlock(addr / FLASH_BLOCK_SIZE) != 0) return 0x36; - } - #else - if (SPIEraseBlock(addr / FLASH_BLOCK_SIZE) != 0) return 0x36; - #endif // ESP32S3 - len -= FLASH_BLOCK_SIZE; - addr += FLASH_BLOCK_SIZE; - } - - while (len > 0) { - #if defined(ESP32S3) && !defined(ESP32S3BETA2) - if (large_flash_mode) { - if (esp_rom_opiflash_erase_sector(addr / FLASH_SECTOR_SIZE) != 0) return 0x37; - } else { - if (SPIEraseSector(addr / FLASH_SECTOR_SIZE) != 0) return 0x37; - } - #else - if (SPIEraseSector(addr / FLASH_SECTOR_SIZE) != 0) return 0x37; - #endif // ESP32S3 - len -= FLASH_SECTOR_SIZE; - addr += FLASH_SECTOR_SIZE; - } - - return 0; -} - -void handle_flash_read(uint32_t addr, uint32_t len, uint32_t block_size, - uint32_t max_in_flight) { - uint8_t buf[FLASH_SECTOR_SIZE]; - uint8_t digest[16]; - struct MD5Context ctx; - uint32_t num_sent = 0, num_acked = 0; - uint8_t res = 0; - - /* This is one routine where we still do synchronous I/O */ - stub_rx_async_enable(false); - - if (block_size > sizeof(buf)) { - return; - } - MD5Init(&ctx); - while (num_acked < len && num_acked <= num_sent) { - while (num_sent < len && num_sent - num_acked < max_in_flight) { - uint32_t n = len - num_sent; - if (n > block_size) n = block_size; - #if defined(ESP32S3) && !defined(ESP32S3BETA2) - if (large_flash_mode) { - res = SPIRead4B(1, addr, buf, n); - } else { - res = SPIRead(addr, (uint32_t *)buf, n); - } - #else - res = SPIRead(addr, (uint32_t *)buf, n); - #endif // ESP32S3 - if (res != 0) { - break; - } - SLIP_send(buf, n); - MD5Update(&ctx, buf, n); - addr += n; - num_sent += n; - } - int r = SLIP_recv(&num_acked, sizeof(num_acked)); - if (r != 4) { - break; - } - } - MD5Final(digest, &ctx); - SLIP_send(digest, sizeof(digest)); - - /* Go back to async RX */ - stub_rx_async_enable(true); -} - -int handle_flash_get_md5sum(uint32_t addr, uint32_t len) { - uint8_t buf[FLASH_SECTOR_SIZE]; - uint8_t digest[16]; - uint8_t res = 0; - struct MD5Context ctx; - MD5Init(&ctx); - while (len > 0) { - uint32_t n = len; - if (n > FLASH_SECTOR_SIZE) { - n = FLASH_SECTOR_SIZE; - } - #if defined(ESP32S3) && !defined(ESP32S3BETA2) - if (large_flash_mode) { - res = SPIRead4B(1, addr, buf, n); - } else { - res = SPIRead(addr, (uint32_t *)buf, n); - } - #else - res = SPIRead(addr, (uint32_t *)buf, n); - #endif // ESP32S3 - if (res != 0) { - return 0x63; - } - MD5Update(&ctx, buf, n); - addr += n; - len -= n; - } - MD5Final(digest, &ctx); - /* ESP32 ROM sends as hex, but we just send raw bytes - esptool.py can handle either. */ - SLIP_send_frame_data_buf(digest, sizeof(digest)); - return 0; -} - -esp_command_error handle_spi_set_params(uint32_t *args, int *status) -{ - *status = SPIParamCfg(args[0], args[1], args[2], args[3], args[4], args[5]); - return *status ? ESP_FAILED_SPI_OP : ESP_OK; -} - -esp_command_error handle_spi_attach(uint32_t hspi_config_arg) -{ -#ifdef ESP8266 - /* ESP8266 doesn't yet support SPI flash on HSPI, but could: - see https://github.com/themadinventor/esptool/issues/98 */ - SelectSpiFunction(); -#else - /* Stub calls spi_flash_attach automatically when it boots, - therefore, we need to "unattach" the flash before attaching again - with different configuration to avoid issues. */ - - // Configure the SPI flash pins back as classic GPIOs - PIN_FUNC_SELECT(PERIPHS_IO_MUX_SPICLK_U, FUNC_GPIO); - PIN_FUNC_SELECT(PERIPHS_IO_MUX_SPIQ_U, FUNC_GPIO); - PIN_FUNC_SELECT(PERIPHS_IO_MUX_SPID_U, FUNC_GPIO); - PIN_FUNC_SELECT(PERIPHS_IO_MUX_SPICS0_U, FUNC_GPIO); - - /* spi_flash_attach calls SelectSpiFunction() and another - function to initialise SPI flash interface. - - Second argument 'legacy' mode is not currently supported. - */ - spi_flash_attach(hspi_config_arg, 0); -#endif - return ESP_OK; /* neither function/attach command takes an arg */ -} - -static uint32_t *mem_offset; -static uint32_t mem_remaining; - -esp_command_error handle_mem_begin(uint32_t size, uint32_t offset) -{ - mem_offset = (uint32_t *)offset; - mem_remaining = size; - return ESP_OK; -} - -esp_command_error handle_mem_data(void *data, uint32_t length) -{ - uint32_t *data_words = (uint32_t *)data; - if (mem_offset == NULL && length > 0) { - return ESP_NOT_IN_FLASH_MODE; - } - if (length > mem_remaining) { - return ESP_TOO_MUCH_DATA; - } - if (length % 4 != 0) { - return ESP_BAD_DATA_LEN; - } - - for(int i = 0; i < length; i+= 4) { - *mem_offset++ = *data_words++; - mem_remaining -= 4; - } - return ESP_OK; -} - -esp_command_error handle_mem_finish() -{ - esp_command_error res = mem_remaining > 0 ? ESP_NOT_ENOUGH_DATA : ESP_OK; - mem_remaining = 0; - mem_offset = NULL; - return res; -} - -esp_command_error handle_write_reg(const write_reg_args_t *cmds, uint32_t num_commands) -{ - for (uint32_t i = 0; i < num_commands; i++) { - const write_reg_args_t *cmd = &cmds[i]; - ets_delay_us(cmd->delay_us); - uint32_t v = cmd->value & cmd->mask; - if (cmd->mask != UINT32_MAX) { - v |= READ_REG(cmd->addr) & ~cmd->mask; - } - WRITE_REG(cmd->addr, v); - } - return ESP_OK; -} - -#if ESP32S2_OR_LATER -esp_command_error handle_get_security_info() -{ - uint8_t buf[SECURITY_INFO_BYTES]; - esp_command_error ret; - - #ifdef ESP32C3 - if (_rom_eco_version >= 7) - ret = GetSecurityInfoProcNewEco(NULL, NULL, buf); - else - ret = GetSecurityInfoProc(NULL, NULL, buf); - #else - ret = GetSecurityInfoProc(NULL, NULL, buf); - #endif // ESP32C3 - if (ret == ESP_OK) - SLIP_send_frame_data_buf(buf, sizeof(buf)); - return ret; -} -#endif // ESP32S2_OR_LATER diff --git a/flasher_stub/stub_flasher.c b/flasher_stub/stub_flasher.c deleted file mode 100644 index 19aa77f27..000000000 --- a/flasher_stub/stub_flasher.c +++ /dev/null @@ -1,540 +0,0 @@ -/* - * SPDX-FileCopyrightText: 2016 Cesanta Software Limited - * - * SPDX-License-Identifier: GPL-2.0-or-later - * - * SPDX-FileContributor: 2016-2022 Espressif Systems (Shanghai) CO LTD - */ - -/* - * Main flasher stub logic - * - * This stub uses the same SLIP framing and basic command/response structure - * as the in-ROM flasher program, but with some enhanced - * functions and also standardizes the flasher features between different chips. - * - * Actual command handlers are implemented in stub_commands.c - */ -#include -#include "stub_flasher.h" -#include "rom_functions.h" -#include "slip.h" -#include "stub_commands.h" -#include "stub_write_flash.h" -#include "stub_io.h" -#include "soc_support.h" - -/* Buffers for reading from UART. Data is read double-buffered, so - we can read into one buffer while handling data from the other one - (used for flashing throughput.) */ -typedef struct { - uint8_t buf_a[MAX_WRITE_BLOCK+64]; - uint8_t buf_b[MAX_WRITE_BLOCK+64]; - volatile uint8_t *reading_buf; /* Pointer to buf_a, or buf_b - which are we reading_buf? */ - uint16_t read; /* how many bytes have we read in the frame */ - slip_state_t state; - esp_command_req_t *command; /* Pointer to buf_a or buf_b as latest command received */ -} uart_buf_t; -static volatile uart_buf_t ub; - -/* esptool protocol "checksum" is XOR of 0xef and each byte of - data payload. */ -static uint8_t calculate_checksum(uint8_t *buf, int length) -{ - uint8_t res = 0xef; - for(int i = 0; i < length; i++) { - res ^= buf[i]; - } - return res; -} - -#if USE_MAX_CPU_FREQ -static bool can_use_max_cpu_freq() -{ - /* Check if any of available USB modes are being used. */ - #if WITH_USB_OTG && !WITH_USB_JTAG_SERIAL - return stub_uses_usb_otg(); - #elif !WITH_USB_OTG && WITH_USB_JTAG_SERIAL - return stub_uses_usb_jtag_serial(); - #elif WITH_USB_OTG && WITH_USB_JTAG_SERIAL - return stub_uses_usb_otg() || stub_uses_usb_jtag_serial(); - #else - return false; - #endif -} - -#if ESP32C6 || ESP32H2 || ESP32C5 || ESP32C5BETA3 -static uint32_t pcr_sysclk_conf_reg = 0; -#else -static uint32_t cpu_per_conf_reg = 0; -static uint32_t sysclk_conf_reg = 0; -#endif - -static void set_max_cpu_freq() -{ - if (can_use_max_cpu_freq()) - { - /* Set CPU frequency to max. This also increases SPI speed. */ - #if ESP32C6 || ESP32H2 || ESP32C5 || ESP32C5BETA3 - pcr_sysclk_conf_reg = READ_REG(PCR_SYSCLK_CONF_REG); - WRITE_REG(PCR_SYSCLK_CONF_REG, (pcr_sysclk_conf_reg & ~PCR_SOC_CLK_SEL_M) | (PCR_SOC_CLK_MAX << PCR_SOC_CLK_SEL_S)); - #else - cpu_per_conf_reg = READ_REG(SYSTEM_CPU_PER_CONF_REG); - sysclk_conf_reg = READ_REG(SYSTEM_SYSCLK_CONF_REG); - WRITE_REG(SYSTEM_SYSCLK_CONF_REG, (sysclk_conf_reg & ~SYSTEM_SOC_CLK_SEL_M) | (SYSTEM_SOC_CLK_MAX << SYSTEM_SOC_CLK_SEL_S)); - ets_delay_us(100); /* Leave some time for the change to settle, needed for ESP32-S3 */ - WRITE_REG(SYSTEM_CPU_PER_CONF_REG, (cpu_per_conf_reg & ~SYSTEM_CPUPERIOD_SEL_M) | (SYSTEM_CPUPERIOD_MAX << SYSTEM_CPUPERIOD_SEL_S)); - #endif - } -} - -static void reset_cpu_freq() -{ - /* Restore saved sysclk_conf and cpu_per_conf registers. - Use only if set_max_cpu_freq() has been called. */ - #if ESP32C6 || ESP32H2 || ESP32C5 || ESP32C5BETA3 - if (can_use_max_cpu_freq() && pcr_sysclk_conf_reg != 0) - { - WRITE_REG(PCR_SYSCLK_CONF_REG, (READ_REG(PCR_SYSCLK_CONF_REG) & ~PCR_SOC_CLK_SEL_M) | (pcr_sysclk_conf_reg & PCR_SOC_CLK_SEL_M)); - } - #else - if (can_use_max_cpu_freq() && sysclk_conf_reg != 0 && cpu_per_conf_reg != 0) - { - WRITE_REG(SYSTEM_CPU_PER_CONF_REG, (READ_REG(SYSTEM_CPU_PER_CONF_REG) & ~SYSTEM_CPUPERIOD_SEL_M) | (cpu_per_conf_reg & SYSTEM_CPUPERIOD_SEL_M)); - WRITE_REG(SYSTEM_SYSCLK_CONF_REG, (READ_REG(SYSTEM_SYSCLK_CONF_REG) & ~SYSTEM_SOC_CLK_SEL_M) | (sysclk_conf_reg & SYSTEM_SOC_CLK_SEL_M)); - } - #endif -} -#endif // USE_MAX_CPU_FREQ - -#if WITH_USB_JTAG_SERIAL -static void disable_watchdogs() -{ - if (stub_uses_usb_jtag_serial()) - { - WRITE_REG(RTC_CNTL_WDTWPROTECT_REG, RTC_CNTL_WDT_WKEY); // Disable write protection - WRITE_REG(RTC_CNTL_WDTCONFIG0_REG, 0x0); // Disable RTC watchdog - WRITE_REG(RTC_CNTL_WDTWPROTECT_REG, 0x0); // Re-enable write protection - - WRITE_REG(RTC_CNTL_SWD_WPROTECT_REG, RTC_CNTL_SWD_WKEY); // Disable write protection - REG_SET_MASK(RTC_CNTL_SWD_CONF_REG, RTC_CNTL_SWD_AUTO_FEED_EN); // Autofeed super watchdog - WRITE_REG(RTC_CNTL_SWD_WPROTECT_REG, 0x0); // Re-enable write protection - } -} -#endif // WITH_USB_JTAG_SERIAL - -#if ESP32S3 && !ESP32S3BETA2 -bool large_flash_mode = false; - -bool flash_larger_than_16mb() -{ - uint32_t flash_id; - esp_rom_opiflash_exec_cmd(1, SPI_FLASH_FASTRD_MODE, - CMD_RDID, 8, - 0, 0, - 0, - NULL, 0, - (uint8_t *)&flash_id, 24, - ESP_ROM_OPIFLASH_SEL_CS0, - false); - - uint8_t flid_lowbyte = (flash_id >> 16) & 0xFF; - return ((flid_lowbyte >= 0x19 && flid_lowbyte < 0x30) || (flid_lowbyte >= 0x39)); // See DETECTED_FLASH_SIZES in esptool -} -#endif // ESP32S3 - -static void stub_handle_rx_byte(char byte) -{ - int16_t r = SLIP_recv_byte(byte, (slip_state_t *)&ub.state); - if (r >= 0) { - ub.reading_buf[ub.read++] = (uint8_t) r; - if (ub.read == MAX_WRITE_BLOCK+64) { - /* shouldn't happen unless there are data errors */ - r = SLIP_FINISHED_FRAME; - } - } - if (r == SLIP_FINISHED_FRAME) { - /* end of frame, set 'command' - to be processed by main thread */ - if(ub.reading_buf == ub.buf_a) { - ub.command = (esp_command_req_t *)ub.buf_a; - ub.reading_buf = ub.buf_b; - } else { - ub.command = (esp_command_req_t *)ub.buf_b; - ub.reading_buf = ub.buf_a; - } - ub.read = 0; - } -} - -static esp_command_error verify_data_len(esp_command_req_t *command, uint8_t len) -{ - return (command->data_len == len) ? ESP_OK : ESP_BAD_DATA_LEN; -} - -void cmd_loop() { - while(1) { - /* Wait for a command */ - while(ub.command == NULL) { - stub_io_idle_hook(); - } - esp_command_req_t *command = ub.command; - ub.command = NULL; - /* provide easy access for 32-bit data words */ - uint32_t *data_words = (uint32_t *)command->data_buf; - - /* Send command response header */ - esp_command_response_t resp = { - .resp = 1, - .op_ret = command->op, - .len_ret = 2, /* esptool.py checks this length */ - .value = 0, - }; - - /* Some commands need to set resp.len_ret or resp.value before it is sent back */ - switch(command->op) { - case ESP_READ_REG: - if (command->data_len == 4) { - resp.value = READ_REG(data_words[0]); - } - break; - case ESP_FLASH_VERIFY_MD5: - resp.len_ret = 16 + 2; /* Will sent 16 bytes of data with MD5 value */ - break; - #if ESP32S2_OR_LATER - case ESP_GET_SECURITY_INFO: - resp.len_ret = SECURITY_INFO_BYTES; /* Buffer size varies */ - break; - #endif // ESP32S2_OR_LATER - default: - break; - } - - /* Send the command response */ - SLIP_send_frame_delimiter(); - SLIP_send_frame_data_buf(&resp, sizeof(esp_command_response_t)); - - if(command->data_len > MAX_WRITE_BLOCK+16) { - SLIP_send_frame_data(ESP_BAD_DATA_LEN); - SLIP_send_frame_data(0xEE); - SLIP_send_frame_delimiter(); - continue; - } - - /* ... ESP_FLASH_VERIFY_MD5 and ESP_GET_SECURITY_INFO will insert - * in-frame response data between here and when we send the - * status bytes at the end of the frame */ - - esp_command_error error = ESP_CMD_NOT_IMPLEMENTED; - int status = 0; - - /* First stage of command processing - before sending error/status */ - switch (command->op) { - case ESP_SYNC: - /* Bootloader responds to the SYNC request with eight identical SYNC responses. Stub flasher should react - * the same way so SYNC could be possible with the flasher stub as well. This helps in cases when the chip - * cannot be reset and the flasher stub keeps running. */ - error = verify_data_len(command, 36); - - if (error == ESP_OK) { - /* resp.value remains 0 which esptool.py can use to detect the flasher stub */ - resp.value = 0; - for (int i = 0; i < 7; ++i) { - SLIP_send_frame_data(error); - SLIP_send_frame_data(status); - SLIP_send_frame_delimiter(); /* end the previous frame */ - - SLIP_send_frame_delimiter(); /* start new frame */ - SLIP_send_frame_data_buf(&resp, sizeof(esp_command_response_t)); - } - /* The last frame is ended outside of the "switch case" at the same place regular one-response frames are - * ended. */ - } - break; - #if ESP32S2_OR_LATER - case ESP_GET_SECURITY_INFO: - error = verify_data_len(command, 0) || handle_get_security_info(); - break; - #endif // ESP32S2_OR_LATER - case ESP_ERASE_FLASH: - error = verify_data_len(command, 0) || SPIEraseChip(); - break; - case ESP_ERASE_REGION: - /* Params for ERASE_REGION are addr, len */ - error = verify_data_len(command, 8) || handle_flash_erase(data_words[0], data_words[1]); - break; - case ESP_SET_BAUD: - /* ESP_SET_BAUD sends two args, new and old baud rates */ - error = verify_data_len(command, 8); - /* actual baud setting happens after we send the reply */ - break; - case ESP_READ_FLASH: - error = verify_data_len(command, 16); - /* actual data is sent after we send the reply */ - break; - case ESP_FLASH_VERIFY_MD5: - /* unsure why the MD5 command has 4 params but we only pass 2 of them, - but this is in ESP32 ROM so we can't mess with it. - */ - error = verify_data_len(command, 16) || handle_flash_get_md5sum(data_words[0], data_words[1]); - break; - case ESP_FLASH_BEGIN: - /* parameters (interpreted differently to ROM flasher): - 0 - erase_size (used as total size to write) - 1 - num_blocks (ignored) - 2 - block_size (should be MAX_WRITE_BLOCK, relies on num_blocks * block_size >= erase_size) - 3 - offset (used as-is) - */ - if (command->data_len == 16 && data_words[2] > MAX_WRITE_BLOCK) { - error = ESP_BAD_BLOCKSIZE; - } else { - error = verify_data_len(command, 16) || handle_flash_begin(data_words[0], data_words[3]); - } - break; - case ESP_FLASH_DEFLATED_BEGIN: - /* parameters: - 0 - uncompressed size - 1 - num_blocks (based on compressed size) - 2 - block_size (should be MAX_WRITE_BLOCK, total bytes over serial = num_blocks * block_size) - 3 - offset (used as-is) - */ - if (command->data_len == 16 && data_words[2] > MAX_WRITE_BLOCK) { - error = ESP_BAD_BLOCKSIZE; - } else { - error = verify_data_len(command, 16) || handle_flash_deflated_begin(data_words[0], data_words[1] * data_words[2], data_words[3]); - } - break; - case ESP_FLASH_DATA: - case ESP_FLASH_DEFLATED_DATA: -#if !ESP8266 - case ESP_FLASH_ENCRYPT_DATA: -#endif - - /* ACK DATA commands immediately, then process them a few lines down, - allowing next command to buffer */ - if(is_in_flash_mode()) { - error = get_flash_error(); - int payload_len = command->data_len - 16; - if (data_words[0] != payload_len) { - /* First byte of data payload header is length (repeated) as a word */ - error = ESP_BAD_DATA_LEN; - } - uint8_t data_checksum = calculate_checksum(command->data_buf + 16, payload_len); - if (data_checksum != command->checksum) { - error = ESP_BAD_DATA_CHECKSUM; - } - } - else { - error = ESP_NOT_IN_FLASH_MODE; - } - break; - case ESP_FLASH_END: - case ESP_FLASH_DEFLATED_END: - error = handle_flash_end(); - break; - case ESP_SPI_SET_PARAMS: - /* data params: fl_id, total_size, block_size, sector_Size, page_size, status_mask */ - error = verify_data_len(command, 24) || handle_spi_set_params(data_words, &status); - break; - case ESP_SPI_ATTACH: - /* parameter is 'hspi mode' (0, 1 or a pin mask for ESP32. Ignored on ESP8266.) */ - error = verify_data_len(command, 4) || handle_spi_attach(data_words[0]); - break; - case ESP_WRITE_REG: - /* The write_reg command can pass multiple write operations in a sequence */ - if (command->data_len % sizeof(write_reg_args_t) != 0) { - error = ESP_BAD_DATA_LEN; - } else { - error = handle_write_reg((const write_reg_args_t *)data_words, command->data_len/sizeof(write_reg_args_t)); - } - break; - case ESP_READ_REG: - /* actual READ_REG operation happens higher up */ - error = verify_data_len(command, 4); - break; - case ESP_MEM_BEGIN: - error = verify_data_len(command, 16) || handle_mem_begin(data_words[0], data_words[3]); - break; - case ESP_MEM_DATA: - error = handle_mem_data(command->data_buf + 16, command->data_len - 16); - break; - case ESP_MEM_END: - error = verify_data_len(command, 8) || handle_mem_finish(); - break; - case ESP_RUN_USER_CODE: - /* Returning from here will run user code, ie standard boot process - - This command does not send a response. - */ - return; - } - - SLIP_send_frame_data(error); - SLIP_send_frame_data(status); - SLIP_send_frame_delimiter(); - - /* Some commands need to do things after after sending this response */ - if (error == ESP_OK) { - switch(command->op) { - case ESP_SET_BAUD: - stub_io_set_baudrate(data_words[1], data_words[0]); - break; - case ESP_READ_FLASH: - /* args are: offset, length, block_size, max_in_flight */ - handle_flash_read(data_words[0], data_words[1], data_words[2], - data_words[3]); - break; - case ESP_FLASH_DATA: - /* drop into flashing mode, discard 16 byte payload header */ - handle_flash_data(command->data_buf + 16, command->data_len - 16); - break; -#if !ESP8266 - case ESP_FLASH_ENCRYPT_DATA: - /* write encrypted data */ - handle_flash_encrypt_data(command->data_buf + 16, command->data_len -16); - break; -#endif - case ESP_FLASH_DEFLATED_DATA: - handle_flash_deflated_data(command->data_buf + 16, command->data_len - 16); - break; - case ESP_FLASH_DEFLATED_END: - case ESP_FLASH_END: - /* passing 0 as parameter for ESP_FLASH_END means reboot now */ - if (data_words[0] == 0) { - /* Flush the FLASH_END response before rebooting */ - stub_tx_flush(); - ets_delay_us(10000); - #if USE_MAX_CPU_FREQ - reset_cpu_freq(); - #endif // USE_MAX_CPU_FREQ - software_reset(); - } - break; - case ESP_MEM_END: - if (data_words[1] != 0) { - void (*entrypoint_fn)(void) = (void (*))data_words[1]; - /* Make sure the command response has been flushed out - of the UART before we run the new code */ - stub_tx_flush(); - ets_delay_us(1000); - /* this is a little different from the ROM loader, - which exits the loader routine and _then_ calls this - function. But for our purposes so far, having a bit of - extra stuff on the stack doesn't really matter. - */ - #if USE_MAX_CPU_FREQ - reset_cpu_freq(); - #endif // USE_MAX_CPU_FREQ - entrypoint_fn(); - } - break; - } - } - } -} - - -extern uint32_t _bss_start; -extern uint32_t _bss_end; - -void __attribute__((used)) stub_main(); - - -#ifdef ESP8266 -__asm__ ( - ".global stub_main_8266\n" - ".literal_position\n" - ".align 4\n" - "stub_main_8266:\n" -/* ESP8266 wrapper for "stub_main()" manipulates the return address in - * a0, so 'return' from here runs user code. - * - * After setting a0, we jump directly to stub_main_inner() which is a - * normal C function - * - * Adapted from similar approach used by Cesanta Software for ESP8266 - * flasher stub. - * - */ - "movi a0, 0x400010a8;" - "j stub_main;"); -#endif - -/* This function is called from stub_main, with return address - reset to point to user code. */ -void stub_main() -{ - const uint32_t greeting = 0x4941484f; /* OHAI */ - - /* This points to stub_main now, clear for next boot. */ - ets_set_user_start(0); - - /* Increase CPU frequency and flashing speed if supported. */ - #if USE_MAX_CPU_FREQ - set_max_cpu_freq(); - #endif // USE_MAX_CPU_FREQ - - /* Disable all watchdogs to prevent the chip from resetting during longer operations. */ - #if WITH_USB_JTAG_SERIAL - disable_watchdogs(); - #endif // WITH_USB_JTAG_SERIAL - - /* Zero the bss region. */ - for(uint32_t *p = &_bss_start; p < &_bss_end; p++) { - *p = 0; - } - - /* Send the OHAI greeting, stub will be reported as running. */ - SLIP_send(&greeting, 4); - - /* Configure the interrupts for receiving data from esptool on the host. */ - ub.reading_buf = ub.buf_a; - stub_io_init(&stub_handle_rx_byte); - - /* Configure default SPI flash functionality. - Can be overridden later by esptool.py. */ - #ifdef ESP8266 - SelectSpiFunction(); - spi_flash_attach(); - #else - #if SUPPORT_CONFIG_SPI - uint32_t spiconfig = ets_efuse_get_spiconfig(); - #else - uint32_t spiconfig = 0; - #endif // SUPPORT_CONFIG_SPI - uint32_t strapping = READ_REG(GPIO_STRAP_REG); - /* If GPIO1 (U0TXD) is pulled low and no other boot mode is - set in efuse, assume HSPI flash mode (same as normal boot) - */ - if (spiconfig == 0 && (strapping & 0x1c) == 0x08) { - spiconfig = 1; /* HSPI flash mode */ - } - spi_flash_attach(spiconfig, 0); - #endif // ESP8266 - - /* Initialize the OPI flash driver if supported. */ - #if ESP32S3 && !ESP32S3BETA2 - large_flash_mode = ets_efuse_flash_octal_mode() || flash_larger_than_16mb(); - - // Initialize OPI flash driver only when flash is detected octal or quad larger than 16MB. - // Otherwise, we don't need to initialize such a driver - if (large_flash_mode) { - static const esp_rom_opiflash_def_t flash_driver = OPIFLASH_DRIVER(); - esp_rom_opiflash_legacy_driver_init(&flash_driver); - esp_rom_opiflash_wait_idle(); - } - #endif //ESP32S3 && !ESP32S3BETA2 - SPIParamCfg(0, FLASH_MAX_SIZE, FLASH_BLOCK_SIZE, FLASH_SECTOR_SIZE, - FLASH_PAGE_SIZE, FLASH_STATUS_MASK); - - /* Configurations are done, now run the loop to receive and handle commands. */ - cmd_loop(); - - /* If cmd_loop returns, it's due to ESP_RUN_USER_CODE command. */ - /* Decrease CPU frequency back to the saved value before the stub flasher returns. */ - #if USE_MAX_CPU_FREQ - reset_cpu_freq(); - #endif // USE_MAX_CPU_FREQ - - return; -} diff --git a/flasher_stub/stub_io.c b/flasher_stub/stub_io.c deleted file mode 100644 index 1331bc7a8..000000000 --- a/flasher_stub/stub_io.c +++ /dev/null @@ -1,313 +0,0 @@ -/* - * SPDX-FileCopyrightText: 2016 Cesanta Software Limited - * - * SPDX-License-Identifier: GPL-2.0-or-later - * - * SPDX-FileContributor: 2016-2022 Espressif Systems (Shanghai) CO LTD - */ - -#include -#include "stub_io.h" -#include "rom_functions.h" -#include "soc_support.h" - - -#define UART_RX_INTS (UART_RXFIFO_FULL_INT_ENA | UART_RXFIFO_TOUT_INT_ENA) - - -static void(*s_rx_cb_func)(char); -#ifdef WITH_USB_OTG -static uint32_t s_cdcacm_old_rts; -static volatile bool s_cdcacm_reset_requested; -static char s_cdcacm_txbuf[ACM_BYTES_PER_TX]; -static size_t s_cdcacm_txpos; -#endif // WITH_USB_OTG - - -void uart_isr(void *arg) { - uint32_t int_st = READ_REG(UART_INT_ST(0)); - while (1) { - uint32_t fifo_len = READ_REG(UART_STATUS(0)) & UART_RXFIFO_CNT_M; - if (fifo_len == 0) { - break; - } - while (fifo_len-- > 0) { - uint8_t byte = READ_REG(UART_FIFO(0)) & 0xff; - (*s_rx_cb_func)(byte); - } - } - WRITE_REG(UART_INT_CLR(0), int_st); -} - -#if WITH_USB_JTAG_SERIAL -bool stub_uses_usb_jtag_serial(void) -{ - UartDevice *uart = GetUartDevice(); - - /* buff_uart_no indicates which UART is used for SLIP communication) */ - return uart->buff_uart_no == UART_USB_JTAG_SERIAL; -} - -void jtag_serial_isr(void *arg) -{ - WRITE_REG(USB_DEVICE_INT_CLR_REG, USB_DEVICE_SERIAL_OUT_RECV_PKT_INT_CLR); //ack interrupt - while (READ_REG(USB_DEVICE_EP1_CONF_REG) & USB_DEVICE_SERIAL_OUT_EP_DATA_AVAIL) - { - uint8_t byte = READ_REG(USB_DEVICE_EP1_REG); - (*s_rx_cb_func)(byte); - } -} -#endif // WITH_USB_JTAG_SERIAL - -static void stub_configure_rx_uart(void) -{ - /* All UART reads come via uart_isr or jtag_serial_isr */ -#if WITH_USB_JTAG_SERIAL - if (stub_uses_usb_jtag_serial()) { - #if IS_RISCV - #if ESP32P4 || ESP32C5 - WRITE_REG(INTERRUPT_CORE0_USB_INTR_MAP_REG, ETS_USB_INUM + CLIC_EXT_INTR_NUM_OFFSET); - #else - WRITE_REG(INTERRUPT_CORE0_USB_INTR_MAP_REG, ETS_USB_INUM); // Route USB interrupt to CPU - #endif - esprv_intc_int_set_priority(ETS_USB_INUM, 1); - #else - WRITE_REG(INTERRUPT_CORE0_USB_DEVICE_INT_MAP_REG, ETS_USB_INUM); - #endif // IS_RISCV - ets_isr_attach(ETS_USB_INUM, jtag_serial_isr, NULL); - WRITE_REG(USB_DEVICE_INT_ENA_REG, USB_DEVICE_SERIAL_OUT_RECV_PKT_INT_ENA); - ets_isr_unmask(1 << ETS_USB_INUM); - return; - } -#endif // WITH_USB_JTAG_SERIAL - ets_isr_attach(ETS_UART0_INUM, uart_isr, NULL); - REG_SET_MASK(UART_INT_ENA(0), UART_RX_INTS); - ets_isr_unmask(1 << ETS_UART0_INUM); -} - -#ifdef WITH_USB_OTG - -void stub_cdcacm_cb(cdc_acm_device *dev, int status) -{ - if (status == ACM_STATUS_RX) { - while (cdc_acm_rx_fifo_cnt(uart_acm_dev) > 0) { - uint8_t c; - cdc_acm_fifo_read(uart_acm_dev, &c, 1); - (*s_rx_cb_func)((char) c); - } - } else if (status == ACM_STATUS_LINESTATE_CHANGED) { - uint32_t rts = 0; - cdc_acm_line_ctrl_get(dev, LINE_CTRL_RTS, &rts); - if (rts == 0 && s_cdcacm_old_rts == 1) { - s_cdcacm_reset_requested = true; - } - s_cdcacm_old_rts = rts; - } -} - -static void stub_cdcacm_flush(void) -{ - cdc_acm_fifo_fill(uart_acm_dev, (const uint8_t *) s_cdcacm_txbuf, s_cdcacm_txpos); - /* return value ignored — if bootloader fails to log something, proceed anyway */ - s_cdcacm_txpos = 0; -} - -static void stub_cdcacm_write_char(char ch) -{ - s_cdcacm_txbuf[s_cdcacm_txpos++] = ch; - if (ch == '\xc0' || s_cdcacm_txpos == sizeof(s_cdcacm_txbuf)) { - stub_cdcacm_flush(); - } -} - -bool stub_uses_usb_otg(void) -{ - UartDevice *uart = GetUartDevice(); - - /* buff_uart_no indicates which UART is used for SLIP communication) */ - return uart->buff_uart_no == UART_USB_OTG; -} - -#ifdef ESP32S3 -static void usb_dw_isr_handler_wrapper(void *arg) -{ - /* ISR handler wrapper added as a workaround for the failure of compressed flashing using USB OTG. - * - * LoadStoreException happens inside the first call of tinfl_decompress() where the a13 register gets corrupted by - * the address of usb_dw_isr_handler(). The corruption probably still happens with this workaround but because of - * the nested call another register window is used. - * - * Other possible workarounds: - * - wait at least 25 ms before the tinfl_decompress() so usb_dw_isr_handler() would finish and not corrupt the - * pointer inside of tinfl_decompress(), or - * - disable the USB interrupt during tinfl_decompress(). - */ - usb_dw_isr_handler(arg); -} -#else -#define usb_dw_isr_handler_wrapper usb_dw_isr_handler -#endif //ESP32S3 - -static void stub_configure_rx_usb(void) -{ - cdc_acm_line_ctrl_get(uart_acm_dev, LINE_CTRL_RTS, &s_cdcacm_old_rts); - #if ESP32S2 - intr_matrix_set(0, ETS_USB_INTR_SOURCE, ETS_USB_INUM); - #elif ESP32S3 - WRITE_REG(INTERRUPT_CORE0_USB_INTR_MAP_REG, ETS_USB_INUM); - #endif - ets_isr_attach(ETS_USB_INUM, usb_dw_isr_handler_wrapper, NULL); - ets_isr_unmask(1 << ETS_USB_INUM); - cdc_acm_irq_callback_set(uart_acm_dev, &stub_cdcacm_cb); - cdc_acm_irq_rx_enable(uart_acm_dev); - cdc_acm_irq_state_enable(uart_acm_dev); - REG_SET_MASK(USB_GAHBCFG_REG, USB_GLBLLNTRMSK); -} -#endif // WITH_USB_OTG - -void stub_tx_one_char(char c) -{ -#if WITH_USB_OTG - if (stub_uses_usb_otg()) { - stub_cdcacm_write_char(c); - return; - } -#endif // WITH_USB_OTG - uart_tx_one_char(c); -#if WITH_USB_JTAG_SERIAL - static unsigned short transferred_without_flush = 0; - if (stub_uses_usb_jtag_serial()){ - // Defer flushing until we have a (full - 1) packet or a end of packet (0xc0) byte to increase throughput. - // Note that deferring flushing until we have a full packet can cause hang-ups on some platforms. - ++transferred_without_flush; - if (c == '\xc0' || transferred_without_flush >= 63) { - stub_tx_flush(); - transferred_without_flush = 0; - } - } -#endif // WITH_USB_JTAG_SERIAL -} - -void stub_tx_flush(void) -{ -#if WITH_USB_OTG - if (stub_uses_usb_otg()) { - if (s_cdcacm_txpos > 0) { - stub_cdcacm_flush(); - } - } -#endif // WITH_USB_OTG -#if WITH_USB_JTAG_SERIAL - if (stub_uses_usb_jtag_serial()){ - uart_tx_flush(UART_USB_JTAG_SERIAL); - return; - } -#endif // WITH_USB_JTAG_SERIAL -#if ESP32_OR_LATER - uart_tx_flush(0); -#endif -} - -char stub_rx_one_char(void) -{ - char c = 0; - /* Using uart_rx_one_char here instead of uart_rx_one_char_block, - * because the latter simply returns (char) 0 if no bytes - * are available, when used with USB CDC. - */ - while (uart_rx_one_char((uint8_t*) &c) != 0) { } - return c; -} - -void stub_rx_async_enable(bool enable) -{ - uint32_t mask; -#if WITH_USB_OTG - if (stub_uses_usb_otg()) { - mask = 1 << ETS_USB_INUM; - if (enable) { - cdc_acm_irq_rx_enable(uart_acm_dev); - ets_isr_unmask(mask); - } else { - ets_isr_mask(mask); - cdc_acm_irq_rx_disable(uart_acm_dev); - } - return; - } -#endif // WITH_USB_OTG -#if WITH_USB_JTAG_SERIAL - mask = stub_uses_usb_jtag_serial() ? 1 << ETS_USB_INUM : 1 << ETS_UART0_INUM; -#else - mask = 1 << ETS_UART0_INUM; -#endif - if (enable) { - ets_isr_unmask(mask); - } else { - ets_isr_mask(mask); - } -} - -void stub_io_idle_hook(void) -{ -#if WITH_USB_OTG - if (s_cdcacm_reset_requested) - { - s_cdcacm_reset_requested = false; - ets_isr_mask(1 << ETS_USB_INUM); - ets_delay_us(10000); - /* Handle the last few interrupts as they come in before the USB peripheral is idle */ - usb_dc_check_poll_for_interrupts(); - REG_CLR_MASK(RTC_CNTL_OPTION1_REG, RTC_CNTL_FORCE_DOWNLOAD_BOOT); - chip_usb_set_persist_flags(USBDC_PERSIST_ENA); - usb_dc_prepare_persist(); - software_reset_cpu(0); - } -#endif // WITH_USB_OTG -} - -void stub_io_init(void(*rx_cb_func)(char)) -{ - s_rx_cb_func = rx_cb_func; -#if WITH_USB_OTG - if (stub_uses_usb_otg()) { - stub_configure_rx_usb(); - return; - } -#endif // WITH_USB_OTG - stub_configure_rx_uart(); -} - -static uint32_t get_new_uart_divider(uint32_t current_baud, uint32_t new_baud) -{ - uint32_t master_freq; - /* ESP32 has ROM code to detect the crystal freq but ESP8266 does not have this... - So instead we use the previously auto-synced 115200 baud rate (which we know - is correct wrt the relative crystal accuracy of the ESP & the USB/serial adapter). - From this we can estimate crystal freq, and update for a new baud rate relative to that. - */ - uint32_t uart_reg = READ_REG(UART_CLKDIV_REG(0)); - uint32_t uart_div = uart_reg & UART_CLKDIV_M; -#if ESP32_OR_LATER - // account for fractional part of divider (bottom 4 bits) - uint32_t fraction = (uart_reg >> UART_CLKDIV_FRAG_S) & UART_CLKDIV_FRAG_V; - uart_div = (uart_div << 4) + fraction; -#endif - master_freq = uart_div * current_baud; - return master_freq / new_baud; -} - -void stub_io_set_baudrate(uint32_t current_baud, uint32_t new_baud) -{ -#if WITH_USB_OTG - /* Technically no harm in increasing UART baud rate when communicating over USB, - * however for debugging the USB part it is occasionally useful to ets_printf - * something to UART. Not changing the baud rate helps in such case. - */ - if (stub_uses_usb_otg()) { - return; - } -#endif // WITH_USB_OTG - ets_delay_us(10000); - uart_div_modify(0, get_new_uart_divider(current_baud, new_baud)); - ets_delay_us(1000); -} diff --git a/flasher_stub/stub_write_flash.c b/flasher_stub/stub_write_flash.c deleted file mode 100644 index e925d9f74..000000000 --- a/flasher_stub/stub_write_flash.c +++ /dev/null @@ -1,480 +0,0 @@ -/* - * SPDX-FileCopyrightText: 2016 Cesanta Software Limited - * - * SPDX-License-Identifier: GPL-2.0-or-later - * - * SPDX-FileContributor: 2016-2022 Espressif Systems (Shanghai) CO LTD - */ - -#include "soc_support.h" -#include "stub_write_flash.h" -#include "stub_flasher.h" -#include "rom_functions.h" -#include "miniz.h" - -/* local flashing state - - This is wrapped in a structure because gcc 4.8 - generates significantly more code for ESP32 - if they are static variables (literal pool, I think!) -*/ -static struct { - /* set by flash_begin, cleared by flash_end */ - bool in_flash_mode; - /* offset of next SPI write */ - uint32_t next_write; - /* sector number for next erase */ - int next_erase_sector; - /* number of output bytes remaining to write */ - uint32_t remaining; - /* number of sectors remaining to erase */ - int remaining_erase_sector; - /* last error generated by a data packet */ - esp_command_error last_error; - - /* inflator state for deflate write */ - tinfl_decompressor inflator; - /* number of compressed bytes remaining to read */ - uint32_t remaining_compressed; -} fs; - -/* SPI status bits */ -static const uint32_t STATUS_WIP_BIT = (1 << 0); -#if ESP32_OR_LATER -static const uint32_t STATUS_QIE_BIT = (1 << 9); /* Quad Enable */ -#endif - -bool is_in_flash_mode(void) -{ - return fs.in_flash_mode; -} - -esp_command_error get_flash_error(void) -{ - return fs.last_error; -} - -/* Wait for the SPI state machine to be ready, - ie no command in progress in the internal host. -*/ -inline static void spi_wait_ready(void) -{ - /* Wait for SPI state machine ready */ - while((READ_REG(SPI_EXT2_REG) & SPI_ST)) - { } -#if ESP32_OR_LATER - while(READ_REG(SPI0_EXT2_REG) & SPI_ST) - { } -#endif -} - -/* Returns true if the spiflash is ready for its next write - operation. - - Doesn't block, except for the SPI state machine to finish - any previous SPI host operation. -*/ -static bool spiflash_is_ready(void) -{ - spi_wait_ready(); - WRITE_REG(SPI_RD_STATUS_REG, 0); - /* Issue read status command */ - WRITE_REG(SPI_CMD_REG, SPI_FLASH_RDSR); - while(READ_REG(SPI_CMD_REG) != 0) - { } - uint32_t status_value = READ_REG(SPI_RD_STATUS_REG); - return (status_value & STATUS_WIP_BIT) == 0; -} - -static void spi_write_enable(void) -{ - while(!spiflash_is_ready()) - { } - WRITE_REG(SPI_CMD_REG, SPI_FLASH_WREN); - while(READ_REG(SPI_CMD_REG) != 0) - { } -} - -#if ESP32_OR_LATER -static esp_rom_spiflash_chip_t *flashchip = (esp_rom_spiflash_chip_t *)ROM_SPIFLASH_LEGACY; - -/* Stub version of SPIUnlock() that replaces version in ROM. - - This works around a bug where SPIUnlock sometimes reads the wrong - high status byte (RDSR2 result) and then copies it back to the - flash status, causing lock bit CMP or Status Register Protect ` to - become set. - */ -SpiFlashOpResult SPIUnlock(void) -{ - uint32_t status; - - spi_wait_ready(); /* ROM SPI_read_status_high() doesn't wait for this */ -#if ESP32S2_OR_LATER - if (SPI_read_status_high(flashchip, &status) != SPI_FLASH_RESULT_OK) { - return SPI_FLASH_RESULT_ERR; - } -#else - if (SPI_read_status_high(&status) != SPI_FLASH_RESULT_OK) { - return SPI_FLASH_RESULT_ERR; - } -#endif // ESP32S2_OR_LATER - - /* Clear all bits except QIE, if it is set. - (This is different from ROM SPIUnlock, which keeps all bits as-is.) - */ - status &= STATUS_QIE_BIT; - - spi_write_enable(); - - REG_SET_MASK(SPI_CTRL_REG, SPI_WRSR_2B); - if (SPI_write_status(flashchip, status) != SPI_FLASH_RESULT_OK) { - return SPI_FLASH_RESULT_ERR; - } - - return SPI_FLASH_RESULT_OK; -} -#endif // ESP32_OR_LATER - -#if defined(ESP32S3) && !defined(ESP32S3BETA2) -static esp_rom_spiflash_result_t page_program_internal(int spi_num, uint32_t spi_addr, uint8_t* addr_source, uint32_t byte_length) -{ - uint32_t temp_addr; - int32_t temp_bl; - esp_rom_opiflash_wait_idle(); - temp_addr = spi_addr; - temp_bl = byte_length; - uint32_t temp_len = 0; - - const uint16_t cmd = CMD_PROGRAM_PAGE_4B; - uint8_t cmd_len = 8; - int dummy = 0; - - while (temp_bl > 0 ) { - esp_rom_opiflash_wren(); - temp_len = (temp_bl >= 32) ? 32 : temp_bl; //32 = write_sub_len - esp_rom_opiflash_exec_cmd(spi_num, SPI_FLASH_FASTRD_MODE, - cmd, cmd_len, - temp_addr, 32, - dummy, - addr_source, 8 * temp_len, - NULL, 0, - ESP_ROM_OPIFLASH_SEL_CS0, - true); - esp_rom_opiflash_wait_idle(); - addr_source += temp_len; - temp_addr += temp_len; - temp_bl -= temp_len; - } - return ESP_ROM_SPIFLASH_RESULT_OK; -} -#endif // ESP32S3 - -#if defined(ESP32S3) && !defined(ESP32S3BETA2) -static esp_rom_spiflash_result_t SPIWrite4B(int spi_num, uint32_t target, uint8_t *src_addr, int32_t len) -{ - uint32_t page_size = 256; - uint32_t pgm_len, pgm_num; - uint8_t i; - - esp_rom_opiflash_wait_idle(); - pgm_len = page_size - (target % page_size); - if (len < pgm_len) { - page_program_internal(spi_num, target, src_addr, len); - } else { - page_program_internal(spi_num, target, src_addr, pgm_len); - //whole page program - pgm_num = (len - pgm_len) / page_size; - for (i = 0; i < pgm_num; i++) { - page_program_internal(spi_num, target + pgm_len, (src_addr + pgm_len), page_size); - pgm_len += page_size; - } - //remain parts to program - page_program_internal(spi_num, target + pgm_len, (src_addr + pgm_len), len - pgm_len); - } - esp_rom_opiflash_wait_idle(); - return ESP_ROM_SPIFLASH_RESULT_OK; -} -#endif // defined(ESP32S3) && !defined(ESP32S3BETA2) - -esp_command_error handle_flash_begin(uint32_t total_size, uint32_t offset) { - fs.in_flash_mode = true; - fs.next_write = offset; - fs.next_erase_sector = offset / FLASH_SECTOR_SIZE; - fs.remaining = total_size; - fs.remaining_erase_sector = ((offset % FLASH_SECTOR_SIZE) + total_size + FLASH_SECTOR_SIZE - 1) / FLASH_SECTOR_SIZE; - fs.last_error = ESP_OK; - -#if defined(ESP32S3) && !defined(ESP32S3BETA2) - if (large_flash_mode) { - esp_rom_opiflash_wait_idle(); - } else { - if (SPIUnlock() != 0) { - return ESP_FAILED_SPI_UNLOCK; - } - } -#else - if (SPIUnlock() != 0) { - return ESP_FAILED_SPI_UNLOCK; - } -#endif //defined(ESP32S3) and !defined(ESP32S3BETA2) - - return ESP_OK; -} - -esp_command_error handle_flash_deflated_begin(uint32_t uncompressed_size, uint32_t compressed_size, uint32_t offset) { - esp_command_error err = handle_flash_begin(uncompressed_size, offset); - tinfl_init(&fs.inflator); - fs.remaining_compressed = compressed_size; - return err; -} - -/* Erase the next sector or block (depending if we're at a block boundary). - - Updates fs.next_erase_sector & fs.remaining_erase_sector on success. - - If nothing left to erase, returns immediately. - - Returns immediately if SPI flash not yet ready for a write operation. - - Does not wait for the erase to complete - the next SPI operation - should check if a write operation is currently in progress. - */ -static void start_next_erase(void) -{ - bool block_erase = false; - - if(fs.remaining_erase_sector == 0) - return; /* nothing left to erase */ - if(!spiflash_is_ready()) - return; /* don't wait for flash to be ready, caller will call again if needed */ - - if(fs.remaining_erase_sector >= SECTORS_PER_BLOCK - && fs.next_erase_sector % SECTORS_PER_BLOCK == 0) { - /* perform a 64KB block erase if we have space for it */ - block_erase = true; - } - - spi_write_enable(); - spi_wait_ready(); - #if defined(ESP32S3) && !defined(ESP32S3BETA2) - if (large_flash_mode) { - if (block_erase) { - if (fs.next_erase_sector * FLASH_SECTOR_SIZE < (1 << 24)) { - esp_rom_opiflash_wait_idle(); - esp_rom_opiflash_wren(); - - esp_rom_opiflash_exec_cmd(1, SPI_FLASH_SLOWRD_MODE, - CMD_LARGE_BLOCK_ERASE, 8, - fs.next_erase_sector * FLASH_SECTOR_SIZE, 24, - 0, - NULL, 0, - NULL, 0, - 1, - true); - esp_rom_opiflash_wait_idle(); - } else { - esp_rom_opiflash_erase_block_64k(fs.next_erase_sector / SECTORS_PER_BLOCK); - } - } - else { - if (fs.next_erase_sector * FLASH_SECTOR_SIZE < (1 << 24)) { - esp_rom_opiflash_wait_idle(); - esp_rom_opiflash_wren(); - - esp_rom_opiflash_exec_cmd(1, SPI_FLASH_SLOWRD_MODE, - CMD_SECTOR_ERASE, 8, - fs.next_erase_sector * FLASH_SECTOR_SIZE, 24, - 0, - NULL, 0, - NULL, 0, - 1, - true); - esp_rom_opiflash_wait_idle(); - } else { - esp_rom_opiflash_erase_sector(fs.next_erase_sector); - } - } - } else { - uint32_t addr = fs.next_erase_sector * FLASH_SECTOR_SIZE; - uint32_t command = block_erase ? SPI_FLASH_BE : SPI_FLASH_SE; /* block erase, 64KB : sector erase, 4KB */ - WRITE_REG(SPI_ADDR_REG, addr & 0xffffff); - WRITE_REG(SPI_CMD_REG, command); - while(READ_REG(SPI_CMD_REG) != 0) { } - } - #else - uint32_t addr = fs.next_erase_sector * FLASH_SECTOR_SIZE; - uint32_t command = block_erase ? SPI_FLASH_BE : SPI_FLASH_SE; /* block erase, 64KB : sector erase, 4KB */ - WRITE_REG(SPI_ADDR_REG, addr & 0xffffff); - WRITE_REG(SPI_CMD_REG, command); - while(READ_REG(SPI_CMD_REG) != 0) { } - #endif // defined(ESP32S3) && !defined(ESP32S3BETA2) - - uint32_t sectors_to_erase = block_erase ? SECTORS_PER_BLOCK : 1; - fs.remaining_erase_sector -= sectors_to_erase; - fs.next_erase_sector += sectors_to_erase; -} - -/* Write data to flash (either direct for non-compressed upload, or - freshly decompressed.) Erases as it goes. - - Updates fs.remaining_erase_sector, fs.next_write, and fs.remaining -*/ -void handle_flash_data(void *data_buf, uint32_t length) { - int last_sector; - uint8_t res = 0; - - if (length > fs.remaining) { - /* Trim the final block, as it may have padding beyond - the length we are writing */ - length = fs.remaining; - } - - if (length == 0) { - return; - } - - /* what sector is this write going to end in? - make sure we've erased at least that far. - */ - last_sector = (fs.next_write + length) / FLASH_SECTOR_SIZE; - while(fs.remaining_erase_sector > 0 && fs.next_erase_sector <= last_sector) { - start_next_erase(); - } - while(!spiflash_is_ready()) - {} - - /* do the actual write */ - #if defined(ESP32S3) && !defined(ESP32S3BETA2) - if (large_flash_mode){ - res = SPIWrite4B(1, fs.next_write, data_buf, length); - } else { - res = SPIWrite(fs.next_write, data_buf, length); - } - #else - res = SPIWrite(fs.next_write, data_buf, length); - #endif // defined(ESP32S3) && !defined(ESP32S3BETA2) - if (res != 0) - fs.last_error = ESP_FAILED_SPI_OP; - fs.next_write += length; - fs.remaining -= length; -} - -#if !ESP8266 -/* Write encrypted data to flash (either direct for non-compressed upload, or - freshly decompressed.) Erases as it goes. - - Updates fs.remaining_erase_sector, fs.next_write, and fs.remaining -*/ -void handle_flash_encrypt_data(void *data_buf, uint32_t length) { - int last_sector; - int res; - -#if ESP32S2_OR_LATER - SPI_Write_Encrypt_Enable(); -#endif - - if (length > fs.remaining) { - /* Trim the final block, as it may have padding beyond - the length we are writing */ - length = fs.remaining; - } - - if (length == 0) { - return; - } - - /* what sector is this write going to end in? - make sure we've erased at least that far. - */ - last_sector = (fs.next_write + length) / FLASH_SECTOR_SIZE; - while(fs.remaining_erase_sector > 0 && fs.next_erase_sector <= last_sector) { - start_next_erase(); - } - while(!spiflash_is_ready()) - {} - - /* do the actual write */ -#if ESP32 - res = esp_rom_spiflash_write_encrypted(fs.next_write, data_buf, length); -#else - res = SPI_Encrypt_Write(fs.next_write, data_buf, length); -#endif - - if (res) { - fs.last_error = ESP_FAILED_SPI_OP; - } - fs.next_write += length; - fs.remaining -= length; - -#if ESP32S2_OR_LATER - SPI_Write_Encrypt_Disable(); -#endif -} - -#endif // !ESP8266 - -void handle_flash_deflated_data(void *data_buf, uint32_t length) { - /* if all data has been uploaded and another block comes, - accept it only if it is part of a 4-byte Adler-32 checksum */ - if (fs.remaining == 0 && length > 4) { - fs.last_error = ESP_TOO_MUCH_DATA; - return; - } - - static uint8_t out_buf[32768]; - static uint8_t *next_out = out_buf; - int status = TINFL_STATUS_NEEDS_MORE_INPUT; - - while(length > 0 && fs.remaining > 0 && status > TINFL_STATUS_DONE) { - size_t in_bytes = length; /* input remaining */ - size_t out_bytes = out_buf + sizeof(out_buf) - next_out; /* output space remaining */ - int flags = TINFL_FLAG_PARSE_ZLIB_HEADER; - if(fs.remaining_compressed > length) { - flags |= TINFL_FLAG_HAS_MORE_INPUT; - } - - /* start an opportunistic erase: decompressing takes time, so might as - well be running a SPI erase in the background. */ - start_next_erase(); - - status = tinfl_decompress(&fs.inflator, data_buf, &in_bytes, - out_buf, next_out, &out_bytes, - flags); - - fs.remaining_compressed -= in_bytes; - length -= in_bytes; - data_buf += in_bytes; - - next_out += out_bytes; - size_t bytes_in_out_buf = next_out - out_buf; - if (status == TINFL_STATUS_DONE || bytes_in_out_buf == sizeof(out_buf)) { - // Output buffer full, or done - handle_flash_data(out_buf, bytes_in_out_buf); - next_out = out_buf; - } - } // while - - if (status < TINFL_STATUS_DONE) { - /* error won't get sent back to esptool.py until next block is sent */ - fs.last_error = ESP_INFLATE_ERROR; - } - - if (status == TINFL_STATUS_DONE && fs.remaining > 0) { - fs.last_error = ESP_NOT_ENOUGH_DATA; - } -} - -esp_command_error handle_flash_end(void) -{ - if (!fs.in_flash_mode) { - return ESP_NOT_IN_FLASH_MODE; - } - - if (fs.remaining > 0) { - return ESP_NOT_ENOUGH_DATA; - } - - fs.in_flash_mode = false; - return fs.last_error; -} diff --git a/flasher_stub/wrap_stub.py b/flasher_stub/wrap_stub.py deleted file mode 100755 index f63db4f25..000000000 --- a/flasher_stub/wrap_stub.py +++ /dev/null @@ -1,90 +0,0 @@ -#!/usr/bin/env python -# -# SPDX-FileCopyrightText: 2016 Cesanta Software Limited -# -# SPDX-License-Identifier: GPL-2.0-or-later -# -# SPDX-FileContributor: 2016-2022 Espressif Systems (Shanghai) CO LTD - -import argparse -import base64 -import json -import os -import os.path -import sys - -sys.path.append("..") -import esptool # noqa: E402 - -THIS_DIR = os.path.dirname(__file__) -BUILD_DIR = os.path.join(THIS_DIR, "build") - - -def wrap_stub(elf_file): - """Wrap an ELF file into a stub JSON dict""" - print("Wrapping ELF file %s..." % elf_file) - - e = esptool.bin_image.ELFFile(elf_file) - - text_section = e.get_section(".text") - stub = { - "entry": e.entrypoint, - "text": text_section.data, - "text_start": text_section.addr, - } - try: - data_section = e.get_section(".data") - stub["data"] = data_section.data - stub["data_start"] = data_section.addr - except ValueError: - pass - - for s in e.nobits_sections: - if s.name == ".bss": - stub["bss_start"] = s.addr - - # Pad text with NOPs to mod 4. - if len(stub["text"]) % 4 != 0: - stub["text"] += (4 - (len(stub["text"]) % 4)) * "\0" - - print( - "Stub text: %d @ 0x%08x, data: %d @ 0x%08x, entry @ 0x%x" - % ( - len(stub["text"]), - stub["text_start"], - len(stub.get("data", "")), - stub.get("data_start", 0), - stub["entry"], - ), - file=sys.stderr, - ) - - return stub - - -def write_json_files(stubs_dict): - class BytesEncoder(json.JSONEncoder): - def default(self, obj): - if isinstance(obj, bytes): - return base64.b64encode(obj).decode("ascii") - return json.JSONEncoder.default(self, obj) - - for filename, stub_data in stubs_dict.items(): - with open(os.path.join(BUILD_DIR, filename), "w") as outfile: - json.dump(stub_data, outfile, cls=BytesEncoder, indent=4) - - -def stub_name(filename): - """Return a dictionary key for the stub with filename 'filename'""" - return os.path.splitext(os.path.basename(filename))[0] + ".json" - - -if __name__ == "__main__": - parser = argparse.ArgumentParser() - parser.add_argument("elf_files", nargs="+", help="Stub ELF files to convert") - args = parser.parse_args() - - stubs = dict( - (stub_name(elf_file), wrap_stub(elf_file)) for elf_file in args.elf_files - ) - write_json_files(stubs) diff --git a/pyproject.toml b/pyproject.toml index 0bd52b19a..98bb5f9cf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -65,7 +65,7 @@ include-package-data = true [tool.setuptools.package-data] - "*" = ["esptool/targets/stub_flasher/*.json"] + "*" = ["esptool/targets/stub_flasher/1/*", "esptool/targets/stub_flasher/2/*"] [tool.setuptools.packages] find = {exclude = ["ci", "flasher_stub", "test", "docs"]}