1 #
   2 # CDDL HEADER START
   3 #
   4 # The contents of this file are subject to the terms of the
   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 
  22 #
  23 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
  24 # Copyright 2014, Joyent, Inc. All rights reserved.
  25 # Copyright 2013 Garrett D'Amore <garrett@damore.org>
  26 # Copyright 2013 Saso Kiselkov. All rights reserved.
  27 # Copyright 2015 Igor Kozhukhov <ikozhukhov@gmail.com>
  28 # Copyright 2016 Nexenta Systems, Inc.
  29 # Copyright 2016 Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
  30 #
  31 
  32 include $(SRC)/uts/Makefile.uts
  33 
  34 FILEMODE=644
  35 
  36 #
  37 #       Note that the following headers are present in the kernel but
  38 #       neither installed or shipped as part of the product:
  39 #               cpuid_drv.h:            Private interface for cpuid consumers
  40 #               unix_bb_info.h:         Private interface to kcov
  41 #
  42 
  43 i386_HDRS=                      \
  44         agp/agpamd64gart_io.h   \
  45         agp/agpdefs.h           \
  46         agp/agpgart_impl.h      \
  47         agp/agpmaster_io.h      \
  48         agp/agptarget_io.h      \
  49         agpgart.h               \
  50         asy.h                   \
  51         fd_debug.h              \
  52         fdc.h                   \
  53         fdmedia.h               \
  54         firmload.h              \
  55         gfx_private.h           \
  56         mouse.h                 \
  57         ucode.h
  58 
  59 sparc_HDRS=                     \
  60         mouse.h                 \
  61         scsi/targets/ssddef.h   \
  62         $(MDESCHDRS)
  63 
  64 # Generated headers
  65 GENHDRS=                        \
  66         priv_const.h            \
  67         priv_names.h            \
  68         usb/usbdevs.h
  69 
  70 CHKHDRS=                        \
  71         acpi_drv.h              \
  72         acct.h                  \
  73         acctctl.h               \
  74         acl.h                   \
  75         acl_impl.h              \
  76         aggr.h                  \
  77         aggr_impl.h             \
  78         aio.h                   \
  79         aio_impl.h              \
  80         aio_req.h               \
  81         aiocb.h                 \
  82         ascii.h                 \
  83         asynch.h                \
  84         atomic.h                \
  85         attr.h                  \
  86         audio.h                 \
  87         audioio.h               \
  88         autoconf.h              \
  89         auxv.h                  \
  90         auxv_386.h              \
  91         auxv_SPARC.h            \
  92         avl.h                   \
  93         avl_impl.h              \
  94         bitmap.h                \
  95         bitset.h                \
  96         bl.h                    \
  97         blkdev.h                \
  98         bofi.h                  \
  99         bofi_impl.h             \
 100         bpp_io.h                \
 101         bootstat.h              \
 102         brand.h                 \
 103         buf.h                   \
 104         bufmod.h                \
 105         bustypes.h              \
 106         byteorder.h             \
 107         callb.h                 \
 108         callo.h                 \
 109         cap_util.h              \
 110         cpucaps.h               \
 111         cpucaps_impl.h          \
 112         ccompile.h              \
 113         cdio.h                  \
 114         cladm.h                 \
 115         class.h                 \
 116         clconf.h                \
 117         clock_impl.h            \
 118         cmlb.h                  \
 119         cmn_err.h               \
 120         compress.h              \
 121         condvar.h               \
 122         condvar_impl.h          \
 123         conf.h                  \
 124         consdev.h               \
 125         console.h               \
 126         consplat.h              \
 127         vt.h                    \
 128         vtdaemon.h              \
 129         kd.h                    \
 130         contract.h              \
 131         contract_impl.h         \
 132         copyops.h               \
 133         core.h                  \
 134         corectl.h               \
 135         cpc_impl.h              \
 136         cpc_pcbe.h              \
 137         cpr.h                   \
 138         cpupart.h               \
 139         cpuvar.h                \
 140         crc32.h                 \
 141         cred.h                  \
 142         cred_impl.h             \
 143         crtctl.h                \
 144         cryptmod.h              \
 145         csiioctl.h              \
 146         ctf.h                   \
 147         ctfs.h                  \
 148         ctfs_impl.h             \
 149         ctf_api.h               \
 150         ctype.h                 \
 151         cyclic.h                \
 152         cyclic_impl.h           \
 153         dacf.h                  \
 154         dacf_impl.h             \
 155         damap.h                 \
 156         damap_impl.h            \
 157         dc_ki.h                 \
 158         ddi.h                   \
 159         ddifm.h                 \
 160         ddifm_impl.h            \
 161         ddi_hp.h                \
 162         ddi_hp_impl.h           \
 163         ddi_intr.h              \
 164         ddi_intr_impl.h         \
 165         ddi_impldefs.h          \
 166         ddi_implfuncs.h         \
 167         ddi_obsolete.h          \
 168         ddi_periodic.h          \
 169         ddidevmap.h             \
 170         ddidmareq.h             \
 171         ddimapreq.h             \
 172         ddipropdefs.h           \
 173         dditypes.h              \
 174         debug.h                 \
 175         des.h                   \
 176         devctl.h                \
 177         devcache.h              \
 178         devcache_impl.h         \
 179         devfm.h                 \
 180         devid_cache.h           \
 181         devinfo_impl.h          \
 182         devops.h                \
 183         devpolicy.h             \
 184         devpoll.h               \
 185         dirent.h                \
 186         disp.h                  \
 187         dkbad.h                 \
 188         dkio.h                  \
 189         dklabel.h               \
 190         dl.h                    \
 191         dlpi.h                  \
 192         dld.h                   \
 193         dld_impl.h              \
 194         dld_ioc.h               \
 195         dls.h                   \
 196         dls_mgmt.h              \
 197         dls_impl.h              \
 198         dma_i8237A.h            \
 199         dnlc.h                  \
 200         door.h                  \
 201         door_data.h             \
 202         door_impl.h             \
 203         dtrace.h                \
 204         dtrace_impl.h           \
 205         dumpadm.h               \
 206         dumphdr.h               \
 207         ecppsys.h               \
 208         ecppio.h                \
 209         ecppreg.h               \
 210         ecppvar.h               \
 211         edonr.h                 \
 212         efi_partition.h         \
 213         elf.h                   \
 214         elf_386.h               \
 215         elf_SPARC.h             \
 216         elf_notes.h             \
 217         elf_amd64.h             \
 218         elftypes.h              \
 219         emul64.h                \
 220         emul64cmd.h             \
 221         emul64var.h             \
 222         epm.h                   \
 223         epoll.h                 \
 224         errno.h                 \
 225         errorq.h                \
 226         errorq_impl.h           \
 227         esunddi.h               \
 228         ethernet.h              \
 229         euc.h                   \
 230         eucioctl.h              \
 231         eventfd.h               \
 232         exacct.h                \
 233         exacct_catalog.h        \
 234         exacct_impl.h           \
 235         exec.h                  \
 236         exechdr.h               \
 237         extdirent.h             \
 238         fault.h                 \
 239         fasttrap.h              \
 240         fasttrap_impl.h         \
 241         fbio.h                  \
 242         fbuf.h                  \
 243         fcntl.h                 \
 244         fct.h                   \
 245         fct_defines.h           \
 246         fctio.h                 \
 247         fdbuffer.h              \
 248         fdio.h                  \
 249         feature_tests.h         \
 250         fem.h                   \
 251         file.h                  \
 252         filio.h                 \
 253         flock.h                 \
 254         flock_impl.h            \
 255         fork.h                  \
 256         fss.h                   \
 257         fsspriocntl.h           \
 258         fsid.h                  \
 259         fssnap.h                \
 260         fssnap_if.h             \
 261         fstyp.h                 \
 262         ftrace.h                \
 263         fx.h                    \
 264         fxpriocntl.h            \
 265         gfs.h                   \
 266         gld.h                   \
 267         gldpriv.h               \
 268         group.h                 \
 269         hdio.h                  \
 270         hook.h                  \
 271         hook_event.h            \
 272         hook_impl.h             \
 273         hwconf.h                \
 274         ia.h                    \
 275         iapriocntl.h            \
 276         ibpart.h                \
 277         id32.h                  \
 278         idmap.h                 \
 279         ieeefp.h                \
 280         id_space.h              \
 281         instance.h              \
 282         int_const.h             \
 283         int_fmtio.h             \
 284         int_limits.h            \
 285         int_types.h             \
 286         inttypes.h              \
 287         ioccom.h                \
 288         ioctl.h                 \
 289         ipc.h                   \
 290         ipc_impl.h              \
 291         ipc_rctl.h              \
 292         ipd.h                   \
 293         ipmi.h                  \
 294         isa_defs.h              \
 295         iscsi_authclient.h      \
 296         iscsi_authclientglue.h  \
 297         iscsi_protocol.h        \
 298         jioctl.h                \
 299         kbd.h                   \
 300         kbdreg.h                \
 301         kbio.h                  \
 302         kcpc.h                  \
 303         kdi.h                   \
 304         kdi_impl.h              \
 305         kiconv.h                \
 306         kiconv_big5_utf8.h      \
 307         kiconv_cck_common.h     \
 308         kiconv_cp950hkscs_utf8.h        \
 309         kiconv_emea1.h          \
 310         kiconv_emea2.h          \
 311         kiconv_euckr_utf8.h     \
 312         kiconv_euctw_utf8.h     \
 313         kiconv_gb18030_utf8.h   \
 314         kiconv_gb2312_utf8.h    \
 315         kiconv_hkscs_utf8.h     \
 316         kiconv_ja.h             \
 317         kiconv_ja_jis_to_unicode.h      \
 318         kiconv_ja_unicode_to_jis.h      \
 319         kiconv_ko.h             \
 320         kiconv_latin1.h         \
 321         kiconv_sc.h             \
 322         kiconv_tc.h             \
 323         kiconv_uhc_utf8.h       \
 324         kiconv_utf8_big5.h      \
 325         kiconv_utf8_cp950hkscs.h        \
 326         kiconv_utf8_euckr.h     \
 327         kiconv_utf8_euctw.h     \
 328         kiconv_utf8_gb18030.h   \
 329         kiconv_utf8_gb2312.h    \
 330         kiconv_utf8_hkscs.h     \
 331         kiconv_utf8_uhc.h       \
 332         kidmap.h                \
 333         klpd.h                  \
 334         klwp.h                  \
 335         kmdb.h                  \
 336         kmem.h                  \
 337         kmem_impl.h             \
 338         kobj.h                  \
 339         kobj_impl.h             \
 340         ksocket.h               \
 341         kstat.h                 \
 342         kstr.h                  \
 343         ksyms.h                 \
 344         ksynch.h                \
 345         ldterm.h                \
 346         lgrp.h                  \
 347         lgrp_user.h             \
 348         libc_kernel.h           \
 349         link.h                  \
 350         list.h                  \
 351         list_impl.h             \
 352         llc1.h                  \
 353         loadavg.h               \
 354         lock.h                  \
 355         lockfs.h                \
 356         lockstat.h              \
 357         lofi.h                  \
 358         lofi_impl.h             \
 359         log.h                   \
 360         logindmux.h             \
 361         logindmux_impl.h        \
 362         lwp.h                   \
 363         lwp_timer_impl.h        \
 364         lwp_upimutex_impl.h     \
 365         lpif.h                  \
 366         mac.h                   \
 367         mac_client.h            \
 368         mac_client_impl.h       \
 369         mac_ether.h             \
 370         mac_flow.h              \
 371         mac_flow_impl.h         \
 372         mac_impl.h              \
 373         mac_provider.h          \
 374         mac_soft_ring.h         \
 375         mac_stat.h              \
 376         machelf.h               \
 377         map.h                   \
 378         md4.h                   \
 379         md5.h                   \
 380         md5_consts.h            \
 381         mdi_impldefs.h          \
 382         mem.h                   \
 383         mem_config.h            \
 384         memlist.h               \
 385         mkdev.h                 \
 386         mhd.h                   \
 387         mii.h                   \
 388         miiregs.h               \
 389         mixer.h                 \
 390         mman.h                  \
 391         mmapobj.h               \
 392         mntent.h                \
 393         mntio.h                 \
 394         mnttab.h                \
 395         modctl.h                \
 396         mode.h                  \
 397         model.h                 \
 398         modhash.h               \
 399         modhash_impl.h          \
 400         mount.h                 \
 401         mouse.h                 \
 402         msacct.h                \
 403         msg.h                   \
 404         msg_impl.h              \
 405         msio.h                  \
 406         msreg.h                 \
 407         mtio.h                  \
 408         multidata.h             \
 409         multidata_impl.h        \
 410         mutex.h                 \
 411         nbmlock.h               \
 412         ndifm.h                 \
 413         ndi_impldefs.h          \
 414         net80211.h              \
 415         net80211_amrr.h         \
 416         net80211_crypto.h       \
 417         net80211_ht.h           \
 418         net80211_proto.h        \
 419         netconfig.h             \
 420         neti.h                  \
 421         netstack.h              \
 422         nexusdefs.h             \
 423         note.h                  \
 424         null.h                  \
 425         nvpair.h                \
 426         nvpair_impl.h           \
 427         objfs.h                 \
 428         objfs_impl.h            \
 429         ontrap.h                \
 430         open.h                  \
 431         openpromio.h            \
 432         panic.h                 \
 433         param.h                 \
 434         pathconf.h              \
 435         pathname.h              \
 436         pattr.h                 \
 437         queue.h                 \
 438         serializer.h            \
 439         pbio.h                  \
 440         pccard.h                \
 441         pci.h                   \
 442         pcie.h                  \
 443         pci_impl.h              \
 444         pci_tools.h             \
 445         pcmcia.h                \
 446         pctypes.h               \
 447         pfmod.h                 \
 448         pg.h                    \
 449         pghw.h                  \
 450         physmem.h               \
 451         pkp_hash.h              \
 452         pm.h                    \
 453         policy.h                \
 454         poll.h                  \
 455         poll_impl.h             \
 456         pool.h                  \
 457         pool_impl.h             \
 458         pool_pset.h             \
 459         port.h                  \
 460         port_impl.h             \
 461         port_kernel.h           \
 462         portif.h                \
 463         ppmio.h                 \
 464         pppt_ic_if.h            \
 465         pppt_ioctl.h            \
 466         priocntl.h              \
 467         priv.h                  \
 468         priv_impl.h             \
 469         prnio.h                 \
 470         proc.h                  \
 471         processor.h             \
 472         procfs.h                \
 473         procset.h               \
 474         project.h               \
 475         protosw.h               \
 476         prsystm.h               \
 477         pset.h                  \
 478         pshot.h                 \
 479         ptem.h                  \
 480         ptms.h                  \
 481         ptyvar.h                \
 482         raidioctl.h             \
 483         ramdisk.h               \
 484         random.h                \
 485         rctl.h                  \
 486         rctl_impl.h             \
 487         rds.h                   \
 488         reboot.h                \
 489         refstr.h                \
 490         refstr_impl.h           \
 491         resource.h              \
 492         rlioctl.h               \
 493         rt.h                    \
 494         rtpriocntl.h            \
 495         rwlock.h                \
 496         rwlock_impl.h           \
 497         rwstlock.h              \
 498         sad.h                   \
 499         schedctl.h              \
 500         sdt.h                   \
 501         secflags.h              \
 502         select.h                \
 503         sem.h                   \
 504         sem_impl.h              \
 505         sema_impl.h             \
 506         semaphore.h             \
 507         sendfile.h              \
 508         ser_sync.h              \
 509         session.h               \
 510         sha1.h                  \
 511         sha1_consts.h           \
 512         sha2.h                  \
 513         sha2_consts.h           \
 514         share.h                 \
 515         shm.h                   \
 516         shm_impl.h              \
 517         sid.h                   \
 518         siginfo.h               \
 519         signal.h                \
 520         signalfd.h              \
 521         skein.h                 \
 522         sleepq.h                \
 523         smbios.h                \
 524         smbios_impl.h           \
 525         sobject.h               \
 526         socket.h                \
 527         socket_impl.h           \
 528         socket_proto.h          \
 529         socketvar.h             \
 530         sockfilter.h            \
 531         sockio.h                \
 532         soundcard.h             \
 533         squeue.h                \
 534         squeue_impl.h           \
 535         srn.h                   \
 536         sservice.h              \
 537         stat.h                  \
 538         statfs.h                \
 539         statvfs.h               \
 540         stdbool.h               \
 541         stddef.h                \
 542         stdint.h                \
 543         stermio.h               \
 544         stmf.h                  \
 545         stmf_defines.h          \
 546         stmf_ioctl.h            \
 547         stmf_sbd_ioctl.h        \
 548         stream.h                \
 549         strft.h                 \
 550         strlog.h                \
 551         strmdep.h               \
 552         stropts.h               \
 553         strredir.h              \
 554         strstat.h               \
 555         strsubr.h               \
 556         strsun.h                \
 557         strtty.h                \
 558         sunddi.h                \
 559         sunldi.h                \
 560         sunldi_impl.h           \
 561         sunmdi.h                \
 562         sunndi.h                \
 563         sunos_dhcp_class.h      \
 564         sunpm.h                 \
 565         suntpi.h                \
 566         suntty.h                \
 567         swap.h                  \
 568         synch.h                 \
 569         sysdc.h                 \
 570         sysdc_impl.h            \
 571         syscall.h               \
 572         sysconf.h               \
 573         sysconfig.h             \
 574         sysevent.h              \
 575         sysevent_impl.h         \
 576         sysinfo.h               \
 577         syslog.h                \
 578         sysmacros.h             \
 579         sysmsg_impl.h           \
 580         systeminfo.h            \
 581         systm.h                 \
 582         task.h                  \
 583         taskq.h                 \
 584         taskq_impl.h            \
 585         t_kuser.h               \
 586         t_lock.h                \
 587         telioctl.h              \
 588         termio.h                \
 589         termios.h               \
 590         termiox.h               \
 591         thread.h                \
 592         ticlts.h                \
 593         ticots.h                \
 594         ticotsord.h             \
 595         tihdr.h                 \
 596         time.h                  \
 597         time_impl.h             \
 598         time_std_impl.h         \
 599         timeb.h                 \
 600         timer.h                 \
 601         timerfd.h               \
 602         times.h                 \
 603         timex.h                 \
 604         timod.h                 \
 605         tirdwr.h                \
 606         tiuser.h                \
 607         tl.h                    \
 608         tnf.h                   \
 609         tnf_com.h               \
 610         tnf_probe.h             \
 611         tnf_writer.h            \
 612         todio.h                 \
 613         tpicommon.h             \
 614         ts.h                    \
 615         tspriocntl.h            \
 616         ttcompat.h              \
 617         ttold.h                 \
 618         tty.h                   \
 619         ttychars.h              \
 620         ttydev.h                \
 621         tuneable.h              \
 622         turnstile.h             \
 623         types.h                 \
 624         types32.h               \
 625         tzfile.h                \
 626         u8_textprep.h           \
 627         u8_textprep_data.h      \
 628         uadmin.h                \
 629         ucred.h                 \
 630         uio.h                   \
 631         ulimit.h                \
 632         un.h                    \
 633         unistd.h                \
 634         user.h                  \
 635         ustat.h                 \
 636         utime.h                 \
 637         utsname.h               \
 638         utssys.h                \
 639         uuid.h                  \
 640         va_impl.h               \
 641         va_list.h               \
 642         var.h                   \
 643         varargs.h               \
 644         vfs.h                   \
 645         vfs_opreg.h             \
 646         vfstab.h                \
 647         vgareg.h                \
 648         videodev2.h             \
 649         visual_io.h             \
 650         vlan.h                  \
 651         vm.h                    \
 652         vm_usage.h              \
 653         vmem.h                  \
 654         vmem_impl.h             \
 655         vmsystm.h               \
 656         vnic.h                  \
 657         vnic_impl.h             \
 658         vnode.h                 \
 659         vscan.h                 \
 660         vtoc.h                  \
 661         vtrace.h                \
 662         vuid_event.h            \
 663         vuid_wheel.h            \
 664         vuid_queue.h            \
 665         vuid_state.h            \
 666         vuid_store.h            \
 667         wait.h                  \
 668         waitq.h                 \
 669         wanboot_impl.h          \
 670         watchpoint.h            \
 671         winlockio.h             \
 672         zcons.h                 \
 673         zone.h                  \
 674         xti_inet.h              \
 675         xti_osi.h               \
 676         xti_xtiopt.h            \
 677         zmod.h
 678 
 679 HDRS=                           \
 680         $(GENHDRS)              \
 681         $(CHKHDRS)
 682 
 683 AUDIOHDRS=                      \
 684         ac97.h                  \
 685         audio_common.h          \
 686         audio_driver.h          \
 687         audio_oss.h             \
 688         g711.h
 689 
 690 AVHDRS=                         \
 691         iec61883.h
 692 
 693 BSCHDRS=                        \
 694         bscbus.h                \
 695         bscv_impl.h             \
 696         lom_ebuscodes.h         \
 697         lom_io.h                \
 698         lom_priv.h              \
 699         lombus.h
 700 
 701 MDESCHDRS=                      \
 702         mdesc.h                 \
 703         mdesc_impl.h            
 704 
 705 CPUDRVHDRS=                     \
 706         cpudrv.h
 707 
 708 CRYPTOHDRS=                     \
 709         elfsign.h               \
 710         ioctl.h                 \
 711         ioctladmin.h            \
 712         common.h                \
 713         impl.h                  \
 714         spi.h                   \
 715         api.h                   \
 716         ops_impl.h              \
 717         sched_impl.h
 718 
 719 DCAMHDRS=                       \
 720         dcam1394_io.h
 721 
 722 IBHDRS=                 \
 723         ib_types.h      \
 724         ib_pkt_hdrs.h
 725 
 726 IBTLHDRS=               \
 727         ibtl_types.h    \
 728         ibtl_status.h   \
 729         ibti.h          \
 730         ibti_cm.h       \
 731         ibci.h          \
 732         ibti_common.h   \
 733         ibvti.h         \
 734         ibtl_ci_types.h
 735 
 736 IBTLIMPLHDRS=           \
 737         ibtl_util.h
 738 
 739 IBNEXHDRS=              \
 740         ibnex_devctl.h
 741 
 742 IBMFHDRS=               \
 743         ibmf.h          \
 744         ibmf_msg.h      \
 745         ibmf_saa.h      \
 746         ibmf_utils.h
 747 
 748 IBMGTHDRS=              \
 749         ib_dm_attr.h    \
 750         ib_mad.h        \
 751         sm_attr.h       \
 752         sa_recs.h
 753 
 754 IBDHDRS=                \
 755         ibd.h
 756 
 757 OFHDRS=                 \
 758         ofa_solaris.h   \
 759         ofed_kernel.h
 760 
 761 RDMAHDRS=               \
 762         ib_addr.h       \
 763         ib_user_mad.h   \
 764         ib_user_sa.h    \
 765         ib_user_verbs.h \
 766         ib_verbs.h      \
 767         rdma_cm.h       \
 768         rdma_user_cm.h
 769 
 770 SOL_UVERBSHDRS=         \
 771         sol_uverbs.h    \
 772         sol_uverbs2ucma.h       \
 773         sol_uverbs_comp.h       \
 774         sol_uverbs_hca.h        \
 775         sol_uverbs_qp.h         \
 776         sol_uverbs_event.h
 777 
 778 SOL_UMADHDRS=           \
 779         sol_umad.h
 780 
 781 SOL_UCMAHDRS=           \
 782         sol_ucma.h      \
 783         sol_rdma_user_cm.h
 784 
 785 SOL_OFSHDRS=            \
 786         sol_cma.h       \
 787         sol_ib_cma.h    \
 788         sol_ofs_common.h        \
 789         sol_kverb_impl.h
 790 
 791 TAVORHDRS=              \
 792         tavor_ioctl.h
 793 
 794 HERMONHDRS=             \
 795         hermon_ioctl.h
 796 
 797 MLNXHDRS=               \
 798         mlnx_umap.h
 799 
 800 IDMHDRS=                \
 801         idm.h           \
 802         idm_impl.h      \
 803         idm_so.h        \
 804         idm_text.h      \
 805         idm_transport.h \
 806         idm_conn_sm.h
 807 
 808 ISCSITHDRS=             \
 809         radius_packet.h         \
 810         radius_protocol.h       \
 811         chap.h                  \
 812         isns_protocol.h         \
 813         iscsi_if.h              \
 814         iscsit_common.h
 815 
 816 ISOHDRS=                        \
 817         signal_iso.h
 818 
 819 FMHDRS=                         \
 820         protocol.h              \
 821         util.h
 822 
 823 FMFSHDRS=                       \
 824         zfs.h
 825 
 826 FMIOHDRS=                       \
 827         ddi.h                   \
 828         disk.h                  \
 829         pci.h                   \
 830         scsi.h                  \
 831         sun4upci.h              \
 832         opl_mc_fm.h
 833 
 834 FSHDRS=                         \
 835         autofs.h                \
 836         decomp.h                \
 837         dv_node.h               \
 838         sdev_impl.h             \
 839         fifonode.h              \
 840         hsfs_isospec.h          \
 841         hsfs_node.h             \
 842         hsfs_rrip.h             \
 843         hsfs_spec.h             \
 844         hsfs_susp.h             \
 845         lofs_info.h             \
 846         lofs_node.h             \
 847         mntdata.h               \
 848         namenode.h              \
 849         pc_dir.h                \
 850         pc_fs.h                 \
 851         pc_label.h              \
 852         pc_node.h               \
 853         pxfs_ki.h               \
 854         snode.h                 \
 855         swapnode.h              \
 856         tmp.h                   \
 857         tmpnode.h               \
 858         udf_inode.h             \
 859         udf_volume.h            \
 860         ufs_acl.h               \
 861         ufs_bio.h               \
 862         ufs_filio.h             \
 863         ufs_fs.h                \
 864         ufs_fsdir.h             \
 865         ufs_inode.h             \
 866         ufs_lockfs.h            \
 867         ufs_log.h               \
 868         ufs_mount.h             \
 869         ufs_panic.h             \
 870         ufs_prot.h              \
 871         ufs_quota.h             \
 872         ufs_snap.h              \
 873         ufs_trans.h             \
 874         zfs.h                   \
 875         zut.h
 876 
 877 SCSIHDRS=               \
 878         scsi.h          \
 879         scsi_address.h  \
 880         scsi_ctl.h      \
 881         scsi_fm.h       \
 882         scsi_names.h    \
 883         scsi_params.h   \
 884         scsi_pkt.h      \
 885         scsi_resource.h \
 886         scsi_types.h    \
 887         scsi_watch.h
 888 
 889 SCSICONFHDRS=           \
 890         autoconf.h      \
 891         device.h
 892 
 893 SCSIGENHDRS=            \
 894         commands.h      \
 895         dad_mode.h      \
 896         inquiry.h       \
 897         message.h       \
 898         mode.h          \
 899         persist.h       \
 900         sense.h         \
 901         sff_frames.h    \
 902         smp_frames.h    \
 903         status.h
 904 
 905 SCSIIMPLHDRS=           \
 906         commands.h      \
 907         inquiry.h       \
 908         mode.h          \
 909         scsi_reset_notify.h \
 910         scsi_sas.h      \
 911         sense.h         \
 912         services.h      \
 913         smp_transport.h \
 914         spc3_types.h    \
 915         status.h        \
 916         transport.h     \
 917         types.h         \
 918         uscsi.h         \
 919         usmp.h
 920 
 921 SCSITARGETSHDRS=        \
 922         ses.h           \
 923         sesio.h         \
 924         sgendef.h       \
 925         stdef.h         \
 926         sddef.h         \
 927         smp.h
 928 
 929 SCSIADHDRS=
 930 
 931 SCSICADHDRS=
 932 
 933 SCSIISCSIHDRS=          \
 934         iscsi_door.h    \
 935         iscsi_if.h
 936 
 937 SCSIVHCIHDRS=           \
 938         scsi_vhci.h     \
 939         mpapi_impl.h    \
 940         mpapi_scsi_vhci.h
 941 
 942 SDCARDHDRS=             \
 943         sda.h           \
 944         sda_impl.h      \
 945         sda_ioctl.h
 946 
 947 FC4HDRS=                        \
 948         fc_transport.h  \
 949         linkapp.h       \
 950         fc.h            \
 951         fcp.h           \
 952         fcal_transport.h \
 953         fcal.h          \
 954         fcal_linkapp.h  \
 955         fcio.h
 956 
 957 FCHDRS=                 \
 958         fc.h            \
 959         fcio.h          \
 960         fc_types.h      \
 961         fc_appif.h
 962 
 963 FCIMPLHDRS=             \
 964         fc_error.h      \
 965         fcph.h
 966 
 967 FCULPHDRS=              \
 968         fcp_util.h      \
 969         fcsm.h
 970 
 971 SATAGENHDRS=            \
 972         sata_hba.h      \
 973         sata_defs.h     \
 974         sata_cfgadm.h
 975 
 976 SYSEVENTHDRS=           \
 977         ap_driver.h     \
 978         dev.h           \
 979         domain.h        \
 980         dr.h            \
 981         env.h           \
 982         eventdefs.h     \
 983         ipmp.h          \
 984         pwrctl.h        \
 985         vrrp.h
 986 
 987 CONTRACTHDRS=           \
 988         process.h       \
 989         process_impl.h  \
 990         device.h        \
 991         device_impl.h
 992 
 993 USBHDRS=        \
 994         usba.h  \
 995         usbai.h
 996 
 997 USBAUDHDRS=           \
 998         usb_audio.h
 999 
1000 USBHUBDHDRS=            \
1001         hub.h           \
1002         hubd_impl.h
1003 
1004 USBHIDHDRS=             \
1005         hid.h
1006 
1007 USBMSHDRS=              \
1008         usb_bulkonly.h  \
1009         usb_cbi.h
1010 
1011 USBPRNHDRS=           \
1012         usb_printer.h
1013 
1014 USBCDCHDRS=             \
1015         usb_cdc.h
1016 
1017 USBVIDHDRS=           \
1018         usbvc.h
1019 
1020 USBWCMHDRS=             \
1021         usbwcm.h
1022 
1023 UGENHDRS=           \
1024         usb_ugen.h
1025 
1026 HOTPLUGHDRS=    \
1027         hpcsvc.h        \
1028         hpctrl.h
1029 
1030 HOTPLUGPCIHDRS= \
1031         pcicfg.h        \
1032         pcihp.h
1033 
1034 RSMHDRS= \
1035         rsm.h   \
1036         rsm_common.h    \
1037         rsmapi_common.h \
1038         rsmpi.h \
1039         rsmpi_driver.h  \
1040         rsmka_path_int.h
1041 
1042 TSOLHDRS=               \
1043         label.h         \
1044         label_macro.h   \
1045         priv.h          \
1046         tndb.h          \
1047         tsyscall.h
1048 
1049 I1394HDRS=              \
1050         cmd1394.h       \
1051         id1394.h        \
1052         ieee1212.h      \
1053         ieee1394.h      \
1054         ixl1394.h       \
1055         s1394_impl.h    \
1056         t1394.h
1057 
1058 # "cmdk" headers used on sparc
1059 SDKTPHDRS=              \
1060         dadkio.h        \
1061         fdisk.h
1062 
1063 # "cmdk" headers used on i386
1064 DKTPHDRS=               \
1065         altsctr.h       \
1066         bbh.h           \
1067         cm.h            \
1068         cmdev.h         \
1069         cmdk.h          \
1070         cmpkt.h         \
1071         controller.h    \
1072         dadev.h         \
1073         dadk.h          \
1074         dadkio.h        \
1075         fctypes.h       \
1076         fdisk.h         \
1077         flowctrl.h      \
1078         gda.h           \
1079         quetypes.h      \
1080         queue.h         \
1081         tgcom.h         \
1082         tgdk.h
1083 
1084 # "pc" header files used on i386
1085 PCHDRS=                 \
1086         avintr.h        \
1087         dma_engine.h    \
1088         i8272A.h        \
1089         pcic_reg.h      \
1090         pcic_var.h      \
1091         pic.h           \
1092         pit.h           \
1093         rtc.h
1094 
1095 NXGEHDRS=                       \
1096         nxge.h                  \
1097         nxge_common.h           \
1098         nxge_common_impl.h      \
1099         nxge_defs.h             \
1100         nxge_hw.h               \
1101         nxge_impl.h             \
1102         nxge_ipp.h              \
1103         nxge_ipp_hw.h           \
1104         nxge_mac.h              \
1105         nxge_mac_hw.h           \
1106         nxge_fflp.h             \
1107         nxge_fflp_hw.h          \
1108         nxge_mii.h              \
1109         nxge_rxdma.h            \
1110         nxge_rxdma_hw.h         \
1111         nxge_txc.h              \
1112         nxge_txc_hw.h           \
1113         nxge_txdma.h            \
1114         nxge_txdma_hw.h         \
1115         nxge_virtual.h          \
1116         nxge_espc.h
1117 
1118 include Makefile.syshdrs
1119 
1120 dcam/%.check:   dcam/%.h
1121         $(DOT_H_CHECK)
1122 
1123 CHECKHDRS=                                              \
1124         $($(MACH)_HDRS:%.h=%.check)                     \
1125         $(AUDIOHDRS:%.h=audio/%.check)                  \
1126         $(AVHDRS:%.h=av/%.check)                        \
1127         $(BSCHDRS:%.h=%.check)                          \
1128         $(CHKHDRS:%.h=%.check)                          \
1129         $(CPUDRVHDRS:%.h=%.check)                       \
1130         $(CRYPTOHDRS:%.h=crypto/%.check)                \
1131         $(DCAMHDRS:%.h=dcam/%.check)                    \
1132         $(FC4HDRS:%.h=fc4/%.check)                      \
1133         $(FCHDRS:%.h=fibre-channel/%.check)             \
1134         $(FCIMPLHDRS:%.h=fibre-channel/impl/%.check)    \
1135         $(FCULPHDRS:%.h=fibre-channel/ulp/%.check)      \
1136         $(IBHDRS:%.h=ib/%.check)                        \
1137         $(IBDHDRS:%.h=ib/clients/ibd/%.check)           \
1138         $(IBTLHDRS:%.h=ib/ibtl/%.check)                 \
1139         $(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)        \
1140         $(IBNEXHDRS:%.h=ib/ibnex/%.check)       \
1141         $(IBMGTHDRS:%.h=ib/mgt/%.check)                 \
1142         $(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)             \
1143         $(OFHDRS:%.h=ib/clients/of/%.check)                     \
1144         $(RDMAHDRS:%.h=ib/clients/of/rdma/%.check)              \
1145         $(SOL_UVERBSHDRS:%.h=ib/clients/of/sol_uverbs/%.check)  \
1146         $(SOL_UCMAHDRS:%.h=ib/clients/of/sol_ucma/%.check)      \
1147         $(SOL_OFSHDRS:%.h=ib/clients/of/sol_ofs/%.check)        \
1148         $(TAVORHDRS:%.h=ib/adapters/tavor/%.check)      \
1149         $(HERMONHDRS:%.h=ib/adapters/hermon/%.check)    \
1150         $(MLNXHDRS:%.h=ib/adapters/%.check)             \
1151         $(IDMHDRS:%.h=idm/%.check)                      \
1152         $(ISCSIHDRS:%.h=iscsi/%.check)                  \
1153         $(ISCSITHDRS:%.h=iscsit/%.check)                        \
1154         $(ISOHDRS:%.h=iso/%.check)                      \
1155         $(FMHDRS:%.h=fm/%.check)                        \
1156         $(FMFSHDRS:%.h=fm/fs/%.check)                   \
1157         $(FMIOHDRS:%.h=fm/io/%.check)                   \
1158         $(FSHDRS:%.h=fs/%.check)                        \
1159         $(SCSIHDRS:%.h=scsi/%.check)                    \
1160         $(SCSIADHDRS:%.h=scsi/adapters/%.check)         \
1161         $(SCSICONFHDRS:%.h=scsi/conf/%.check)           \
1162         $(SCSIIMPLHDRS:%.h=scsi/impl/%.check)           \
1163         $(SCSIISCSIHDRS:%.h=scsi/adapters/%.check)      \
1164         $(SCSIGENHDRS:%.h=scsi/generic/%.check)         \
1165         $(SCSITARGETSHDRS:%.h=scsi/targets/%.check)     \
1166         $(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)       \
1167         $(SATAGENHDRS:%.h=sata/%.check)                 \
1168         $(SDCARDHDRS:%.h=sdcard/%.check)                \
1169         $(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1170         $(CONTRACTHDRS:%.h=contract/%.check)            \
1171         $(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1172         $(USBHUBDHDRS:%.h=usb/hubd/%.check)             \
1173         $(USBHIDHDRS:%.h=usb/clients/hid/%.check)       \
1174         $(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)       \
1175         $(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1176         $(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)    \
1177         $(USBVIDHDRS:%.h=usb/clients/video/usbvc/%.check)   \
1178         $(USBWCMHDRS:%.h=usb/clients/usbinput/usbwcm/%.check)   \
1179         $(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1180         $(USBHDRS:%.h=usb/%.check)                      \
1181         $(I1394HDRS:%.h=1394/%.check)                   \
1182         $(RSMHDRS:%.h=rsm/%.check)                      \
1183         $(TSOLHDRS:%.h=tsol/%.check)                    \
1184         $(NXGEHDRS:%.h=nxge/%.check)
1185 
1186 
1187 .KEEP_STATE:
1188 
1189 .PARALLEL:                      \
1190         $(CHECKHDRS)            \
1191         $(ROOTHDRS)             \
1192         $(ROOTAUDHDRS)          \
1193         $(ROOTAVHDRS)           \
1194         $(ROOTCRYPTOHDRS)       \
1195         $(ROOTDCAMHDRS)         \
1196         $(ROOTISOHDRS)          \
1197         $(ROOTIDMHDRS)          \
1198         $(ROOTISCSIHDRS)        \
1199         $(ROOTISCSITHDRS)       \
1200         $(ROOTFC4HDRS)          \
1201         $(ROOTFCHDRS)           \
1202         $(ROOTFCIMPLHDRS)       \
1203         $(ROOTFCULPHDRS)        \
1204         $(ROOTFMHDRS)           \
1205         $(ROOTFMIOHDRS)         \
1206         $(ROOTFMFSHDRS)         \
1207         $(ROOTFSHDRS)           \
1208         $(ROOTIBDHDRS)          \
1209         $(ROOTIBHDRS)           \
1210         $(ROOTIBTLHDRS)         \
1211         $(ROOTIBTLIMPLHDRS)     \
1212         $(ROOTIBNEXHDRS)        \
1213         $(ROOTIBMGTHDRS)        \
1214         $(ROOTIBMFHDRS)         \
1215         $(ROOTOFHDRS)           \
1216         $(ROOTRDMAHDRS)         \
1217         $(ROOTSOL_OFSHDRS)      \
1218         $(ROOTSOL_UMADHDRS)     \
1219         $(ROOTSOL_UVERBSHDRS)   \
1220         $(ROOTSOL_UCMAHDRS)     \
1221         $(ROOTTAVORHDRS)        \
1222         $(ROOTHERMONHDRS)       \
1223         $(ROOTMLNXHDRS)         \
1224         $(ROOTSCSIHDRS)         \
1225         $(ROOTSCSIADHDRS)       \
1226         $(ROOTSCSICONFHDRS)     \
1227         $(ROOTSCSIISCSIHDRS)    \
1228         $(ROOTSCSIGENHDRS)      \
1229         $(ROOTSCSIIMPLHDRS)     \
1230         $(ROOTSCSIVHCIHDRS)     \
1231         $(ROOTSDCARDHDRS)       \
1232         $(ROOTSYSEVENTHDRS)     \
1233         $(ROOTCONTRACTHDRS)     \
1234         $(ROOTUSBHDRS)          \
1235         $(ROOTUWBHDRS)          \
1236         $(ROOTUWBAHDRS)         \
1237         $(ROOTUSBAUDHDRS)       \
1238         $(ROOTUSBHUBDHDRS)      \
1239         $(ROOTUSBHIDHDRS)       \
1240         $(ROOTUSBHRCHDRS)       \
1241         $(ROOTUSBMSHDRS)        \
1242         $(ROOTUSBPRNHDRS)       \
1243         $(ROOTUSBCDCHDRS)       \
1244         $(ROOTUSBVIDHDRS)       \
1245         $(ROOTUSBWCMHDRS)       \
1246         $(ROOTUGENHDRS)         \
1247         $(ROOT1394HDRS)         \
1248         $(ROOTHOTPLUGHDRS)      \
1249         $(ROOTHOTPLUGPCIHDRS)   \
1250         $(ROOTRSMHDRS)          \
1251         $(ROOTTSOLHDRS)         \
1252         $($(MACH)_ROOTHDRS)
1253 
1254 
1255 install_h:                      \
1256         $(ROOTDIRS)             \
1257         .WAIT                   \
1258         $(ROOTHDRS)             \
1259         $(ROOTAUDHDRS)          \
1260         $(ROOTAVHDRS)           \
1261         $(ROOTCRYPTOHDRS)       \
1262         $(ROOTDCAMHDRS)         \
1263         $(ROOTISOHDRS)          \
1264         $(ROOTIDMHDRS)          \
1265         $(ROOTISCSIHDRS)        \
1266         $(ROOTISCSITHDRS)       \
1267         $(ROOTFC4HDRS)          \
1268         $(ROOTFCHDRS)           \
1269         $(ROOTFCIMPLHDRS)       \
1270         $(ROOTFCULPHDRS)        \
1271         $(ROOTFMHDRS)           \
1272         $(ROOTFMFSHDRS)         \
1273         $(ROOTFMIOHDRS)         \
1274         $(ROOTFSHDRS)           \
1275         $(ROOTIBDHDRS)          \
1276         $(ROOTIBHDRS)           \
1277         $(ROOTIBTLHDRS)         \
1278         $(ROOTIBTLIMPLHDRS)     \
1279         $(ROOTIBNEXHDRS)        \
1280         $(ROOTIBMGTHDRS)        \
1281         $(ROOTIBMFHDRS)         \
1282         $(ROOTOFHDRS)           \
1283         $(ROOTRDMAHDRS)         \
1284         $(ROOTSOL_OFSHDRS)      \
1285         $(ROOTSOL_UMADHDRS)     \
1286         $(ROOTSOL_UVERBSHDRS)   \
1287         $(ROOTSOL_UCMAHDRS)     \
1288         $(ROOTTAVORHDRS)        \
1289         $(ROOTHERMONHDRS)       \
1290         $(ROOTMLNXHDRS)         \
1291         $(ROOTSCSIHDRS)         \
1292         $(ROOTSCSIADHDRS)       \
1293         $(ROOTSCSIISCSIHDRS)    \
1294         $(ROOTSCSICONFHDRS)     \
1295         $(ROOTSCSIGENHDRS)      \
1296         $(ROOTSCSIIMPLHDRS)     \
1297         $(ROOTSCSIVHCIHDRS)     \
1298         $(ROOTSDCARDHDRS)       \
1299         $(ROOTSYSEVENTHDRS)     \
1300         $(ROOTCONTRACTHDRS)     \
1301         $(ROOTUWBHDRS)          \
1302         $(ROOTUWBAHDRS)         \
1303         $(ROOTUSBHDRS)          \
1304         $(ROOTUSBAUDHDRS)       \
1305         $(ROOTUSBHUBDHDRS)      \
1306         $(ROOTUSBHIDHDRS)       \
1307         $(ROOTUSBHRCHDRS)       \
1308         $(ROOTUSBMSHDRS)        \
1309         $(ROOTUSBPRNHDRS)       \
1310         $(ROOTUSBCDCHDRS)       \
1311         $(ROOTUSBVIDHDRS)       \
1312         $(ROOTUSBWCMHDRS)       \
1313         $(ROOTUGENHDRS)         \
1314         $(ROOT1394HDRS)         \
1315         $(ROOTHOTPLUGHDRS)      \
1316         $(ROOTHOTPLUGPCIHDRS)   \
1317         $(ROOTRSMHDRS)          \
1318         $(ROOTTSOLHDRS)         \
1319         $($(MACH)_ROOTHDRS)
1320 
1321 all_h: $(GENHDRS)
1322 
1323 priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1324         $(AWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1325 
1326 priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1327         $(AWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1328 
1329 usb/usbdevs.h: $(USBDEVS_AWK) $(USBDEVS_DATA)
1330         $(AWK) -f $(USBDEVS_AWK) $(USBDEVS_DATA) -H > $@
1331 
1332 clean:
1333         $(RM) $(GENHDRS)
1334 
1335 clobber: clean
1336 
1337 check:  $(CHECKHDRS)
1338 
1339 FRC: